61 lines
1.9 KiB
C#
61 lines
1.9 KiB
C#
|
// <auto-generated />
|
|||
|
using System;
|
|||
|
using Microsoft.EntityFrameworkCore;
|
|||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|||
|
using Server.DB;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace Server.DB.Migrations
|
|||
|
{
|
|||
|
[DbContext(typeof(WonderkingContext))]
|
|||
|
[Migration("20230814114414_Initial")]
|
|||
|
partial class Initial
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|||
|
{
|
|||
|
#pragma warning disable 612, 618
|
|||
|
modelBuilder
|
|||
|
.HasAnnotation("ProductVersion", "7.0.10")
|
|||
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|||
|
|
|||
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|||
|
|
|||
|
modelBuilder.Entity("Server.DB.Documents.Account", b =>
|
|||
|
{
|
|||
|
b.Property<Guid>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("uuid");
|
|||
|
|
|||
|
b.Property<string>("Email")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("text");
|
|||
|
|
|||
|
b.Property<byte[]>("Password")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("bytea");
|
|||
|
|
|||
|
b.Property<byte>("PermissionLevel")
|
|||
|
.HasColumnType("smallint");
|
|||
|
|
|||
|
b.Property<byte[]>("Salt")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("bytea");
|
|||
|
|
|||
|
b.Property<string>("Username")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("varchar(20)");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("Accounts");
|
|||
|
});
|
|||
|
#pragma warning restore 612, 618
|
|||
|
}
|
|||
|
}
|
|||
|
}
|