ddd
This commit is contained in:
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");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user