//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using TeamUp.Modules.Identity.Persistence;
#nullable disable
namespace TeamUp.Modules.Identity.Persistence.Migrations
{
[DbContext(typeof(IdentityDbContext))]
partial class IdentityDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasDefaultSchema("identity")
.HasAnnotation("ProductVersion", "10.0.8")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("TeamUp.Modules.Identity.Domain.Invitation", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AcceptedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property("CreatedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property("Email")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.Property("InvitedByMemberId")
.HasColumnType("uuid");
b.Property("Role")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("character varying(32)");
b.Property("ScopeId")
.HasColumnType("uuid");
b.Property("ScopeType")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("character varying(32)");
b.Property("Status")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("character varying(32)");
b.Property("Token")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)");
b.HasKey("Id");
b.HasIndex("Email");
b.HasIndex("Token")
.IsUnique();
b.ToTable("invitations", "identity");
});
modelBuilder.Entity("TeamUp.Modules.Identity.Domain.Member", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CreatedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property("DisplayName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)");
b.Property("Email")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.Property("PasswordHash")
.IsRequired()
.HasMaxLength(512)
.HasColumnType("character varying(512)");
b.Property("Status")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("character varying(32)");
b.HasKey("Id");
b.HasIndex("Email")
.IsUnique();
b.ToTable("members", "identity");
});
modelBuilder.Entity("TeamUp.Modules.Identity.Domain.Membership", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CreatedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property("MemberId")
.HasColumnType("uuid");
b.Property("Role")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("character varying(32)");
b.Property("ScopeId")
.HasColumnType("uuid");
b.Property("ScopeType")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("character varying(32)");
b.HasKey("Id");
b.HasIndex("MemberId");
b.HasIndex("MemberId", "ScopeType", "ScopeId", "Role")
.IsUnique();
b.ToTable("memberships", "identity");
});
#pragma warning restore 612, 618
}
}
}