// using System; using DugunSalonu.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace DugunSalonu.Migrations { [DbContext(typeof(dugunsalonuContext))] [Migration("20250814210347_mig12")] partial class mig12 { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.8") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("DugunSalonu.Models.Il", b => { b.Property("id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("id")); b.Property("adi") .IsRequired() .HasColumnType("text"); b.HasKey("id"); b.ToTable("il"); }); modelBuilder.Entity("DugunSalonu.Models.Ilce", b => { b.Property("id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("id")); b.Property("ILid") .HasColumnType("integer") .HasColumnName("ilid"); b.Property("adi") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.HasKey("id"); b.HasIndex("ILid"); b.ToTable("ilce"); }); modelBuilder.Entity("DugunSalonu.Models.Kullanici", b => { b.Property("id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("id")); b.Property("adi") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("admin") .HasColumnType("boolean"); b.Property("aktif") .HasColumnType("boolean"); b.Property("ceptel") .HasMaxLength(10) .HasColumnType("character varying(10)"); b.Property("eposta") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("kullaniciadi") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("parola") .IsRequired() .HasColumnType("text"); b.Property("soyadi") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.HasKey("id"); b.ToTable("kullanici"); }); modelBuilder.Entity("DugunSalonu.Models.Organizasyon", b => { b.Property("id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("id")); b.Property("aciklama") .IsRequired() .HasMaxLength(400) .HasColumnType("character varying(400)"); b.Property("adi") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ceptel") .HasMaxLength(10) .HasColumnType("integer"); b.Property("ceptel2") .HasMaxLength(10) .HasColumnType("integer"); b.Property("damatyore") .IsRequired() .HasMaxLength(30) .HasColumnType("character varying(30)"); b.Property("fiyat") .HasColumnType("numeric(18,2)"); b.Property("gelinyore") .IsRequired() .HasMaxLength(30) .HasColumnType("character varying(30)"); b.Property("iptal") .HasColumnType("integer"); b.Property("iptalaciklama") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("iptalkk") .HasColumnType("integer"); b.Property("iptalkts") .HasColumnType("timestamp with time zone"); b.Property("kk") .HasColumnType("integer"); b.Property("kts") .HasColumnType("timestamp with time zone"); b.Property("organizasyondurum") .IsRequired() .HasMaxLength(10) .HasColumnType("character varying(10)"); b.Property("organizasyonsaati") .IsRequired() .HasColumnType("text"); b.Property("organizasyontarihi") .HasColumnType("date"); b.Property("rezervasyontarihi") .HasColumnType("date"); b.Property("soyadi") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("sozlesme") .HasColumnType("bytea"); b.Property("sozlesmetarihi") .HasColumnType("date"); b.HasKey("id"); b.ToTable("organizasyon"); }); modelBuilder.Entity("DugunSalonu.Models.Referans", b => { b.Property("adi") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("aktif") .HasColumnType("boolean"); b.Property("id") .HasColumnType("integer"); b.Property("kk") .HasColumnType("integer"); b.Property("kodu") .IsRequired() .HasMaxLength(20) .HasColumnType("character varying(20)"); b.Property("kts") .HasColumnType("timestamp with time zone"); b.Property("turu") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.HasIndex("turu", "kodu") .IsUnique(); b.ToTable("referans"); }); modelBuilder.Entity("DugunSalonu.Models.Salon", b => { b.Property("id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("id")); b.Property("CepTel") .IsRequired() .HasMaxLength(10) .HasColumnType("character varying(10)"); b.Property("adi") .IsRequired() .HasMaxLength(150) .HasColumnType("character varying(150)"); b.Property("adres") .HasMaxLength(250) .HasColumnType("character varying(250)"); b.Property("eposta") .IsRequired() .HasColumnType("text"); b.Property("ilceid") .HasColumnType("integer"); b.Property("ilid") .HasColumnType("integer"); b.Property("telefon") .HasColumnType("text"); b.Property("vergidairesi") .HasColumnType("text"); b.Property("verginumarasi") .HasColumnType("text"); b.Property("webadres") .HasColumnType("text"); b.HasKey("id"); b.HasIndex("ilid"); 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("salons") .HasForeignKey("ilid"); b.Navigation("il"); }); modelBuilder.Entity("DugunSalonu.Models.Il", b => { b.Navigation("ilceler"); b.Navigation("salons"); }); #pragma warning restore 612, 618 } } }