Add Tenant basics

This commit is contained in:
2026-04-11 19:09:55 +09:30
parent 4ee8b9101d
commit df7b22235c
6 changed files with 18 additions and 3 deletions
@@ -0,0 +1,37 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Emergence.data.Migrations
{
/// <inheritdoc />
public partial class CreateTenantTable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Tenant",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantCode = table.Column<string>(type: "nvarchar(max)", nullable: false),
CompanyName = table.Column<string>(type: "nvarchar(max)", nullable: false),
ConnectionString = table.Column<string>(type: "nvarchar(max)", nullable: false),
IsInactive = table.Column<bool>(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Tenant", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Tenant");
}
}
}