// using System; using DamageAssesment.Api.Employees.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.Employees.Migrations { [DbContext(typeof(EmployeeDbContext))] [Migration("20230817213656_InitialEmployee")] partial class InitialEmployee { /// 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.Employees.Db.Employee", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); b.Property("BirthDate") .HasColumnType("datetime2"); b.Property("Email") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IsActive") .HasColumnType("bit"); b.Property("Name") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("OfficePhoneNumber") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("PreferredLanguage") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Employees"); }); #pragma warning restore 612, 618 } } }