diff --git a/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/20230828165655_InitialDocumentCreate.Designer.cs b/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/20230828165655_InitialDocumentCreate.Designer.cs
deleted file mode 100644
index 8072057..0000000
--- a/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/20230828165655_InitialDocumentCreate.Designer.cs
+++ /dev/null
@@ -1,95 +0,0 @@
-//
-using System;
-using DamageAssesment.Api.DocuLinks.Db;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-
-#nullable disable
-
-namespace DamageAssesment.Api.DocuLinks.Migrations
-{
- [DbContext(typeof(DoculinkDbContext))]
- [Migration("20230828165655_InitialDocumentCreate")]
- partial class InitialDocumentCreate
- {
- ///
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "7.0.9")
- .HasAnnotation("Relational:MaxIdentifierLength", 128);
-
- SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
-
- modelBuilder.Entity("DamageAssesment.Api.DocuLinks.Db.Document", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
-
- b.Property("IsActive")
- .HasColumnType("bit");
-
- b.Property("Path")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("dateCreated")
- .HasColumnType("datetime2");
-
- b.Property("dateUpdated")
- .HasColumnType("datetime2");
-
- b.Property("description")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("docName")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("linkTypeId")
- .HasColumnType("int");
-
- b.Property("title")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("url")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.ToTable("Documents");
- });
-
- modelBuilder.Entity("DamageAssesment.Api.DocuLinks.Db.LinkType", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
-
- b.Property("IsActive")
- .HasColumnType("bit");
-
- b.Property("TypeText")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.ToTable("LinkTypes");
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/20230828165655_InitialDocumentCreate.cs b/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/20230828165655_InitialDocumentCreate.cs
deleted file mode 100644
index 741574e..0000000
--- a/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/20230828165655_InitialDocumentCreate.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore.Migrations;
-
-#nullable disable
-
-namespace DamageAssesment.Api.DocuLinks.Migrations
-{
- ///
- public partial class InitialDocumentCreate : Migration
- {
- ///
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "Documents",
- columns: table => new
- {
- Id = table.Column(type: "int", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- title = table.Column(type: "nvarchar(max)", nullable: false),
- linkTypeId = table.Column(type: "int", nullable: false),
- description = table.Column(type: "nvarchar(max)", nullable: false),
- docName = table.Column(type: "nvarchar(max)", nullable: false),
- url = table.Column(type: "nvarchar(max)", nullable: false),
- Path = table.Column(type: "nvarchar(max)", nullable: false),
- IsActive = table.Column(type: "bit", nullable: false),
- dateCreated = table.Column(type: "datetime2", nullable: false),
- dateUpdated = table.Column(type: "datetime2", nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Documents", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "LinkTypes",
- columns: table => new
- {
- Id = table.Column(type: "int", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- TypeText = table.Column(type: "nvarchar(max)", nullable: false),
- IsActive = table.Column(type: "bit", nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_LinkTypes", x => x.Id);
- });
- }
-
- ///
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "Documents");
-
- migrationBuilder.DropTable(
- name: "LinkTypes");
- }
- }
-}
diff --git a/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/20230830200432_DocumentTranslation.Designer.cs b/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/20230830200432_DocumentTranslation.Designer.cs
deleted file mode 100644
index b9006ba..0000000
--- a/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/20230830200432_DocumentTranslation.Designer.cs
+++ /dev/null
@@ -1,118 +0,0 @@
-//
-using System;
-using DamageAssesment.Api.DocuLinks.Db;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-
-#nullable disable
-
-namespace DamageAssesment.Api.DocuLinks.Migrations
-{
- [DbContext(typeof(DoculinkDbContext))]
- [Migration("20230830200432_DocumentTranslation")]
- partial class DocumentTranslation
- {
- ///
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "7.0.9")
- .HasAnnotation("Relational:MaxIdentifierLength", 128);
-
- SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
-
- modelBuilder.Entity("DamageAssesment.Api.DocuLinks.Db.Document", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
-
- b.Property("IsActive")
- .HasColumnType("bit");
-
- b.Property("Path")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("dateCreated")
- .HasColumnType("datetime2");
-
- b.Property("dateUpdated")
- .HasColumnType("datetime2");
-
- b.Property("docName")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("linkTypeId")
- .HasColumnType("int");
-
- b.Property("url")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.ToTable("Documents");
- });
-
- modelBuilder.Entity("DamageAssesment.Api.DocuLinks.Db.DocumentsTranslation", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
-
- b.Property("DocumentId")
- .HasColumnType("int");
-
- b.Property("Language")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("description")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("title")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.ToTable("DocumentsTranslations");
- });
-
- modelBuilder.Entity("DamageAssesment.Api.DocuLinks.Db.LinkType", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
-
- b.Property("IsActive")
- .HasColumnType("bit");
-
- b.Property("IsAttachment")
- .HasColumnType("bit");
-
- b.Property("TypeText")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.ToTable("LinkTypes");
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/20230830200432_DocumentTranslation.cs b/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/20230830200432_DocumentTranslation.cs
deleted file mode 100644
index d639539..0000000
--- a/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/20230830200432_DocumentTranslation.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-using Microsoft.EntityFrameworkCore.Migrations;
-
-#nullable disable
-
-namespace DamageAssesment.Api.DocuLinks.Migrations
-{
- ///
- public partial class DocumentTranslation : Migration
- {
- ///
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "description",
- table: "Documents");
-
- migrationBuilder.DropColumn(
- name: "title",
- table: "Documents");
-
- migrationBuilder.AddColumn(
- name: "IsAttachment",
- table: "LinkTypes",
- type: "bit",
- nullable: false,
- defaultValue: false);
-
- migrationBuilder.CreateTable(
- name: "DocumentsTranslations",
- columns: table => new
- {
- Id = table.Column(type: "int", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- DocumentId = table.Column(type: "int", nullable: false),
- title = table.Column(type: "nvarchar(max)", nullable: false),
- description = table.Column(type: "nvarchar(max)", nullable: false),
- Language = table.Column(type: "nvarchar(max)", nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_DocumentsTranslations", x => x.Id);
- });
- }
-
- ///
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "DocumentsTranslations");
-
- migrationBuilder.DropColumn(
- name: "IsAttachment",
- table: "LinkTypes");
-
- migrationBuilder.AddColumn(
- name: "description",
- table: "Documents",
- type: "nvarchar(max)",
- nullable: false,
- defaultValue: "");
-
- migrationBuilder.AddColumn(
- name: "title",
- table: "Documents",
- type: "nvarchar(max)",
- nullable: false,
- defaultValue: "");
- }
- }
-}
diff --git a/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/DocumentDbContextModelSnapshot.cs b/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/DocumentDbContextModelSnapshot.cs
deleted file mode 100644
index a692f80..0000000
--- a/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/DocumentDbContextModelSnapshot.cs
+++ /dev/null
@@ -1,115 +0,0 @@
-//
-using System;
-using DamageAssesment.Api.DocuLinks.Db;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-
-#nullable disable
-
-namespace DamageAssesment.Api.DocuLinks.Migrations
-{
- [DbContext(typeof(DoculinkDbContext))]
- partial class DocumentDbContextModelSnapshot : ModelSnapshot
- {
- protected override void BuildModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "7.0.9")
- .HasAnnotation("Relational:MaxIdentifierLength", 128);
-
- SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
-
- modelBuilder.Entity("DamageAssesment.Api.DocuLinks.Db.Document", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
-
- b.Property("IsActive")
- .HasColumnType("bit");
-
- b.Property("Path")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("dateCreated")
- .HasColumnType("datetime2");
-
- b.Property("dateUpdated")
- .HasColumnType("datetime2");
-
- b.Property("docName")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("linkTypeId")
- .HasColumnType("int");
-
- b.Property("url")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.ToTable("Documents");
- });
-
- modelBuilder.Entity("DamageAssesment.Api.DocuLinks.Db.DocumentsTranslation", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
-
- b.Property("DocumentId")
- .HasColumnType("int");
-
- b.Property("Language")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("description")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("title")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.ToTable("DocumentsTranslations");
- });
-
- modelBuilder.Entity("DamageAssesment.Api.DocuLinks.Db.LinkType", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"));
-
- b.Property("IsActive")
- .HasColumnType("bit");
-
- b.Property("IsAttachment")
- .HasColumnType("bit");
-
- b.Property("TypeText")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.ToTable("LinkTypes");
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/DamageAssesmentApi/azure-pipelines.yml b/DamageAssesmentApi/azure-pipelines.yml
new file mode 100644
index 0000000..147dd91
--- /dev/null
+++ b/DamageAssesmentApi/azure-pipelines.yml
@@ -0,0 +1,21 @@
+trigger:
+ - docker-branch # Change this to your preferred branch or trigger
+
+pr:
+ - '*'
+
+pool:
+ vmImage: 'ubuntu-latest'
+
+jobs:
+- job: 'BuildAndPush'
+ steps:
+ - script: |
+ docker-compose -f docker-compose.yml build
+ docker login -u $(acrServiceConnectionUsername) -p $(acrServiceConnectionPassword) $(acrServiceConnectionServer)
+ docker-compose -f docker-compose.yml push
+ displayName: 'Build and Push Docker Compose Project'
+ env:
+ acrServiceConnectionUsername: $(ACRServiceConnectionName.username)
+ acrServiceConnectionPassword: $(ACRServiceConnectionName.password)
+ acrServiceConnectionServer: $(ACRServiceConnectionName.server)
\ No newline at end of file