ddd
This commit is contained in:
74
Migrations/20250802214445_dugunsalonuContex.cs.Designer.cs
generated
Normal file
74
Migrations/20250802214445_dugunsalonuContex.cs.Designer.cs
generated
Normal file
@@ -0,0 +1,74 @@
|
||||
// <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("20250802214445_dugunsalonuContex.cs")]
|
||||
partial class dugunsalonuContexcs
|
||||
{
|
||||
/// <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.Kullanici", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("Admin")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("Aktif")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("CepTel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)");
|
||||
|
||||
b.Property<string>("Eposta")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("KullaniciAdi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<string>("Parola")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Soyadi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Kullanici");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
42
Migrations/20250802214445_dugunsalonuContex.cs.cs
Normal file
42
Migrations/20250802214445_dugunsalonuContex.cs.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DugunSalonu.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class dugunsalonuContexcs : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Kullanici",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
KullaniciAdi = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false),
|
||||
Adi = table.Column<string>(type: "text", nullable: false),
|
||||
Soyadi = table.Column<string>(type: "text", nullable: false),
|
||||
Parola = table.Column<string>(type: "text", nullable: false),
|
||||
Eposta = table.Column<string>(type: "text", nullable: false),
|
||||
CepTel = table.Column<string>(type: "character varying(10)", maxLength: 10, nullable: false),
|
||||
Aktif = table.Column<bool>(type: "boolean", nullable: false),
|
||||
Admin = table.Column<bool>(type: "boolean", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Kullanici", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Kullanici");
|
||||
}
|
||||
}
|
||||
}
|
74
Migrations/20250802214730_KullaniciTablosuEkle.Designer.cs
generated
Normal file
74
Migrations/20250802214730_KullaniciTablosuEkle.Designer.cs
generated
Normal file
@@ -0,0 +1,74 @@
|
||||
// <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("20250802214730_KullaniciTablosuEkle")]
|
||||
partial class KullaniciTablosuEkle
|
||||
{
|
||||
/// <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.Kullanici", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("Admin")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("Aktif")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("CepTel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)");
|
||||
|
||||
b.Property<string>("Eposta")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("KullaniciAdi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<string>("Parola")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Soyadi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Kullanici");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
22
Migrations/20250802214730_KullaniciTablosuEkle.cs
Normal file
22
Migrations/20250802214730_KullaniciTablosuEkle.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DugunSalonu.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class KullaniciTablosuEkle : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
130
Migrations/20250807211734_mig2.Designer.cs
generated
Normal file
130
Migrations/20250807211734_mig2.Designer.cs
generated
Normal file
@@ -0,0 +1,130 @@
|
||||
// <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("20250807211734_mig2")]
|
||||
partial class mig2
|
||||
{
|
||||
/// <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.Kullanici", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("Admin")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("Aktif")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("CepTel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)");
|
||||
|
||||
b.Property<string>("Eposta")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("KullaniciAdi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<string>("Parola")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Soyadi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
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>("adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("adres")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("ceptel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)");
|
||||
|
||||
b.Property<string>("eposta")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("il")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("ilce")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("mail")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("telefon")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("vergidairesi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("verginumarasi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("webadres")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("salon");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
45
Migrations/20250807211734_mig2.cs
Normal file
45
Migrations/20250807211734_mig2.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DugunSalonu.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class mig2 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "salon",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
adi = table.Column<string>(type: "text", nullable: false),
|
||||
adres = table.Column<string>(type: "text", nullable: false),
|
||||
il = table.Column<int>(type: "integer", nullable: false),
|
||||
ilce = table.Column<int>(type: "integer", nullable: false),
|
||||
eposta = table.Column<string>(type: "text", nullable: false),
|
||||
vergidairesi = table.Column<string>(type: "text", nullable: false),
|
||||
verginumarasi = table.Column<string>(type: "text", nullable: false),
|
||||
telefon = table.Column<string>(type: "text", nullable: false),
|
||||
ceptel = table.Column<string>(type: "character varying(10)", maxLength: 10, nullable: false),
|
||||
mail = table.Column<string>(type: "text", nullable: false),
|
||||
webadres = table.Column<string>(type: "text", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_salon", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "salon");
|
||||
}
|
||||
}
|
||||
}
|
130
Migrations/20250807212423_mg3.Designer.cs
generated
Normal file
130
Migrations/20250807212423_mg3.Designer.cs
generated
Normal file
@@ -0,0 +1,130 @@
|
||||
// <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("20250807212423_mg3")]
|
||||
partial class mg3
|
||||
{
|
||||
/// <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.Kullanici", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("Admin")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("Aktif")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("CepTel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)");
|
||||
|
||||
b.Property<string>("Eposta")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("KullaniciAdi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<string>("Parola")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Soyadi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
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>("adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("adres")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("ceptel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)");
|
||||
|
||||
b.Property<string>("eposta")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("il")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("ilce")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("mail")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("telefon")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("vergidairesi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("verginumarasi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("webadres")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("salon");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
44
Migrations/20250807212423_mg3.cs
Normal file
44
Migrations/20250807212423_mg3.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DugunSalonu.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class mg3 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropPrimaryKey(
|
||||
name: "PK_Kullanici",
|
||||
table: "Kullanici");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "Kullanici",
|
||||
newName: "kullanici");
|
||||
|
||||
migrationBuilder.AddPrimaryKey(
|
||||
name: "PK_kullanici",
|
||||
table: "kullanici",
|
||||
column: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropPrimaryKey(
|
||||
name: "PK_kullanici",
|
||||
table: "kullanici");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "kullanici",
|
||||
newName: "Kullanici");
|
||||
|
||||
migrationBuilder.AddPrimaryKey(
|
||||
name: "PK_Kullanici",
|
||||
table: "Kullanici",
|
||||
column: "Id");
|
||||
}
|
||||
}
|
||||
}
|
130
Migrations/20250807212616_mg4.Designer.cs
generated
Normal file
130
Migrations/20250807212616_mg4.Designer.cs
generated
Normal file
@@ -0,0 +1,130 @@
|
||||
// <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("20250807212616_mg4")]
|
||||
partial class mg4
|
||||
{
|
||||
/// <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.Kullanici", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("Admin")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("Aktif")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("CepTel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)");
|
||||
|
||||
b.Property<string>("Eposta")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("KullaniciAdi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<string>("Parola")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Soyadi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
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>("adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("adres")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("ceptel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)");
|
||||
|
||||
b.Property<string>("eposta")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("il")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("ilce")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("mail")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("telefon")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("vergidairesi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("verginumarasi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("webadres")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("salon");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
22
Migrations/20250807212616_mg4.cs
Normal file
22
Migrations/20250807212616_mg4.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DugunSalonu.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class mg4 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
160
Migrations/20250807213526_mg5.Designer.cs
generated
Normal file
160
Migrations/20250807213526_mg5.Designer.cs
generated
Normal file
@@ -0,0 +1,160 @@
|
||||
// <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("20250807213526_mg5")]
|
||||
partial class mg5
|
||||
{
|
||||
/// <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()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("Admin")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("Aktif")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("CepTel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)");
|
||||
|
||||
b.Property<string>("Eposta")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("KullaniciAdi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<string>("Parola")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Soyadi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
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<int>("IlId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("adres")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("ceptel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)");
|
||||
|
||||
b.Property<string>("eposta")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("ilce")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("mail")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("telefon")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("vergidairesi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("verginumarasi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("webadres")
|
||||
.IsRequired()
|
||||
.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")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("il");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
66
Migrations/20250807213526_mg5.cs
Normal file
66
Migrations/20250807213526_mg5.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DugunSalonu.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class mg5 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "il",
|
||||
table: "salon",
|
||||
newName: "IlId");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "il",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
adi = table.Column<string>(type: "text", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_il", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_salon_IlId",
|
||||
table: "salon",
|
||||
column: "IlId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_salon_il_IlId",
|
||||
table: "salon",
|
||||
column: "IlId",
|
||||
principalTable: "il",
|
||||
principalColumn: "id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_salon_il_IlId",
|
||||
table: "salon");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "il");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_salon_IlId",
|
||||
table: "salon");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "IlId",
|
||||
table: "salon",
|
||||
newName: "il");
|
||||
}
|
||||
}
|
||||
}
|
179
Migrations/20250808092203_mig6.Designer.cs
generated
Normal file
179
Migrations/20250808092203_mig6.Designer.cs
generated
Normal file
@@ -0,0 +1,179 @@
|
||||
// <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("20250808092203_mig6")]
|
||||
partial class mig6
|
||||
{
|
||||
/// <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")
|
||||
.HasColumnName("ıd");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("adi");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("il");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Kullanici", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ıd");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("adi");
|
||||
|
||||
b.Property<bool>("Admin")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("admin");
|
||||
|
||||
b.Property<bool>("Aktif")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("aktif");
|
||||
|
||||
b.Property<string>("CepTel")
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)")
|
||||
.HasColumnName("ceptel");
|
||||
|
||||
b.Property<string>("Eposta")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("eposta");
|
||||
|
||||
b.Property<string>("KullaniciAdi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("kullaniciadi");
|
||||
|
||||
b.Property<string>("Parola")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("parola");
|
||||
|
||||
b.Property<string>("Soyadi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("soyadi");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("kullanici");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Salon", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ıd");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("adi");
|
||||
|
||||
b.Property<string>("Adres")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("adres");
|
||||
|
||||
b.Property<string>("CepTel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)")
|
||||
.HasColumnName("ceptel");
|
||||
|
||||
b.Property<string>("Eposta")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("eposta");
|
||||
|
||||
b.Property<int>("IlId")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ılıd");
|
||||
|
||||
b.Property<int>("Ilce")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ılce");
|
||||
|
||||
b.Property<string>("Telefon")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("telefon");
|
||||
|
||||
b.Property<string>("VergiDairesi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("vergidairesi");
|
||||
|
||||
b.Property<string>("VergiNumarasi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("verginumarasi");
|
||||
|
||||
b.Property<string>("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
|
||||
}
|
||||
}
|
||||
}
|
271
Migrations/20250808092203_mig6.cs
Normal file
271
Migrations/20250808092203_mig6.cs
Normal file
@@ -0,0 +1,271 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DugunSalonu.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class mig6 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_salon_il_IlId",
|
||||
table: "salon");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "mail",
|
||||
table: "salon");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ilce",
|
||||
table: "salon",
|
||||
newName: "ılce");
|
||||
|
||||
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: "Soyadi",
|
||||
table: "kullanici",
|
||||
newName: "soyadi");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "Parola",
|
||||
table: "kullanici",
|
||||
newName: "parola");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "KullaniciAdi",
|
||||
table: "kullanici",
|
||||
newName: "kullaniciadi");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "Eposta",
|
||||
table: "kullanici",
|
||||
newName: "eposta");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "CepTel",
|
||||
table: "kullanici",
|
||||
newName: "ceptel");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "Aktif",
|
||||
table: "kullanici",
|
||||
newName: "aktif");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "Admin",
|
||||
table: "kullanici",
|
||||
newName: "admin");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "Adi",
|
||||
table: "kullanici",
|
||||
newName: "adi");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "Id",
|
||||
table: "kullanici",
|
||||
newName: "ıd");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "id",
|
||||
table: "il",
|
||||
newName: "ıd");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "soyadi",
|
||||
table: "kullanici",
|
||||
type: "character varying(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "eposta",
|
||||
table: "kullanici",
|
||||
type: "character varying(50)",
|
||||
maxLength: 50,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "ceptel",
|
||||
table: "kullanici",
|
||||
type: "character varying(10)",
|
||||
maxLength: 10,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "character varying(10)",
|
||||
oldMaxLength: 10);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "adi",
|
||||
table: "kullanici",
|
||||
type: "character varying(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_salon_il_ılıd",
|
||||
table: "salon",
|
||||
column: "ılıd",
|
||||
principalTable: "il",
|
||||
principalColumn: "ıd",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_salon_il_ılıd",
|
||||
table: "salon");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ılıd",
|
||||
table: "salon",
|
||||
newName: "IlId");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ılce",
|
||||
table: "salon",
|
||||
newName: "ilce");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ıd",
|
||||
table: "salon",
|
||||
newName: "Id");
|
||||
|
||||
migrationBuilder.RenameIndex(
|
||||
name: "IX_salon_ılıd",
|
||||
table: "salon",
|
||||
newName: "IX_salon_IlId");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "soyadi",
|
||||
table: "kullanici",
|
||||
newName: "Soyadi");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "parola",
|
||||
table: "kullanici",
|
||||
newName: "Parola");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "kullaniciadi",
|
||||
table: "kullanici",
|
||||
newName: "KullaniciAdi");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "eposta",
|
||||
table: "kullanici",
|
||||
newName: "Eposta");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ceptel",
|
||||
table: "kullanici",
|
||||
newName: "CepTel");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "aktif",
|
||||
table: "kullanici",
|
||||
newName: "Aktif");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "admin",
|
||||
table: "kullanici",
|
||||
newName: "Admin");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "adi",
|
||||
table: "kullanici",
|
||||
newName: "Adi");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ıd",
|
||||
table: "kullanici",
|
||||
newName: "Id");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "ıd",
|
||||
table: "il",
|
||||
newName: "id");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "mail",
|
||||
table: "salon",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Soyadi",
|
||||
table: "kullanici",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "character varying(50)",
|
||||
oldMaxLength: 50);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Eposta",
|
||||
table: "kullanici",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "character varying(50)",
|
||||
oldMaxLength: 50,
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "CepTel",
|
||||
table: "kullanici",
|
||||
type: "character varying(10)",
|
||||
maxLength: 10,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "character varying(10)",
|
||||
oldMaxLength: 10,
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Adi",
|
||||
table: "kullanici",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "character varying(50)",
|
||||
oldMaxLength: 50);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_salon_il_IlId",
|
||||
table: "salon",
|
||||
column: "IlId",
|
||||
principalTable: "il",
|
||||
principalColumn: "id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
}
|
||||
}
|
176
Migrations/dugunsalonuContextModelSnapshot.cs
Normal file
176
Migrations/dugunsalonuContextModelSnapshot.cs
Normal file
@@ -0,0 +1,176 @@
|
||||
// <auto-generated />
|
||||
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<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ıd");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("adi");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("il");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Kullanici", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ıd");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("adi");
|
||||
|
||||
b.Property<bool>("Admin")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("admin");
|
||||
|
||||
b.Property<bool>("Aktif")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("aktif");
|
||||
|
||||
b.Property<string>("CepTel")
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)")
|
||||
.HasColumnName("ceptel");
|
||||
|
||||
b.Property<string>("Eposta")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("eposta");
|
||||
|
||||
b.Property<string>("KullaniciAdi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("kullaniciadi");
|
||||
|
||||
b.Property<string>("Parola")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("parola");
|
||||
|
||||
b.Property<string>("Soyadi")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)")
|
||||
.HasColumnName("soyadi");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("kullanici");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DugunSalonu.Models.Salon", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ıd");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Adi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("adi");
|
||||
|
||||
b.Property<string>("Adres")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("adres");
|
||||
|
||||
b.Property<string>("CepTel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("character varying(10)")
|
||||
.HasColumnName("ceptel");
|
||||
|
||||
b.Property<string>("Eposta")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("eposta");
|
||||
|
||||
b.Property<int>("IlId")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ılıd");
|
||||
|
||||
b.Property<int>("Ilce")
|
||||
.HasColumnType("integer")
|
||||
.HasColumnName("ılce");
|
||||
|
||||
b.Property<string>("Telefon")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("telefon");
|
||||
|
||||
b.Property<string>("VergiDairesi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("vergidairesi");
|
||||
|
||||
b.Property<string>("VergiNumarasi")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("verginumarasi");
|
||||
|
||||
b.Property<string>("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
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user