// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using WhiteLagoon.Infrastructure.Data; #nullable disable namespace WhiteLagoon.Infrastructure.Migrations { [DbContext(typeof(ApplicationDbContext))] [Migration("20230804001201_AddVillaToDb")] partial class AddVillaToDb { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.0-preview.6.23329.4") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("WhiteLagoon.Domain.Entities.Villa", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("CreatedDate") .HasColumnType("datetime2"); b.Property("Description") .HasColumnType("nvarchar(max)"); b.Property("ImageUrl") .HasColumnType("nvarchar(max)"); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Occupancy") .HasColumnType("int"); b.Property("Price") .HasColumnType("float"); b.Property("Sqft") .HasColumnType("int"); b.Property("UpdatedDate") .HasColumnType("datetime2"); b.HasKey("Id"); b.ToTable("Villas"); }); #pragma warning restore 612, 618 } } }