146 lines
5.2 KiB
C#
146 lines
5.2 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 TimetableDesigner.Backend.Services.Authentication.Database;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace TimetableDesigner.Backend.Services.Authentication.Database.Migrations
|
|||
|
|
{
|
|||
|
|
[DbContext(typeof(DatabaseContext))]
|
|||
|
|
[Migration("20260202194856_Enumerable_To_Collection")]
|
|||
|
|
partial class Enumerable_To_Collection
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|||
|
|
{
|
|||
|
|
#pragma warning disable 612, 618
|
|||
|
|
modelBuilder
|
|||
|
|
.HasAnnotation("ProductVersion", "10.0.2")
|
|||
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|||
|
|
|
|||
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("TimetableDesigner.Backend.Events.OutboxPattern.Event", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<DateTimeOffset?>("LastRetryOn")
|
|||
|
|
.HasColumnType("timestamp with time zone");
|
|||
|
|
|
|||
|
|
b.Property<DateTimeOffset>("OccuredOn")
|
|||
|
|
.HasColumnType("timestamp with time zone");
|
|||
|
|
|
|||
|
|
b.Property<string>("Payload")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("text");
|
|||
|
|
|
|||
|
|
b.Property<string>("PayloadType")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("text");
|
|||
|
|
|
|||
|
|
b.Property<long>("RetryCount")
|
|||
|
|
.HasColumnType("bigint");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("Id")
|
|||
|
|
.IsUnique();
|
|||
|
|
|
|||
|
|
b.ToTable("Events");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.Account", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<long>("Id")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bigint");
|
|||
|
|
|
|||
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityAlwaysColumn(b.Property<long>("Id"));
|
|||
|
|
|
|||
|
|
b.Property<string>("Email")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(320)
|
|||
|
|
.HasColumnType("character varying(320)");
|
|||
|
|
|
|||
|
|
b.Property<byte[]>("Password")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(1000)
|
|||
|
|
.HasColumnType("bytea");
|
|||
|
|
|
|||
|
|
b.Property<string>("PasswordSalt")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(20)
|
|||
|
|
.HasColumnType("character varying(20)");
|
|||
|
|
|
|||
|
|
b.Property<uint>("Version")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.ValueGeneratedOnAddOrUpdate()
|
|||
|
|
.HasColumnType("xid")
|
|||
|
|
.HasColumnName("xmin");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("Id")
|
|||
|
|
.IsUnique();
|
|||
|
|
|
|||
|
|
b.ToTable("Accounts");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.RefreshToken", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Token")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("uuid");
|
|||
|
|
|
|||
|
|
b.Property<long>("AccountId")
|
|||
|
|
.HasColumnType("bigint");
|
|||
|
|
|
|||
|
|
b.Property<DateTimeOffset>("ExpirationDate")
|
|||
|
|
.HasColumnType("timestamp with time zone");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsExtendable")
|
|||
|
|
.HasColumnType("boolean");
|
|||
|
|
|
|||
|
|
b.Property<uint>("Version")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.ValueGeneratedOnAddOrUpdate()
|
|||
|
|
.HasColumnType("xid")
|
|||
|
|
.HasColumnName("xmin");
|
|||
|
|
|
|||
|
|
b.HasKey("Token");
|
|||
|
|
|
|||
|
|
b.HasIndex("AccountId");
|
|||
|
|
|
|||
|
|
b.HasIndex("Token")
|
|||
|
|
.IsUnique();
|
|||
|
|
|
|||
|
|
b.ToTable("RefreshTokens");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.RefreshToken", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("TimetableDesigner.Backend.Services.Authentication.Database.Model.Account", "Account")
|
|||
|
|
.WithMany("RefreshTokens")
|
|||
|
|
.HasForeignKey("AccountId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
|
|||
|
|
b.Navigation("Account");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.Account", b =>
|
|||
|
|
{
|
|||
|
|
b.Navigation("RefreshTokens");
|
|||
|
|
});
|
|||
|
|
#pragma warning restore 612, 618
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|