//
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("20250807212423_mg3")]
partial class mg3
{
///
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.Kullanici", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Adi")
.IsRequired()
.HasColumnType("text");
b.Property("Admin")
.HasColumnType("boolean");
b.Property("Aktif")
.HasColumnType("boolean");
b.Property("CepTel")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("character varying(10)");
b.Property("Eposta")
.IsRequired()
.HasColumnType("text");
b.Property("KullaniciAdi")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)");
b.Property("Parola")
.IsRequired()
.HasColumnType("text");
b.Property("Soyadi")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("kullanici");
});
modelBuilder.Entity("DugunSalonu.Models.Salon", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("adi")
.IsRequired()
.HasColumnType("text");
b.Property("adres")
.IsRequired()
.HasColumnType("text");
b.Property("ceptel")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("character varying(10)");
b.Property("eposta")
.IsRequired()
.HasColumnType("text");
b.Property("il")
.HasColumnType("integer");
b.Property("ilce")
.HasColumnType("integer");
b.Property("mail")
.IsRequired()
.HasColumnType("text");
b.Property("telefon")
.IsRequired()
.HasColumnType("text");
b.Property("vergidairesi")
.IsRequired()
.HasColumnType("text");
b.Property("verginumarasi")
.IsRequired()
.HasColumnType("text");
b.Property("webadres")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("salon");
});
#pragma warning restore 612, 618
}
}
}