231 lines
7.6 KiB
C#
231 lines
7.6 KiB
C#
// <auto-generated />
|
|
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("20250811082022_mig11")]
|
|
partial class mig11
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(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<int>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
|
|
|
|
b.Property<string>("adi")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
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<int>("ILid")
|
|
.HasColumnType("integer")
|
|
.HasColumnName("ilid");
|
|
|
|
b.Property<string>("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<int>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
|
|
|
|
b.Property<string>("adi")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("character varying(50)");
|
|
|
|
b.Property<bool>("admin")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("aktif")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("ceptel")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("character varying(10)");
|
|
|
|
b.Property<string>("eposta")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("character varying(50)");
|
|
|
|
b.Property<string>("kullaniciadi")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("character varying(50)");
|
|
|
|
b.Property<string>("parola")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("soyadi")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("character varying(50)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("kullanici");
|
|
});
|
|
|
|
modelBuilder.Entity("DugunSalonu.Models.Referans", b =>
|
|
{
|
|
b.Property<string>("adi")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("character varying(50)");
|
|
|
|
b.Property<bool>("aktif")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<int>("id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("kk")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("kodu")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("character varying(20)");
|
|
|
|
b.Property<DateTime>("kts")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("turu")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("character varying(50)");
|
|
|
|
b.HasIndex("turu", "kodu")
|
|
.IsUnique();
|
|
|
|
b.ToTable("referans");
|
|
});
|
|
|
|
modelBuilder.Entity("DugunSalonu.Models.Salon", b =>
|
|
{
|
|
b.Property<int>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
|
|
|
|
b.Property<string>("CepTel")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("character varying(10)");
|
|
|
|
b.Property<string>("adi")
|
|
.IsRequired()
|
|
.HasMaxLength(150)
|
|
.HasColumnType("character varying(150)");
|
|
|
|
b.Property<string>("adres")
|
|
.HasMaxLength(250)
|
|
.HasColumnType("character varying(250)");
|
|
|
|
b.Property<string>("eposta")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int?>("ilceid")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int?>("ilid")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("telefon")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("vergidairesi")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("verginumarasi")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("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
|
|
}
|
|
}
|
|
}
|