2024-10-28 02:09:55 +04:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace Cloud.Migrations
|
|
|
|
|
{
|
2024-10-29 00:38:46 +04:00
|
|
|
|
public partial class CreateUsersTable : Migration
|
|
|
|
|
{
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "Users",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
Id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
Name = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
Email = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
Password = table.Column<string>(type: "text", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("PK_Users", x => x.Id);
|
|
|
|
|
});
|
|
|
|
|
}
|
2024-10-28 02:09:55 +04:00
|
|
|
|
|
2024-10-29 00:38:46 +04:00
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "Users");
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-10-28 02:09:55 +04:00
|
|
|
|
}
|