262 lines
8.1 KiB
C#
262 lines
8.1 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using RpgRoller.Data;
|
|
|
|
#nullable disable
|
|
|
|
namespace RpgRoller.Migrations
|
|
{
|
|
[DbContext(typeof(RpgRollerDbContext))]
|
|
partial class RpgRollerDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "10.0.2");
|
|
|
|
modelBuilder.Entity("RpgRoller.Domain.Campaign", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("GmUserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Ruleset")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<long>("Version")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("GmUserId");
|
|
|
|
b.ToTable("Campaigns");
|
|
});
|
|
|
|
modelBuilder.Entity("RpgRoller.Domain.Character", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("CampaignId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("OwnerUserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CampaignId");
|
|
|
|
b.HasIndex("OwnerUserId");
|
|
|
|
b.ToTable("Characters");
|
|
});
|
|
|
|
modelBuilder.Entity("RpgRoller.Domain.RollLogEntry", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Breakdown")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("CampaignId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("CharacterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Dice")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Result")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("RollerUserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("SkillId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTimeOffset>("TimestampUtc")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Visibility")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CampaignId");
|
|
|
|
b.HasIndex("CharacterId");
|
|
|
|
b.HasIndex("RollerUserId");
|
|
|
|
b.HasIndex("SkillId");
|
|
|
|
b.ToTable("RollLogEntries");
|
|
});
|
|
|
|
modelBuilder.Entity("RpgRoller.Domain.Skill", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("AllowFumble")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("CharacterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DiceRollDefinition")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("FumbleRange")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("SkillGroupId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("WildDice")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CharacterId");
|
|
|
|
b.HasIndex("SkillGroupId");
|
|
|
|
b.ToTable("Skills");
|
|
});
|
|
|
|
modelBuilder.Entity("RpgRoller.Domain.SkillGroup", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("AllowFumble")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("CharacterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DiceRollDefinition")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("FumbleRange")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("WildDice")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CharacterId");
|
|
|
|
b.ToTable("SkillGroups");
|
|
});
|
|
|
|
modelBuilder.Entity("RpgRoller.Domain.UserAccount", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("ActiveCharacterId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.IsRequired()
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PasswordHash")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Roles")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UsernameNormalized")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UsernameNormalized")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Users");
|
|
});
|
|
|
|
modelBuilder.Entity("RpgRoller.Domain.UserSession", b =>
|
|
{
|
|
b.Property<string>("Token")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTimeOffset>("CreatedAtUtc")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Token");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("Sessions");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|