// using DugunSalonu.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace DugunSalonu.Migrations { [DbContext(typeof(dugunsalonuContext))] partial class dugunsalonuContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.7") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("DugunSalonu.Models.Il", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer") .HasColumnName("ıd"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("Adi") .IsRequired() .HasColumnType("text") .HasColumnName("adi"); b.HasKey("Id"); b.ToTable("il"); }); modelBuilder.Entity("DugunSalonu.Models.Kullanici", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer") .HasColumnName("ıd"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("Adi") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)") .HasColumnName("adi"); b.Property("Admin") .HasColumnType("boolean") .HasColumnName("admin"); b.Property("Aktif") .HasColumnType("boolean") .HasColumnName("aktif"); b.Property("CepTel") .HasMaxLength(10) .HasColumnType("character varying(10)") .HasColumnName("ceptel"); b.Property("Eposta") .HasMaxLength(50) .HasColumnType("character varying(50)") .HasColumnName("eposta"); b.Property("KullaniciAdi") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)") .HasColumnName("kullaniciadi"); b.Property("Parola") .IsRequired() .HasColumnType("text") .HasColumnName("parola"); b.Property("Soyadi") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)") .HasColumnName("soyadi"); b.HasKey("Id"); b.ToTable("kullanici"); }); modelBuilder.Entity("DugunSalonu.Models.Salon", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer") .HasColumnName("ıd"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("Adi") .IsRequired() .HasColumnType("text") .HasColumnName("adi"); b.Property("Adres") .IsRequired() .HasColumnType("text") .HasColumnName("adres"); b.Property("CepTel") .IsRequired() .HasMaxLength(10) .HasColumnType("character varying(10)") .HasColumnName("ceptel"); b.Property("Eposta") .IsRequired() .HasColumnType("text") .HasColumnName("eposta"); b.Property("IlId") .HasColumnType("integer") .HasColumnName("ılıd"); b.Property("Ilce") .HasColumnType("integer") .HasColumnName("ılce"); b.Property("Telefon") .IsRequired() .HasColumnType("text") .HasColumnName("telefon"); b.Property("VergiDairesi") .IsRequired() .HasColumnType("text") .HasColumnName("vergidairesi"); b.Property("VergiNumarasi") .IsRequired() .HasColumnType("text") .HasColumnName("verginumarasi"); b.Property("WebAdres") .IsRequired() .HasColumnType("text") .HasColumnName("webadres"); b.HasKey("Id"); b.HasIndex("IlId"); b.ToTable("salon"); }); modelBuilder.Entity("DugunSalonu.Models.Salon", b => { b.HasOne("DugunSalonu.Models.Il", "il") .WithMany() .HasForeignKey("IlId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("il"); }); #pragma warning restore 612, 618 } } }