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