78 lines
2.6 KiB
C#
78 lines
2.6 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using FictionArchive.Service.UserService.Services;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using NodaTime;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace FictionArchive.Service.UserService.Migrations
|
|
{
|
|
[DbContext(typeof(UserServiceDbContext))]
|
|
partial class UserServiceDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "9.0.11")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("FictionArchive.Service.UserService.Models.Database.User", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Instant>("CreatedTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<bool>("Disabled")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("Email")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid?>("InviterId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Instant>("LastUpdatedTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("OAuthProviderId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("InviterId");
|
|
|
|
b.HasIndex("OAuthProviderId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Users");
|
|
});
|
|
|
|
modelBuilder.Entity("FictionArchive.Service.UserService.Models.Database.User", b =>
|
|
{
|
|
b.HasOne("FictionArchive.Service.UserService.Models.Database.User", "Inviter")
|
|
.WithMany()
|
|
.HasForeignKey("InviterId");
|
|
|
|
b.Navigation("Inviter");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|