referans tablosu üretildi. Türü ve Kodu için kontrol sağlandı.

This commit is contained in:
2025-08-10 17:21:52 +03:00
parent 2ab4d14a58
commit ab7878a43b
5 changed files with 356 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
// <auto-generated />
using System;
using DugunSalonu.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
@@ -105,6 +106,48 @@ namespace DugunSalonu.Migrations
b.ToTable("kullanici");
});
modelBuilder.Entity("DugunSalonu.Models.Referans", 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>("aktif")
.HasColumnType("boolean");
b.Property<int>("kk")
.HasColumnType("integer");
b.Property<string>("kodu")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)");
b.Property<DateTime>("kts")
.ValueGeneratedOnAdd()
.HasColumnType("timestamp with time zone")
.HasDefaultValueSql("NOW()");
b.Property<string>("turu")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)");
b.HasKey("id");
b.HasIndex("turu", "kodu")
.IsUnique();
b.ToTable("referans");
});
modelBuilder.Entity("DugunSalonu.Models.Salon", b =>
{
b.Property<int>("id")