This repository has been archived on 2024-12-22. You can view files and clone it, but cannot push or open issues or pull requests.
elliebot/src/EllieBot/Migrations/Sqlite/20220614071359_patronage-system.Designer.cs

2797 lines
94 KiB
C#
Raw Normal View History

2024-06-19 05:19:56 +00:00
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
2024-06-23 02:35:10 +00:00
using EllieBot.Services.Database;
2024-06-19 05:19:56 +00:00
#nullable disable
2024-06-23 02:35:10 +00:00
namespace EllieBot.Migrations
2024-06-19 05:19:56 +00:00
{
[DbContext(typeof(SqliteContext))]
2024-06-23 02:35:10 +00:00
[Migration("20220614071359_patronage-system")]
partial class patronagesystem
2024-06-19 05:19:56 +00:00
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
2024-06-23 02:35:10 +00:00
modelBuilder.HasAnnotation("ProductVersion", "6.0.5");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Db.Models.BankUser", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<long>("Balance")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<ulong>("UserId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("UserId")
2024-06-19 05:19:56 +00:00
.IsUnique();
2024-06-23 02:35:10 +00:00
b.ToTable("BankUsers");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Db.Models.ClubApplicants", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.Property<int>("ClubId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("UserId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.HasKey("ClubId", "UserId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasIndex("UserId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("ClubApplicants");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Db.Models.ClubBans", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.Property<int>("ClubId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("UserId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.HasKey("ClubId", "UserId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasIndex("UserId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("ClubBans");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Db.Models.ClubInfo", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<string>("Description")
.HasColumnType("TEXT");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<string>("ImageUrl")
.HasColumnType("TEXT");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("TEXT");
b.Property<int?>("OwnerId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("Xp")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasAlternateKey("Name");
b.HasIndex("OwnerId")
2024-06-19 05:19:56 +00:00
.IsUnique();
2024-06-23 02:35:10 +00:00
b.ToTable("Clubs");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Db.Models.DiscordUser", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<string>("AvatarId")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int?>("ClubId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<long>("CurrencyAmount")
2024-06-19 05:19:56 +00:00
.ValueGeneratedOnAdd()
2024-06-23 02:35:10 +00:00
.HasColumnType("INTEGER")
.HasDefaultValue(0L);
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<string>("Discriminator")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<bool>("IsClubAdmin")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasDefaultValue(false);
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<DateTime>("LastLevelUp")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT")
.HasDefaultValueSql("datetime('now')");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<DateTime>("LastXpGain")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT")
.HasDefaultValueSql("datetime('now', '-1 years')");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<int>("NotifyOnLevelUp")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasDefaultValue(0);
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<long>("TotalXp")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasDefaultValue(0L);
b.Property<ulong>("UserId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<string>("Username")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasAlternateKey("UserId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasIndex("ClubId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasIndex("CurrencyAmount");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasIndex("TotalXp");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasIndex("UserId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("DiscordUser");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Db.Models.FollowedStream", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<ulong>("GuildId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<string>("Message")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int>("Type")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<string>("Username")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildConfigId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("FollowedStream");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Db.Models.PatronQuota", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.Property<ulong>("UserId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("FeatureType")
.HasColumnType("INTEGER");
b.Property<string>("Feature")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<uint>("DailyCount")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<uint>("HourlyCount")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<uint>("MonthlyCount")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasKey("UserId", "FeatureType", "Feature");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasIndex("UserId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("PatronQuotas");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Db.Models.PatronUser", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.Property<ulong>("UserId")
2024-06-19 05:19:56 +00:00
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("AmountCents")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<DateTime>("LastCharge")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<string>("UniquePlatformUserId")
.HasColumnType("TEXT");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<DateTime>("ValidThru")
.HasColumnType("TEXT");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasKey("UserId");
b.HasIndex("UniquePlatformUserId")
2024-06-19 05:19:56 +00:00
.IsUnique();
2024-06-23 02:35:10 +00:00
b.ToTable("Patrons");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.AntiAltSetting", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("Action")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("ActionDurationMinutes")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<TimeSpan>("MinAge")
.HasColumnType("TEXT");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<ulong?>("RoleId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.HasKey("Id");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildConfigId")
.IsUnique();
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("AntiAltSetting");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.AntiRaidSetting", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("Action")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int>("GuildConfigId")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<int>("PunishDuration")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("Seconds")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("UserThreshold")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasKey("Id");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildConfigId")
2024-06-19 05:19:56 +00:00
.IsUnique();
2024-06-23 02:35:10 +00:00
b.ToTable("AntiRaidSetting");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.AntiSpamIgnore", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int?>("AntiSpamSettingId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("AntiSpamSettingId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("AntiSpamIgnore");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.AntiSpamSetting", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("Action")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("MessageThreshold")
.HasColumnType("INTEGER");
b.Property<int>("MuteTime")
.HasColumnType("INTEGER");
b.Property<ulong?>("RoleId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildConfigId")
.IsUnique();
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("AntiSpamSetting");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.AutoCommand", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<ulong>("ChannelId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<string>("ChannelName")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<string>("CommandText")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<ulong?>("GuildId")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<string>("GuildName")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int>("Interval")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<ulong?>("VoiceChannelId")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<string>("VoiceChannelName")
.HasColumnType("TEXT");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasKey("Id");
b.ToTable("AutoCommands");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.AutoTranslateChannel", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<bool>("AutoDelete")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<ulong>("GuildId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("ChannelId")
.IsUnique();
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildId");
b.ToTable("AutoTranslateChannels");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.AutoTranslateUser", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("ChannelId")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<string>("Source")
.HasColumnType("TEXT");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<string>("Target")
.HasColumnType("TEXT");
b.Property<ulong>("UserId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasAlternateKey("ChannelId", "UserId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("AutoTranslateUsers");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.BanTemplate", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<ulong>("GuildId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<string>("Text")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.HasKey("Id");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildId")
.IsUnique();
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("BanTemplates");
});
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.BlacklistEntry", b =>
{
b.Property<int>("Id")
2024-06-19 05:19:56 +00:00
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<ulong>("ItemId")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<int>("Type")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasKey("Id");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("Blacklist");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.CommandAlias", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<string>("Mapping")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
b.Property<string>("Trigger")
.HasColumnType("TEXT");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildConfigId");
b.ToTable("CommandAlias");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.CommandCooldown", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<string>("CommandName")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<int>("Seconds")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildConfigId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("CommandCooldown");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.CurrencyTransaction", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<long>("Amount")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<string>("Extra")
.IsRequired()
.HasColumnType("TEXT");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<string>("Note")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<ulong?>("OtherId")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasDefaultValueSql("NULL");
b.Property<string>("Type")
2024-06-19 05:19:56 +00:00
.IsRequired()
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("UserId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("CurrencyTransactions");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.DelMsgOnCmdChannel", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("GuildConfigId")
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<bool>("State")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
b.HasKey("Id");
b.HasIndex("GuildConfigId");
2024-06-23 02:35:10 +00:00
b.ToTable("DelMsgOnCmdChannel");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.DiscordPermOverride", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<string>("Command")
.HasColumnType("TEXT");
2024-06-19 05:19:56 +00:00
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<ulong?>("GuildId")
.HasColumnType("INTEGER");
b.Property<ulong>("Perm")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildId", "Command")
.IsUnique();
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("DiscordPermOverrides");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.ExcludedItem", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<ulong>("ItemId")
.HasColumnType("INTEGER");
b.Property<int>("ItemType")
.HasColumnType("INTEGER");
b.Property<int?>("XpSettingsId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("XpSettingsId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("ExcludedItem");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.FeedSub", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<string>("Url")
.IsRequired()
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasAlternateKey("GuildConfigId", "Url");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("FeedSub");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.FilterChannelId", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("GuildConfigId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildConfigId");
2024-06-23 02:35:10 +00:00
b.ToTable("FilterChannelId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.FilteredWord", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("GuildConfigId")
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<string>("Word")
.HasColumnType("TEXT");
2024-06-19 05:19:56 +00:00
b.HasKey("Id");
b.HasIndex("GuildConfigId");
2024-06-23 02:35:10 +00:00
b.ToTable("FilteredWord");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.FilterLinksChannelId", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int?>("GuildConfigId")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildConfigId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("FilterLinksChannelId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.FilterWordsChannelId", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildConfigId");
b.ToTable("FilterWordsChannelId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.GCChannelId", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<ulong>("ChannelId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildConfigId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("GCChannelId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.GroupName", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int>("GuildConfigId")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.HasColumnType("TEXT");
b.Property<int>("Number")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildConfigId", "Number")
.IsUnique();
b.ToTable("GroupName");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.GuildConfig", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("AutoAssignRoleIds")
.HasColumnType("TEXT");
b.Property<int>("AutoDeleteByeMessagesTimer")
.HasColumnType("INTEGER");
b.Property<int>("AutoDeleteGreetMessagesTimer")
.HasColumnType("INTEGER");
b.Property<bool>("AutoDeleteSelfAssignedRoleMessages")
.HasColumnType("INTEGER");
b.Property<string>("BoostMessage")
.HasColumnType("TEXT");
b.Property<ulong>("BoostMessageChannelId")
.HasColumnType("INTEGER");
b.Property<int>("BoostMessageDeleteAfter")
.HasColumnType("INTEGER");
b.Property<ulong>("ByeMessageChannelId")
.HasColumnType("INTEGER");
b.Property<string>("ChannelByeMessageText")
.HasColumnType("TEXT");
b.Property<string>("ChannelGreetMessageText")
.HasColumnType("TEXT");
b.Property<bool>("CleverbotEnabled")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<bool>("DeleteMessageOnCommand")
.HasColumnType("INTEGER");
b.Property<bool>("DeleteStreamOnlineMessage")
.HasColumnType("INTEGER");
b.Property<string>("DmGreetMessageText")
.HasColumnType("TEXT");
b.Property<bool>("ExclusiveSelfAssignedRoles")
.HasColumnType("INTEGER");
b.Property<bool>("FilterInvites")
.HasColumnType("INTEGER");
b.Property<bool>("FilterLinks")
.HasColumnType("INTEGER");
b.Property<bool>("FilterWords")
.HasColumnType("INTEGER");
b.Property<ulong?>("GameVoiceChannel")
.HasColumnType("INTEGER");
b.Property<ulong>("GreetMessageChannelId")
.HasColumnType("INTEGER");
b.Property<ulong>("GuildId")
.HasColumnType("INTEGER");
b.Property<string>("Locale")
.HasColumnType("TEXT");
b.Property<string>("MuteRoleName")
.HasColumnType("TEXT");
b.Property<bool>("NotifyStreamOffline")
.HasColumnType("INTEGER");
b.Property<string>("PermissionRole")
.HasColumnType("TEXT");
b.Property<string>("Prefix")
.HasColumnType("TEXT");
b.Property<bool>("SendBoostMessage")
.HasColumnType("INTEGER");
b.Property<bool>("SendChannelByeMessage")
.HasColumnType("INTEGER");
b.Property<bool>("SendChannelGreetMessage")
.HasColumnType("INTEGER");
b.Property<bool>("SendDmGreetMessage")
.HasColumnType("INTEGER");
b.Property<string>("TimeZoneId")
.HasColumnType("TEXT");
b.Property<bool>("VerboseErrors")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasDefaultValue(true);
b.Property<bool>("VerbosePermissions")
.HasColumnType("INTEGER");
b.Property<int>("WarnExpireAction")
.HasColumnType("INTEGER");
b.Property<int>("WarnExpireHours")
.HasColumnType("INTEGER");
b.Property<bool>("WarningsInitialized")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildId")
.IsUnique();
b.HasIndex("WarnExpireHours");
b.ToTable("GuildConfigs");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.IgnoredLogItem", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int>("ItemType")
.HasColumnType("INTEGER");
b.Property<ulong>("LogItemId")
.HasColumnType("INTEGER");
b.Property<int>("LogSettingId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("LogSettingId", "LogItemId", "ItemType")
.IsUnique();
b.ToTable("IgnoredLogChannels");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int?>("LogSettingId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.HasKey("Id");
b.HasIndex("LogSettingId");
b.ToTable("IgnoredVoicePresenceCHannels");
});
modelBuilder.Entity("EllieBot.Services.Database.Models.ImageOnlyChannel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<ulong>("GuildId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("ChannelId")
.IsUnique();
b.ToTable("ImageOnlyChannels");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.LogSetting", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong?>("ChannelCreatedId")
.HasColumnType("INTEGER");
b.Property<ulong?>("ChannelDestroyedId")
.HasColumnType("INTEGER");
b.Property<ulong?>("ChannelUpdatedId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<ulong>("GuildId")
.HasColumnType("INTEGER");
b.Property<ulong?>("LogOtherId")
.HasColumnType("INTEGER");
b.Property<ulong?>("LogUserPresenceId")
.HasColumnType("INTEGER");
b.Property<ulong?>("LogVoicePresenceId")
.HasColumnType("INTEGER");
b.Property<ulong?>("LogVoicePresenceTTSId")
.HasColumnType("INTEGER");
b.Property<ulong?>("MessageDeletedId")
.HasColumnType("INTEGER");
b.Property<ulong?>("MessageUpdatedId")
.HasColumnType("INTEGER");
b.Property<ulong?>("UserBannedId")
.HasColumnType("INTEGER");
b.Property<ulong?>("UserJoinedId")
.HasColumnType("INTEGER");
b.Property<ulong?>("UserLeftId")
.HasColumnType("INTEGER");
b.Property<ulong?>("UserMutedId")
.HasColumnType("INTEGER");
b.Property<ulong?>("UserUnbannedId")
.HasColumnType("INTEGER");
b.Property<ulong?>("UserUpdatedId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildId")
.IsUnique();
b.ToTable("LogSettings");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.MusicPlayerSettings", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<bool>("AutoDisconnect")
.HasColumnType("INTEGER");
b.Property<bool>("AutoPlay")
.HasColumnType("INTEGER");
b.Property<ulong>("GuildId")
.HasColumnType("INTEGER");
b.Property<ulong?>("MusicChannelId")
.HasColumnType("INTEGER");
b.Property<int>("PlayerRepeat")
.HasColumnType("INTEGER");
b.Property<int>("QualityPreset")
.HasColumnType("INTEGER");
b.Property<int>("Volume")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasDefaultValue(100);
b.HasKey("Id");
b.HasIndex("GuildId")
.IsUnique();
b.ToTable("MusicPlayerSettings");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.MusicPlaylist", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Author")
.HasColumnType("TEXT");
b.Property<ulong>("AuthorId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<string>("Name")
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("MusicPlaylists");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.MutedUserId", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("GuildConfigId")
.HasColumnType("INTEGER");
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildConfigId");
b.ToTable("MutedUserId");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.EllieExpression", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<bool>("AllowTarget")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<bool>("AutoDeleteTrigger")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<bool>("ContainsAnywhere")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<bool>("DmResponse")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<ulong?>("GuildId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<string>("Reactions")
.HasColumnType("TEXT");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<string>("Response")
.HasColumnType("TEXT");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<string>("Trigger")
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Expressions");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.NsfwBlacklistedTag", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.Property<int>("Id")
2024-06-19 05:19:56 +00:00
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<ulong>("GuildId")
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<string>("Tag")
2024-06-19 05:19:56 +00:00
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.HasKey("Id");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("NsfwBlacklistedTags");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.Permissionv2", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("GuildConfigId")
.HasColumnType("INTEGER");
b.Property<int>("Index")
.HasColumnType("INTEGER");
b.Property<bool>("IsCustomCommand")
.HasColumnType("INTEGER");
b.Property<int>("PrimaryTarget")
.HasColumnType("INTEGER");
b.Property<ulong>("PrimaryTargetId")
.HasColumnType("INTEGER");
b.Property<int>("SecondaryTarget")
.HasColumnType("INTEGER");
b.Property<string>("SecondaryTargetName")
.HasColumnType("TEXT");
b.Property<bool>("State")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildConfigId");
b.ToTable("Permissions");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.PlantedCurrency", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<long>("Amount")
.HasColumnType("INTEGER");
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<ulong>("GuildId")
.HasColumnType("INTEGER");
b.Property<ulong>("MessageId")
.HasColumnType("INTEGER");
b.Property<string>("Password")
.HasColumnType("TEXT");
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("ChannelId");
b.HasIndex("MessageId")
.IsUnique();
b.ToTable("PlantedCurrency");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.PlaylistSong", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("MusicPlaylistId")
.HasColumnType("INTEGER");
b.Property<string>("Provider")
.HasColumnType("TEXT");
b.Property<int>("ProviderType")
.HasColumnType("INTEGER");
b.Property<string>("Query")
.HasColumnType("TEXT");
b.Property<string>("Title")
.HasColumnType("TEXT");
b.Property<string>("Uri")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("MusicPlaylistId");
b.ToTable("PlaylistSong");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.Poll", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<ulong>("GuildId")
.HasColumnType("INTEGER");
b.Property<string>("Question")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("GuildId")
.IsUnique();
b.ToTable("Poll");
});
modelBuilder.Entity("EllieBot.Services.Database.Models.PollAnswer", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int>("Index")
.HasColumnType("INTEGER");
b.Property<int?>("PollId")
.HasColumnType("INTEGER");
b.Property<string>("Text")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("PollId");
b.ToTable("PollAnswer");
});
modelBuilder.Entity("EllieBot.Services.Database.Models.PollVote", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("PollId")
.HasColumnType("INTEGER");
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
b.Property<int>("VoteIndex")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("PollId");
b.ToTable("PollVote");
});
modelBuilder.Entity("EllieBot.Services.Database.Models.Quote", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong>("AuthorId")
.HasColumnType("INTEGER");
b.Property<string>("AuthorName")
.IsRequired()
.HasColumnType("TEXT");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<ulong>("GuildId")
.HasColumnType("INTEGER");
b.Property<string>("Keyword")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Text")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("GuildId");
b.HasIndex("Keyword");
b.ToTable("Quotes");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.ReactionRoleV2", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<string>("Emote")
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property<int>("Group")
.HasColumnType("INTEGER");
b.Property<ulong>("GuildId")
.HasColumnType("INTEGER");
b.Property<int>("LevelReq")
.HasColumnType("INTEGER");
b.Property<ulong>("MessageId")
.HasColumnType("INTEGER");
b.Property<ulong>("RoleId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildId");
b.HasIndex("MessageId", "Emote")
.IsUnique();
b.ToTable("ReactionRoles");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.Reminder", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<bool>("IsPrivate")
.HasColumnType("INTEGER");
b.Property<string>("Message")
.HasColumnType("TEXT");
b.Property<ulong>("ServerId")
.HasColumnType("INTEGER");
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
b.Property<DateTime>("When")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("When");
b.ToTable("Reminders");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.Repeater", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong>("ChannelId")
.HasColumnType("INTEGER");
b.Property<DateTime>("DateAdded")
.HasColumnType("TEXT");
b.Property<ulong>("GuildId")
.HasColumnType("INTEGER");
b.Property<TimeSpan>("Interval")
.HasColumnType("TEXT");
b.Property<ulong?>("LastMessageId")
.HasColumnType("INTEGER");
b.Property<string>("Message")
.HasColumnType("TEXT");
b.Property<bool>("NoRedundant")
.HasColumnType("INTEGER");
b.Property<TimeSpan?>("StartTimeOfDay")
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Repeaters");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.RewardedUser", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<long>("AmountRewardedThisMonth")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<DateTime>("LastReward")
.HasColumnType("TEXT");
b.Property<string>("PlatformUserId")
.HasColumnType("TEXT");
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("PlatformUserId")
.IsUnique();
b.ToTable("RewardedUsers");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.RotatingPlayingStatus", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<string>("Status")
.HasColumnType("TEXT");
b.Property<int>("Type")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("RotatingStatus");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.SelfAssignedRole", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int>("Group")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasDefaultValue(0);
b.Property<ulong>("GuildId")
.HasColumnType("INTEGER");
b.Property<int>("LevelRequirement")
.HasColumnType("INTEGER");
b.Property<ulong>("RoleId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildId", "RoleId")
.IsUnique();
b.ToTable("SelfAssignableRoles");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.ShopEntry", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong>("AuthorId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("GuildConfigId")
.HasColumnType("INTEGER");
b.Property<int>("Index")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.HasColumnType("TEXT");
b.Property<int>("Price")
.HasColumnType("INTEGER");
b.Property<ulong>("RoleId")
.HasColumnType("INTEGER");
b.Property<string>("RoleName")
.HasColumnType("TEXT");
b.Property<int>("Type")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildConfigId");
b.ToTable("ShopEntry");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.ShopEntryItem", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("ShopEntryId")
.HasColumnType("INTEGER");
b.Property<string>("Text")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("ShopEntryId");
b.ToTable("ShopEntryItem");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.SlowmodeIgnoredRole", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("GuildConfigId")
2024-06-23 02:35:10 +00:00
.HasColumnType("INTEGER");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Property<ulong>("RoleId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildConfigId");
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.ToTable("SlowmodeIgnoredRole");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.SlowmodeIgnoredUser", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<ulong>("UserId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.HasKey("Id");
2024-06-23 02:35:10 +00:00
b.HasIndex("GuildConfigId");
b.ToTable("SlowmodeIgnoredUser");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.StreamRoleBlacklistedUser", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int?>("StreamRoleSettingsId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
b.Property<string>("Username")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("StreamRoleSettingsId");
b.ToTable("StreamRoleBlacklistedUser");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.StreamRoleSettings", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong>("AddRoleId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<bool>("Enabled")
.HasColumnType("INTEGER");
b.Property<ulong>("FromRoleId")
.HasColumnType("INTEGER");
b.Property<int>("GuildConfigId")
.HasColumnType("INTEGER");
b.Property<string>("Keyword")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("GuildConfigId")
.IsUnique();
b.ToTable("StreamRoleSettings");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.StreamRoleWhitelistedUser", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
2024-06-23 02:35:10 +00:00
b.Property<int?>("StreamRoleSettingsId")
2024-06-19 05:19:56 +00:00
.HasColumnType("INTEGER");
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
b.Property<string>("Username")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("StreamRoleSettingsId");
b.ToTable("StreamRoleWhitelistedUser");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.UnbanTimer", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("GuildConfigId")
.HasColumnType("INTEGER");
b.Property<DateTime>("UnbanAt")
.HasColumnType("TEXT");
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildConfigId");
b.ToTable("UnbanTimer");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.UnmuteTimer", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("GuildConfigId")
.HasColumnType("INTEGER");
b.Property<DateTime>("UnmuteAt")
.HasColumnType("TEXT");
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildConfigId");
b.ToTable("UnmuteTimer");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.UnroleTimer", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("GuildConfigId")
.HasColumnType("INTEGER");
b.Property<ulong>("RoleId")
.HasColumnType("INTEGER");
b.Property<DateTime>("UnbanAt")
.HasColumnType("TEXT");
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildConfigId");
b.ToTable("UnroleTimer");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.UserXpStats", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<long>("AwardedXp")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<ulong>("GuildId")
.HasColumnType("INTEGER");
2024-06-23 02:35:10 +00:00
b.Property<DateTime>("LastLevelUp")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT")
.HasDefaultValueSql("datetime('now')");
2024-06-19 05:19:56 +00:00
b.Property<int>("NotifyOnLevelUp")
.HasColumnType("INTEGER");
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
b.Property<long>("Xp")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("AwardedXp");
b.HasIndex("GuildId");
b.HasIndex("UserId");
b.HasIndex("Xp");
b.HasIndex("UserId", "GuildId")
.IsUnique();
b.ToTable("UserXpStats");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.VcRoleInfo", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("GuildConfigId")
.HasColumnType("INTEGER");
b.Property<ulong>("RoleId")
.HasColumnType("INTEGER");
b.Property<ulong>("VoiceChannelId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildConfigId");
b.ToTable("VcRoleInfo");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.WaifuInfo", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int?>("AffinityId")
.HasColumnType("INTEGER");
b.Property<int?>("ClaimerId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<long>("Price")
.HasColumnType("INTEGER");
b.Property<int>("WaifuId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("AffinityId");
b.HasIndex("ClaimerId");
b.HasIndex("Price");
b.HasIndex("WaifuId")
.IsUnique();
b.ToTable("WaifuInfo");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.WaifuItem", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<string>("ItemEmoji")
.HasColumnType("TEXT");
b.Property<string>("Name")
.HasColumnType("TEXT");
b.Property<int?>("WaifuInfoId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("WaifuInfoId");
b.ToTable("WaifuItem");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.WaifuUpdate", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("NewId")
.HasColumnType("INTEGER");
b.Property<int?>("OldId")
.HasColumnType("INTEGER");
b.Property<int>("UpdateType")
.HasColumnType("INTEGER");
b.Property<int>("UserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("NewId");
b.HasIndex("OldId");
b.HasIndex("UserId");
b.ToTable("WaifuUpdates");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.Warning", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<bool>("Forgiven")
.HasColumnType("INTEGER");
b.Property<string>("ForgivenBy")
.HasColumnType("TEXT");
b.Property<ulong>("GuildId")
.HasColumnType("INTEGER");
b.Property<string>("Moderator")
.HasColumnType("TEXT");
b.Property<string>("Reason")
.HasColumnType("TEXT");
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
b.Property<long>("Weight")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasDefaultValue(1L);
b.HasKey("Id");
b.HasIndex("DateAdded");
b.HasIndex("GuildId");
b.HasIndex("UserId");
b.ToTable("Warnings");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.WarningPunishment", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int>("Count")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int?>("GuildConfigId")
.HasColumnType("INTEGER");
b.Property<int>("Punishment")
.HasColumnType("INTEGER");
b.Property<ulong?>("RoleId")
.HasColumnType("INTEGER");
b.Property<int>("Time")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildConfigId");
b.ToTable("WarningPunishment");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.XpCurrencyReward", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int>("Amount")
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int>("Level")
.HasColumnType("INTEGER");
b.Property<int>("XpSettingsId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("XpSettingsId");
b.ToTable("XpCurrencyReward");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.XpRoleReward", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int>("Level")
.HasColumnType("INTEGER");
b.Property<bool>("Remove")
.HasColumnType("INTEGER");
b.Property<ulong>("RoleId")
.HasColumnType("INTEGER");
b.Property<int>("XpSettingsId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("XpSettingsId", "Level")
.IsUnique();
b.ToTable("XpRoleReward");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.XpSettings", b =>
2024-06-19 05:19:56 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("DateAdded")
.HasColumnType("TEXT");
b.Property<int>("GuildConfigId")
.HasColumnType("INTEGER");
b.Property<bool>("ServerExcluded")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("GuildConfigId")
.IsUnique();
b.ToTable("XpSettings");
});
modelBuilder.Entity("EllieBot.Db.Models.ClubApplicants", b =>
{
b.HasOne("EllieBot.Db.Models.ClubInfo", "Club")
.WithMany("Applicants")
.HasForeignKey("ClubId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("EllieBot.Db.Models.DiscordUser", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Club");
b.Navigation("User");
});
modelBuilder.Entity("EllieBot.Db.Models.ClubBans", b =>
{
b.HasOne("EllieBot.Db.Models.ClubInfo", "Club")
.WithMany("Bans")
.HasForeignKey("ClubId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("EllieBot.Db.Models.DiscordUser", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Club");
b.Navigation("User");
});
modelBuilder.Entity("EllieBot.Db.Models.ClubInfo", b =>
{
b.HasOne("EllieBot.Db.Models.DiscordUser", "Owner")
.WithOne()
.HasForeignKey("EllieBot.Db.Models.ClubInfo", "OwnerId")
.OnDelete(DeleteBehavior.SetNull);
b.Navigation("Owner");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Db.Models.DiscordUser", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Db.Models.ClubInfo", "Club")
.WithMany("Members")
.HasForeignKey("ClubId")
.OnDelete(DeleteBehavior.NoAction);
b.Navigation("Club");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Db.Models.FollowedStream", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
.WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.AntiAltSetting", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
.WithOne("AntiAltSetting")
.HasForeignKey("EllieBot.Services.Database.Models.AntiAltSetting", "GuildConfigId")
2024-06-19 05:19:56 +00:00
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.AntiRaidSetting", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting")
.HasForeignKey("EllieBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
2024-06-19 05:19:56 +00:00
2024-06-23 02:35:10 +00:00
b.Navigation("GuildConfig");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.AntiSpamIgnore", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.AntiSpamSetting", null)
.WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.AntiSpamSetting", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting")
.HasForeignKey("EllieBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
2024-06-19 05:19:56 +00:00
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("GuildConfig");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.AutoTranslateUser", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.AutoTranslateChannel", "Channel")
.WithMany("Users")
.HasForeignKey("ChannelId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Channel");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.CommandAlias", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
.WithMany("CommandAliases")
.HasForeignKey("GuildConfigId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.CommandCooldown", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
.WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.DelMsgOnCmdChannel", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
.WithMany("DelMsgOnCmdChannels")
.HasForeignKey("GuildConfigId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.ExcludedItem", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.XpSettings", null)
.WithMany("ExclusionList")
.HasForeignKey("XpSettingsId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.FeedSub", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", "GuildConfig")
.WithMany("FeedSubs")
2024-06-19 05:19:56 +00:00
.HasForeignKey("GuildConfigId")
2024-06-23 02:35:10 +00:00
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
2024-06-19 05:19:56 +00:00
b.Navigation("GuildConfig");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.FilterChannelId", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
.WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId");
});
modelBuilder.Entity("EllieBot.Services.Database.Models.FilteredWord", b =>
{
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
.WithMany("FilteredWords")
.HasForeignKey("GuildConfigId");
});
modelBuilder.Entity("EllieBot.Services.Database.Models.FilterLinksChannelId", b =>
{
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
.WithMany("FilterLinksChannelIds")
.HasForeignKey("GuildConfigId");
});
modelBuilder.Entity("EllieBot.Services.Database.Models.FilterWordsChannelId", b =>
{
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
.WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId");
});
modelBuilder.Entity("EllieBot.Services.Database.Models.GCChannelId", b =>
{
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", "GuildConfig")
.WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId");
b.Navigation("GuildConfig");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.GroupName", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", "GuildConfig")
2024-06-19 05:19:56 +00:00
.WithMany("SelfAssignableRoleGroupNames")
.HasForeignKey("GuildConfigId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("GuildConfig");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.IgnoredLogItem", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.LogSetting", "LogSetting")
2024-06-19 05:19:56 +00:00
.WithMany("LogIgnores")
.HasForeignKey("LogSettingId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("LogSetting");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
b.HasOne("EllieBot.Services.Database.Models.LogSetting", "LogSetting")
.WithMany()
.HasForeignKey("LogSettingId");
b.Navigation("LogSetting");
});
modelBuilder.Entity("EllieBot.Services.Database.Models.MutedUserId", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
2024-06-19 05:19:56 +00:00
.WithMany("MutedUsers")
2024-06-23 02:35:10 +00:00
.HasForeignKey("GuildConfigId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.Permissionv2", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
2024-06-19 05:19:56 +00:00
.WithMany("Permissions")
2024-06-23 02:35:10 +00:00
.HasForeignKey("GuildConfigId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.PlaylistSong", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.MusicPlaylist", null)
2024-06-19 05:19:56 +00:00
.WithMany("Songs")
.HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade);
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.PollAnswer", b =>
{
b.HasOne("EllieBot.Services.Database.Models.Poll", null)
.WithMany("Answers")
.HasForeignKey("PollId");
});
modelBuilder.Entity("EllieBot.Services.Database.Models.PollVote", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.Poll", null)
.WithMany("Votes")
.HasForeignKey("PollId");
});
modelBuilder.Entity("EllieBot.Services.Database.Models.ShopEntry", b =>
{
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
2024-06-19 05:19:56 +00:00
.WithMany("ShopEntries")
2024-06-23 02:35:10 +00:00
.HasForeignKey("GuildConfigId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.ShopEntryItem", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.ShopEntry", null)
2024-06-19 05:19:56 +00:00
.WithMany("Items")
2024-06-23 02:35:10 +00:00
.HasForeignKey("ShopEntryId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.SlowmodeIgnoredRole", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
2024-06-19 05:19:56 +00:00
.WithMany("SlowmodeIgnoredRoles")
2024-06-23 02:35:10 +00:00
.HasForeignKey("GuildConfigId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.SlowmodeIgnoredUser", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
2024-06-19 05:19:56 +00:00
.WithMany("SlowmodeIgnoredUsers")
2024-06-23 02:35:10 +00:00
.HasForeignKey("GuildConfigId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.StreamRoleBlacklistedUser", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.StreamRoleSettings", null)
2024-06-19 05:19:56 +00:00
.WithMany("Blacklist")
2024-06-23 02:35:10 +00:00
.HasForeignKey("StreamRoleSettingsId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.StreamRoleSettings", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", "GuildConfig")
2024-06-19 05:19:56 +00:00
.WithOne("StreamRole")
2024-06-23 02:35:10 +00:00
.HasForeignKey("EllieBot.Services.Database.Models.StreamRoleSettings", "GuildConfigId")
2024-06-19 05:19:56 +00:00
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("GuildConfig");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.StreamRoleWhitelistedUser", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.StreamRoleSettings", null)
2024-06-19 05:19:56 +00:00
.WithMany("Whitelist")
2024-06-23 02:35:10 +00:00
.HasForeignKey("StreamRoleSettingsId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.UnbanTimer", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
2024-06-19 05:19:56 +00:00
.WithMany("UnbanTimer")
2024-06-23 02:35:10 +00:00
.HasForeignKey("GuildConfigId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.UnmuteTimer", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
2024-06-19 05:19:56 +00:00
.WithMany("UnmuteTimers")
2024-06-23 02:35:10 +00:00
.HasForeignKey("GuildConfigId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.UnroleTimer", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
2024-06-19 05:19:56 +00:00
.WithMany("UnroleTimer")
2024-06-23 02:35:10 +00:00
.HasForeignKey("GuildConfigId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.VcRoleInfo", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
2024-06-19 05:19:56 +00:00
.WithMany("VcRoleInfos")
2024-06-23 02:35:10 +00:00
.HasForeignKey("GuildConfigId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.WaifuInfo", b =>
2024-06-19 05:19:56 +00:00
{
b.HasOne("EllieBot.Db.Models.DiscordUser", "Affinity")
.WithMany()
.HasForeignKey("AffinityId");
b.HasOne("EllieBot.Db.Models.DiscordUser", "Claimer")
.WithMany()
.HasForeignKey("ClaimerId");
b.HasOne("EllieBot.Db.Models.DiscordUser", "Waifu")
.WithOne()
2024-06-23 02:35:10 +00:00
.HasForeignKey("EllieBot.Services.Database.Models.WaifuInfo", "WaifuId")
2024-06-19 05:19:56 +00:00
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Affinity");
b.Navigation("Claimer");
b.Navigation("Waifu");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.WaifuItem", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.WaifuInfo", "WaifuInfo")
2024-06-19 05:19:56 +00:00
.WithMany("Items")
.HasForeignKey("WaifuInfoId");
b.Navigation("WaifuInfo");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.WaifuUpdate", b =>
2024-06-19 05:19:56 +00:00
{
b.HasOne("EllieBot.Db.Models.DiscordUser", "New")
.WithMany()
.HasForeignKey("NewId");
b.HasOne("EllieBot.Db.Models.DiscordUser", "Old")
.WithMany()
.HasForeignKey("OldId");
b.HasOne("EllieBot.Db.Models.DiscordUser", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("New");
b.Navigation("Old");
b.Navigation("User");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.WarningPunishment", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null)
2024-06-19 05:19:56 +00:00
.WithMany("WarnPunishments")
2024-06-23 02:35:10 +00:00
.HasForeignKey("GuildConfigId");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.XpCurrencyReward", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.XpSettings", "XpSettings")
2024-06-19 05:19:56 +00:00
.WithMany("CurrencyRewards")
.HasForeignKey("XpSettingsId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("XpSettings");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.XpRoleReward", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.XpSettings", "XpSettings")
2024-06-19 05:19:56 +00:00
.WithMany("RoleRewards")
.HasForeignKey("XpSettingsId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("XpSettings");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.XpSettings", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Services.Database.Models.GuildConfig", "GuildConfig")
2024-06-19 05:19:56 +00:00
.WithOne("XpSettings")
2024-06-23 02:35:10 +00:00
.HasForeignKey("EllieBot.Services.Database.Models.XpSettings", "GuildConfigId")
2024-06-19 05:19:56 +00:00
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("GuildConfig");
});
modelBuilder.Entity("EllieBot.Db.Models.ClubInfo", b =>
{
b.Navigation("Applicants");
b.Navigation("Bans");
b.Navigation("Members");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.AntiSpamSetting", b =>
{
b.Navigation("IgnoredChannels");
});
modelBuilder.Entity("EllieBot.Services.Database.Models.AutoTranslateChannel", b =>
2024-06-19 05:19:56 +00:00
{
2024-06-23 02:35:10 +00:00
b.Navigation("Users");
2024-06-19 05:19:56 +00:00
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.GuildConfig", b =>
2024-06-19 05:19:56 +00:00
{
b.Navigation("AntiAltSetting");
b.Navigation("AntiRaidSetting");
b.Navigation("AntiSpamSetting");
b.Navigation("CommandAliases");
b.Navigation("CommandCooldowns");
b.Navigation("DelMsgOnCmdChannels");
b.Navigation("FeedSubs");
b.Navigation("FilterInvitesChannelIds");
b.Navigation("FilterLinksChannelIds");
b.Navigation("FilterWordsChannelIds");
b.Navigation("FilteredWords");
b.Navigation("FollowedStreams");
b.Navigation("GenerateCurrencyChannelIds");
b.Navigation("MutedUsers");
b.Navigation("Permissions");
b.Navigation("SelfAssignableRoleGroupNames");
b.Navigation("ShopEntries");
b.Navigation("SlowmodeIgnoredRoles");
b.Navigation("SlowmodeIgnoredUsers");
b.Navigation("StreamRole");
b.Navigation("UnbanTimer");
b.Navigation("UnmuteTimers");
b.Navigation("UnroleTimer");
b.Navigation("VcRoleInfos");
b.Navigation("WarnPunishments");
b.Navigation("XpSettings");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.LogSetting", b =>
2024-06-19 05:19:56 +00:00
{
b.Navigation("LogIgnores");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.MusicPlaylist", b =>
2024-06-19 05:19:56 +00:00
{
b.Navigation("Songs");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.Poll", b =>
{
b.Navigation("Answers");
b.Navigation("Votes");
});
modelBuilder.Entity("EllieBot.Services.Database.Models.ShopEntry", b =>
2024-06-19 05:19:56 +00:00
{
b.Navigation("Items");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.StreamRoleSettings", b =>
2024-06-19 05:19:56 +00:00
{
b.Navigation("Blacklist");
b.Navigation("Whitelist");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.WaifuInfo", b =>
2024-06-19 05:19:56 +00:00
{
b.Navigation("Items");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Services.Database.Models.XpSettings", b =>
2024-06-19 05:19:56 +00:00
{
b.Navigation("CurrencyRewards");
b.Navigation("ExclusionList");
b.Navigation("RoleRewards");
});
#pragma warning restore 612, 618
}
}
}