using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.SqliteMigrations.Migrations;
///
public partial class AddClientOrganizationMigrationRecordTable : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ClientOrganizationMigrationRecord",
columns: table => new
{
Id = table.Column(type: "TEXT", nullable: false),
OrganizationId = table.Column(type: "TEXT", nullable: false),
ProviderId = table.Column(type: "TEXT", nullable: false),
PlanType = table.Column(type: "INTEGER", nullable: false),
Seats = table.Column(type: "INTEGER", nullable: false),
MaxStorageGb = table.Column(type: "INTEGER", nullable: true),
GatewayCustomerId = table.Column(type: "TEXT", maxLength: 50, nullable: false),
GatewaySubscriptionId = table.Column(type: "TEXT", maxLength: 50, nullable: false),
ExpirationDate = table.Column(type: "TEXT", nullable: true),
MaxAutoscaleSeats = table.Column(type: "INTEGER", nullable: true),
Status = table.Column(type: "INTEGER", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ClientOrganizationMigrationRecord", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_ClientOrganizationMigrationRecord_ProviderId_OrganizationId",
table: "ClientOrganizationMigrationRecord",
columns: new[] { "ProviderId", "OrganizationId" },
unique: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ClientOrganizationMigrationRecord");
}
}