Files
TimetableDesigner.Backend.S…/TimetableDesigner.Backend.Services.Authentication.Database/Migrations/DatabaseContextModelSnapshot.cs

143 lines
5.1 KiB
C#
Raw Normal View History

2025-09-24 19:36:28 +02:00
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
2026-01-11 02:30:08 +01:00
using TimetableDesigner.Backend.Services.Authentication.Database;
2025-09-24 19:36:28 +02:00
#nullable disable
2026-01-11 02:30:08 +01:00
namespace TimetableDesigner.Backend.Services.Authentication.Database.Migrations
2025-09-24 19:36:28 +02:00
{
[DbContext(typeof(DatabaseContext))]
partial class DatabaseContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
2026-01-27 20:15:17 +01:00
.HasAnnotation("ProductVersion", "10.0.2")
2025-09-24 19:36:28 +02:00
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
2026-01-29 00:21:23 +01:00
modelBuilder.Entity("TimetableDesigner.Backend.Events.OutboxPattern.Event", b =>
2025-09-24 19:36:28 +02:00
{
2026-01-29 00:21:23 +01:00
b.Property<Guid>("Id")
2025-09-24 19:36:28 +02:00
.ValueGeneratedOnAdd()
2026-01-29 00:21:23 +01:00
.HasColumnType("uuid");
2025-09-24 19:36:28 +02:00
2026-01-29 00:21:23 +01:00
b.Property<DateTimeOffset?>("LastRetryOn")
.HasColumnType("timestamp with time zone");
2025-09-24 19:36:28 +02:00
2026-01-29 00:21:23 +01:00
b.Property<DateTimeOffset>("OccuredOn")
.HasColumnType("timestamp with time zone");
2025-09-24 19:36:28 +02:00
2026-01-29 00:21:23 +01:00
b.Property<string>("Payload")
2025-09-24 19:36:28 +02:00
.IsRequired()
2026-01-29 00:21:23 +01:00
.HasColumnType("text");
2025-09-24 19:36:28 +02:00
2026-01-29 00:21:23 +01:00
b.Property<string>("PayloadType")
2025-09-24 19:36:28 +02:00
.IsRequired()
2026-01-29 00:21:23 +01:00
.HasColumnType("text");
2025-09-24 19:36:28 +02:00
2026-01-29 00:21:23 +01:00
b.Property<long>("RetryCount")
.HasColumnType("bigint");
2025-09-24 19:36:28 +02:00
b.HasKey("Id");
b.HasIndex("Id")
.IsUnique();
2026-01-29 00:21:23 +01:00
b.ToTable("Events");
2025-09-24 19:36:28 +02:00
});
2026-01-29 00:21:23 +01:00
modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.Account", b =>
2026-01-27 20:15:17 +01:00
{
2026-01-29 00:21:23 +01:00
b.Property<long>("Id")
2026-01-27 20:15:17 +01:00
.ValueGeneratedOnAdd()
2026-01-29 00:21:23 +01:00
.HasColumnType("bigint");
2026-01-27 20:15:17 +01:00
2026-01-29 00:21:23 +01:00
NpgsqlPropertyBuilderExtensions.UseIdentityAlwaysColumn(b.Property<long>("Id"));
2026-01-27 20:15:17 +01:00
2026-01-29 00:21:23 +01:00
b.Property<string>("Email")
2026-01-27 20:15:17 +01:00
.IsRequired()
2026-01-29 00:21:23 +01:00
.HasMaxLength(320)
.HasColumnType("character varying(320)");
2026-01-27 20:15:17 +01:00
2026-01-29 00:21:23 +01:00
b.Property<byte[]>("Password")
2026-01-27 20:15:17 +01:00
.IsRequired()
2026-01-29 00:21:23 +01:00
.HasMaxLength(1000)
.HasColumnType("bytea");
2026-01-27 20:15:17 +01:00
2026-01-29 00:21:23 +01:00
b.Property<string>("PasswordSalt")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)");
2026-01-27 20:15:17 +01:00
b.Property<uint>("Version")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()
.HasColumnType("xid")
.HasColumnName("xmin");
b.HasKey("Id");
b.HasIndex("Id")
.IsUnique();
2026-01-29 00:21:23 +01:00
b.ToTable("Accounts");
2026-01-27 20:15:17 +01:00
});
2026-01-11 02:30:08 +01:00
modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.RefreshToken", b =>
2025-09-24 19:36:28 +02:00
{
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");
});
2026-01-11 02:30:08 +01:00
modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.RefreshToken", b =>
2025-09-24 19:36:28 +02:00
{
2026-01-11 02:30:08 +01:00
b.HasOne("TimetableDesigner.Backend.Services.Authentication.Database.Model.Account", "Account")
2025-09-24 19:36:28 +02:00
.WithMany("RefreshTokens")
.HasForeignKey("AccountId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Account");
});
2026-01-11 02:30:08 +01:00
modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.Account", b =>
2025-09-24 19:36:28 +02:00
{
b.Navigation("RefreshTokens");
});
#pragma warning restore 612, 618
}
}
}