using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.PostgresMigrations.Migrations;
///
public partial class OpaqueKex : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "OpaqueKeyExchangeCredential",
columns: table => new
{
Id = table.Column(type: "uuid", nullable: false),
UserId = table.Column(type: "uuid", nullable: false),
CipherConfiguration = table.Column(type: "text", nullable: true),
CredentialBlob = table.Column(type: "text", nullable: true),
EncryptedPublicKey = table.Column(type: "text", nullable: true),
EncryptedPrivateKey = table.Column(type: "text", nullable: true),
EncryptedUserKey = table.Column(type: "text", nullable: true),
CreationDate = table.Column(type: "timestamp with time zone", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_OpaqueKeyExchangeCredential", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "OpaqueKeyExchangeCredential");
}
}