49 lines
1.7 KiB
C#
49 lines
1.7 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace MyOffice.Migrations.Postgres.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AccountAccessInvites : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Name",
|
|
table: "AccountAccesses",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "AccountAccessInvites",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
|
CreatedOn = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
|
AcceptedOn = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
|
|
RejectedOn = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
|
|
Email = table.Column<string>(type: "text", nullable: false),
|
|
IsAllowWrite = table.Column<bool>(type: "boolean", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_AccountAccessInvites", x => x.Id);
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "AccountAccessInvites");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Name",
|
|
table: "AccountAccesses");
|
|
}
|
|
}
|
|
}
|