il, ilce tablosu eklendi.
This commit is contained in:
152
Migrations/20250809145150_mg7.Designer.cs
generated
Normal file
152
Migrations/20250809145150_mg7.Designer.cs
generated
Normal file
@@ -0,0 +1,152 @@
|
||||
// <auto-generated />
|
||||
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("20250809145150_mg7")]
|
||||
partial class mg7
|
||||
{
|
||||
/// <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.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.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.Salon", b =>
|
||||
{
|
||||
b.HasOne("DugunSalonu.Models.Il", "il")
|
||||
.WithMany()
|
||||
.HasForeignKey("ilid");
|
||||
|
||||
b.Navigation("il");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
250
Migrations/20250809145150_mg7.cs
Normal file
250
Migrations/20250809145150_mg7.cs
Normal file
@@ -0,0 +1,250 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DugunSalonu.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class mg7 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_salon_il_ılıd",
|
||||
table: "salon");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ılce",
|
||||
table: "salon");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ceptel",
|
||||
table: "salon",
|
||||
newName: "CepTel");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ılıd",
|
||||
table: "salon",
|
||||
newName: "ilid");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ıd",
|
||||
table: "salon",
|
||||
newName: "id");
|
||||
|
||||
migrationBuilder.RenameIndex(
|
||||
name: "IX_salon_ılıd",
|
||||
table: "salon",
|
||||
newName: "IX_salon_ilid");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ıd",
|
||||
table: "kullanici",
|
||||
newName: "id");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ıd",
|
||||
table: "il",
|
||||
newName: "id");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "webadres",
|
||||
table: "salon",
|
||||
type: "text",
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "verginumarasi",
|
||||
table: "salon",
|
||||
type: "text",
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "vergidairesi",
|
||||
table: "salon",
|
||||
type: "text",
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "telefon",
|
||||
table: "salon",
|
||||
type: "text",
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "adres",
|
||||
table: "salon",
|
||||
type: "character varying(250)",
|
||||
maxLength: 250,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "adi",
|
||||
table: "salon",
|
||||
type: "character varying(150)",
|
||||
maxLength: 150,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "ilid",
|
||||
table: "salon",
|
||||
type: "integer",
|
||||
nullable: true,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "integer");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ilceid",
|
||||
table: "salon",
|
||||
type: "integer",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_salon_il_ilid",
|
||||
table: "salon",
|
||||
column: "ilid",
|
||||
principalTable: "il",
|
||||
principalColumn: "id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_salon_il_ilid",
|
||||
table: "salon");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ilceid",
|
||||
table: "salon");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "CepTel",
|
||||
table: "salon",
|
||||
newName: "ceptel");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ilid",
|
||||
table: "salon",
|
||||
newName: "ılıd");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "id",
|
||||
table: "salon",
|
||||
newName: "ıd");
|
||||
|
||||
migrationBuilder.RenameIndex(
|
||||
name: "IX_salon_ilid",
|
||||
table: "salon",
|
||||
newName: "IX_salon_ılıd");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "id",
|
||||
table: "kullanici",
|
||||
newName: "ıd");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "id",
|
||||
table: "il",
|
||||
newName: "ıd");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "webadres",
|
||||
table: "salon",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "verginumarasi",
|
||||
table: "salon",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "vergidairesi",
|
||||
table: "salon",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "telefon",
|
||||
table: "salon",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "adres",
|
||||
table: "salon",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "character varying(250)",
|
||||
oldMaxLength: 250,
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "adi",
|
||||
table: "salon",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "character varying(150)",
|
||||
oldMaxLength: 150);
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "ılıd",
|
||||
table: "salon",
|
||||
type: "integer",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "integer",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ılce",
|
||||
table: "salon",
|
||||
type: "integer",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_salon_il_ılıd",
|
||||
table: "salon",
|
||||
column: "ılıd",
|
||||
principalTable: "il",
|
||||
principalColumn: "ıd",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
}
|
||||
}
|
173
Migrations/20250809153336_mg8.Designer.cs
generated
Normal file
173
Migrations/20250809153336_mg8.Designer.cs
generated
Normal file
@@ -0,0 +1,173 @@
|
||||
// <auto-generated />
|
||||
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("20250809153336_mg8")]
|
||||
partial class mg8
|
||||
{
|
||||
/// <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<string>("adi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<int>("ilid")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("id");
|
||||
|
||||
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.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.Salon", b =>
|
||||
{
|
||||
b.HasOne("DugunSalonu.Models.Il", "il")
|
||||
.WithMany()
|
||||
.HasForeignKey("ilid");
|
||||
|
||||
b.Navigation("il");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
36
Migrations/20250809153336_mg8.cs
Normal file
36
Migrations/20250809153336_mg8.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DugunSalonu.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class mg8 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ilce",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
adi = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false),
|
||||
ilid = table.Column<int>(type: "integer", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_ilce", x => x.id);
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "ilce");
|
||||
}
|
||||
}
|
||||
}
|
@@ -23,139 +23,135 @@ namespace DugunSalonu.Migrations
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Il", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
b.Property<int>("id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ıd");
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
b.Property<string>("adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("adi");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
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<string>("adi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<int>("ilid")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("id");
|
||||
|
||||
b.ToTable("ilce");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Kullanici", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
b.Property<int>("id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ıd");
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
b.Property<string>("adi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("adi");
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<bool>("Admin")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("admin");
|
||||
b.Property<bool>("admin")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("Aktif")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("aktif");
|
||||
b.Property<bool>("aktif")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("CepTel")
|
||||
b.Property<string>("ceptel")
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)")
|
||||
.HasColumnName("ceptel");
|
||||
.HasColumnType("character varying(10)");
|
||||
|
||||
b.Property<string>("Eposta")
|
||||
b.Property<string>("eposta")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("eposta");
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<string>("KullaniciAdi")
|
||||
b.Property<string>("kullaniciadi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("kullaniciadi");
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<string>("Parola")
|
||||
b.Property<string>("parola")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("parola");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Soyadi")
|
||||
b.Property<string>("soyadi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("soyadi");
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.HasKey("Id");
|
||||
b.HasKey("id");
|
||||
|
||||
b.ToTable("kullanici");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Salon", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
b.Property<int>("id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ıd");
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("adi");
|
||||
|
||||
b.Property<string>("Adres")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("adres");
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
|
||||
|
||||
b.Property<string>("CepTel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)")
|
||||
.HasColumnName("ceptel");
|
||||
.HasColumnType("character varying(10)");
|
||||
|
||||
b.Property<string>("Eposta")
|
||||
b.Property<string>("adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("eposta");
|
||||
.HasMaxLength(150)
|
||||
.HasColumnType("character varying(150)");
|
||||
|
||||
b.Property<int>("IlId")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ılıd");
|
||||
b.Property<string>("adres")
|
||||
.HasMaxLength(250)
|
||||
.HasColumnType("character varying(250)");
|
||||
|
||||
b.Property<int>("Ilce")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ılce");
|
||||
|
||||
b.Property<string>("Telefon")
|
||||
b.Property<string>("eposta")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("telefon");
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("VergiDairesi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("vergidairesi");
|
||||
b.Property<int?>("ilceid")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("VergiNumarasi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("verginumarasi");
|
||||
b.Property<int?>("ilid")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("WebAdres")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("webadres");
|
||||
b.Property<string>("telefon")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
b.Property<string>("vergidairesi")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasIndex("IlId");
|
||||
b.Property<string>("verginumarasi")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("webadres")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("id");
|
||||
|
||||
b.HasIndex("ilid");
|
||||
|
||||
b.ToTable("salon");
|
||||
});
|
||||
@@ -164,9 +160,7 @@ namespace DugunSalonu.Migrations
|
||||
{
|
||||
b.HasOne("DugunSalonu.Models.Il", "il")
|
||||
.WithMany()
|
||||
.HasForeignKey("IlId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
.HasForeignKey("ilid");
|
||||
|
||||
b.Navigation("il");
|
||||
});
|
||||
|
Reference in New Issue
Block a user