il, ilce tablosu eklendi.
This commit is contained in:
@@ -23,139 +23,135 @@ namespace DugunSalonu.Migrations
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Il", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
b.Property<int>("id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ıd");
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
b.Property<string>("adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("adi");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
b.HasKey("id");
|
||||
|
||||
b.ToTable("il");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Ilce", b =>
|
||||
{
|
||||
b.Property<int>("id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
|
||||
|
||||
b.Property<string>("adi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<int>("ilid")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("id");
|
||||
|
||||
b.ToTable("ilce");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Kullanici", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
b.Property<int>("id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ıd");
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
b.Property<string>("adi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("adi");
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<bool>("Admin")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("admin");
|
||||
b.Property<bool>("admin")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("Aktif")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("aktif");
|
||||
b.Property<bool>("aktif")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("CepTel")
|
||||
b.Property<string>("ceptel")
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)")
|
||||
.HasColumnName("ceptel");
|
||||
.HasColumnType("character varying(10)");
|
||||
|
||||
b.Property<string>("Eposta")
|
||||
b.Property<string>("eposta")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("eposta");
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<string>("KullaniciAdi")
|
||||
b.Property<string>("kullaniciadi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("kullaniciadi");
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<string>("Parola")
|
||||
b.Property<string>("parola")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("parola");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Soyadi")
|
||||
b.Property<string>("soyadi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("soyadi");
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.HasKey("Id");
|
||||
b.HasKey("id");
|
||||
|
||||
b.ToTable("kullanici");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Salon", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
b.Property<int>("id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ıd");
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("adi");
|
||||
|
||||
b.Property<string>("Adres")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("adres");
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
|
||||
|
||||
b.Property<string>("CepTel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)")
|
||||
.HasColumnName("ceptel");
|
||||
.HasColumnType("character varying(10)");
|
||||
|
||||
b.Property<string>("Eposta")
|
||||
b.Property<string>("adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("eposta");
|
||||
.HasMaxLength(150)
|
||||
.HasColumnType("character varying(150)");
|
||||
|
||||
b.Property<int>("IlId")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ılıd");
|
||||
b.Property<string>("adres")
|
||||
.HasMaxLength(250)
|
||||
.HasColumnType("character varying(250)");
|
||||
|
||||
b.Property<int>("Ilce")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ılce");
|
||||
|
||||
b.Property<string>("Telefon")
|
||||
b.Property<string>("eposta")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("telefon");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("VergiDairesi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("vergidairesi");
|
||||
b.Property<int?>("ilceid")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("VergiNumarasi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("verginumarasi");
|
||||
b.Property<int?>("ilid")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("WebAdres")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("webadres");
|
||||
b.Property<string>("telefon")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
b.Property<string>("vergidairesi")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasIndex("IlId");
|
||||
b.Property<string>("verginumarasi")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("webadres")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("id");
|
||||
|
||||
b.HasIndex("ilid");
|
||||
|
||||
b.ToTable("salon");
|
||||
});
|
||||
@@ -164,9 +160,7 @@ namespace DugunSalonu.Migrations
|
||||
{
|
||||
b.HasOne("DugunSalonu.Models.Il", "il")
|
||||
.WithMany()
|
||||
.HasForeignKey("IlId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
.HasForeignKey("ilid");
|
||||
|
||||
b.Navigation("il");
|
||||
});
|
||||
|
Reference in New Issue
Block a user