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