güncelleme

This commit is contained in:
2025-08-11 11:22:31 +03:00
parent 5616230e67
commit 5c7bb2c399
10 changed files with 599 additions and 55 deletions

View File

@@ -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
}
}