güncelleme
This commit is contained in:
@@ -47,16 +47,19 @@ namespace DugunSalonu.Migrations
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
|
||||
|
||||
b.Property<int>("ILid")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ilid");
|
||||
|
||||
b.Property<string>("adi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<int>("ilid")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("id");
|
||||
|
||||
b.HasIndex("ILid");
|
||||
|
||||
b.ToTable("ilce");
|
||||
});
|
||||
|
||||
@@ -108,12 +111,6 @@ namespace DugunSalonu.Migrations
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Referans", b =>
|
||||
{
|
||||
b.Property<int>("id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
|
||||
|
||||
b.Property<string>("adi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
@@ -122,6 +119,9 @@ namespace DugunSalonu.Migrations
|
||||
b.Property<bool>("aktif")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<int>("id")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("kk")
|
||||
.HasColumnType("integer");
|
||||
|
||||
@@ -131,17 +131,13 @@ namespace DugunSalonu.Migrations
|
||||
.HasColumnType("character varying(20)");
|
||||
|
||||
b.Property<DateTime>("kts")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasDefaultValueSql("NOW()");
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("turu")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.HasKey("id");
|
||||
|
||||
b.HasIndex("turu", "kodu")
|
||||
.IsUnique();
|
||||
|
||||
@@ -199,14 +195,32 @@ namespace DugunSalonu.Migrations
|
||||
b.ToTable("salon");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Ilce", b =>
|
||||
{
|
||||
b.HasOne("DugunSalonu.Models.Il", "Il")
|
||||
.WithMany("ilceler")
|
||||
.HasForeignKey("ILid")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Il");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Salon", b =>
|
||||
{
|
||||
b.HasOne("DugunSalonu.Models.Il", "il")
|
||||
.WithMany()
|
||||
.WithMany("salons")
|
||||
.HasForeignKey("ilid");
|
||||
|
||||
b.Navigation("il");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Il", b =>
|
||||
{
|
||||
b.Navigation("ilceler");
|
||||
|
||||
b.Navigation("salons");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user