Timothy Schenk
1363ddf8fe
Some checks failed
Build, Package and Push Images / preprocess (push) Successful in 2s
Build, Package and Push Images / build (push) Successful in 25s
Build, Package and Push Images / sbom-scan (push) Successful in 35s
Build, Package and Push Images / container-build (push) Failing after 56s
Build, Package and Push Images / container-sbom-scan (push) Has been skipped
Build, Package and Push Images / sonarqube (push) Successful in 1m20s
28 lines
1.1 KiB
C#
28 lines
1.1 KiB
C#
// Copyright (c) 2023 Timothy Schenk. Subject to the GNU AGPL Version 3 License.
|
|
|
|
#nullable disable
|
|
|
|
namespace Server.DB.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public partial class Initial : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder) => migrationBuilder.CreateTable(
|
|
name: "Accounts",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
|
Username = table.Column<string>(type: "varchar(20)", nullable: false),
|
|
Password = table.Column<byte[]>(type: "bytea", nullable: false),
|
|
Email = table.Column<string>(type: "text", nullable: false),
|
|
PermissionLevel = table.Column<byte>(type: "smallint", nullable: false),
|
|
Salt = table.Column<byte[]>(type: "bytea", nullable: false)
|
|
},
|
|
constraints: table => table.PrimaryKey("PK_Accounts", x => x.Id));
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder) => migrationBuilder.DropTable(
|
|
name: "Accounts");
|
|
}
|