This commit is contained in:
2023-07-28 21:18:18 +03:00
parent 5ecefe5756
commit 90f0386bfe
53 changed files with 3067 additions and 267 deletions
@@ -0,0 +1,48 @@
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");
}
}
}