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