43 lines
1.7 KiB
C#
43 lines
1.7 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|