yale-user-access/packages/backend/Migrations/20250109010459_AddedPeople.cs

36 lines
1.1 KiB
C#
Raw Permalink Normal View History

2025-01-10 08:37:18 +11:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace YaleAccess.Migrations
{
/// <inheritdoc />
public partial class AddedPeople : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "People",
columns: table => new
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Name = table.Column<string>(type: "TEXT", nullable: false),
PhoneNumber = table.Column<string>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_People", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "People");
}
}
}