2024-06-19 02:03:46 +12:00
// <auto-generated />
using System ;
using Microsoft.EntityFrameworkCore ;
using Microsoft.EntityFrameworkCore.Infrastructure ;
using Microsoft.EntityFrameworkCore.Migrations ;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion ;
2024-06-23 14:35:10 +12:00
using EllieBot.Services.Database ;
2024-06-19 02:03:46 +12:00
#nullable disable
namespace EllieBot.Migrations.Mysql
{
[DbContext(typeof(MysqlContext))]
2024-06-23 14:35:10 +12:00
[Migration("20220429044757_bank")]
partial class bank
2024-06-19 02:03:46 +12:00
{
protected override void BuildTargetModel ( ModelBuilder modelBuilder )
{
#pragma warning disable 612 , 618
modelBuilder
2024-06-23 14:35:10 +12:00
. HasAnnotation ( "ProductVersion" , "6.0.3" )
2024-06-19 02:03:46 +12:00
. HasAnnotation ( "Relational:MaxIdentifierLength" , 64 ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Db.Models.BankUser" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . Property < long > ( "Balance" )
. HasColumnType ( "bigint" )
. HasColumnName ( "balance" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_bankusers" ) ;
b . HasIndex ( "UserId" )
. IsUnique ( )
. HasDatabaseName ( "ix_bankusers_userid" ) ;
b . ToTable ( "bankusers" , ( string ) null ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Db.Models.ClubApplicants" , b = >
{
b . Property < int > ( "ClubId" )
. HasColumnType ( "int" )
. HasColumnName ( "clubid" ) ;
b . Property < int > ( "UserId" )
. HasColumnType ( "int" )
. HasColumnName ( "userid" ) ;
b . HasKey ( "ClubId" , "UserId" )
. HasName ( "pk_clubapplicants" ) ;
b . HasIndex ( "UserId" )
. HasDatabaseName ( "ix_clubapplicants_userid" ) ;
b . ToTable ( "clubapplicants" , ( string ) null ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Db.Models.ClubBans" , b = >
{
b . Property < int > ( "ClubId" )
. HasColumnType ( "int" )
. HasColumnName ( "clubid" ) ;
b . Property < int > ( "UserId" )
. HasColumnType ( "int" )
. HasColumnName ( "userid" ) ;
b . HasKey ( "ClubId" , "UserId" )
. HasName ( "pk_clubbans" ) ;
b . HasIndex ( "UserId" )
. HasDatabaseName ( "ix_clubbans_userid" ) ;
b . ToTable ( "clubbans" , ( string ) null ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Db.Models.ClubInfo" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-23 14:35:10 +12:00
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < string > ( "Description" )
. HasColumnType ( "longtext" )
. HasColumnName ( "description" ) ;
b . Property < string > ( "ImageUrl" )
. HasColumnType ( "longtext" )
. HasColumnName ( "imageurl" ) ;
b . Property < string > ( "Name" )
. IsRequired ( )
. HasMaxLength ( 20 )
. HasColumnType ( "varchar(20)" )
. HasColumnName ( "name" )
. UseCollation ( "utf8mb4_bin" ) ;
b . Property < int? > ( "OwnerId" )
. HasColumnType ( "int" )
. HasColumnName ( "ownerid" ) ;
b . Property < int > ( "Xp" )
. HasColumnType ( "int" )
. HasColumnName ( "xp" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_clubs" ) ;
b . HasAlternateKey ( "Name" )
. HasName ( "ak_clubs_name" ) ;
b . HasIndex ( "OwnerId" )
. IsUnique ( )
. HasDatabaseName ( "ix_clubs_ownerid" ) ;
b . ToTable ( "clubs" , ( string ) null ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Db.Models.DiscordUser" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < string > ( "AvatarId" )
. HasColumnType ( "longtext" )
. HasColumnName ( "avatarid" ) ;
b . Property < int? > ( "ClubId" )
. HasColumnType ( "int" )
. HasColumnName ( "clubid" ) ;
b . Property < long > ( "CurrencyAmount" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "bigint" )
. HasDefaultValue ( 0L )
. HasColumnName ( "currencyamount" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < string > ( "Discriminator" )
. HasColumnType ( "longtext" )
. HasColumnName ( "discriminator" ) ;
b . Property < bool > ( "IsClubAdmin" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "tinyint(1)" )
. HasDefaultValue ( false )
. HasColumnName ( "isclubadmin" ) ;
b . Property < DateTime > ( "LastLevelUp" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "lastlevelup" )
. HasDefaultValueSql ( "(UTC_TIMESTAMP)" ) ;
b . Property < DateTime > ( "LastXpGain" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "lastxpgain" )
. HasDefaultValueSql ( "(UTC_TIMESTAMP - INTERVAL 1 year)" ) ;
b . Property < int > ( "NotifyOnLevelUp" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasDefaultValue ( 0 )
. HasColumnName ( "notifyonlevelup" ) ;
b . Property < int > ( "TotalXp" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasDefaultValue ( 0 )
. HasColumnName ( "totalxp" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . Property < string > ( "Username" )
. HasColumnType ( "longtext" )
. HasColumnName ( "username" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_discorduser" ) ;
b . HasAlternateKey ( "UserId" )
. HasName ( "ak_discorduser_userid" ) ;
b . HasIndex ( "ClubId" )
. HasDatabaseName ( "ix_discorduser_clubid" ) ;
b . HasIndex ( "CurrencyAmount" )
. HasDatabaseName ( "ix_discorduser_currencyamount" ) ;
b . HasIndex ( "TotalXp" )
. HasDatabaseName ( "ix_discorduser_totalxp" ) ;
b . HasIndex ( "UserId" )
. HasDatabaseName ( "ix_discorduser_userid" ) ;
b . ToTable ( "discorduser" , ( string ) null ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Db.Models.FollowedStream" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < ulong > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
b . Property < string > ( "Message" )
. HasColumnType ( "longtext" )
. HasColumnName ( "message" ) ;
b . Property < int > ( "Type" )
. HasColumnType ( "int" )
. HasColumnName ( "type" ) ;
b . Property < string > ( "Username" )
. HasColumnType ( "longtext" )
. HasColumnName ( "username" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_followedstream" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_followedstream_guildconfigid" ) ;
b . ToTable ( "followedstream" , ( string ) null ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.AntiAltSetting" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-19 02:03:46 +12:00
b . Property < int > ( "Action" )
. HasColumnType ( "int" )
. HasColumnName ( "action" ) ;
b . Property < int > ( "ActionDurationMinutes" )
. HasColumnType ( "int" )
. HasColumnName ( "actiondurationminutes" ) ;
b . Property < int > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < TimeSpan > ( "MinAge" )
. HasColumnType ( "time(6)" )
. HasColumnName ( "minage" ) ;
b . Property < ulong? > ( "RoleId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "roleid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_antialtsetting" ) ;
b . HasIndex ( "GuildConfigId" )
. IsUnique ( )
. HasDatabaseName ( "ix_antialtsetting_guildconfigid" ) ;
b . ToTable ( "antialtsetting" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.AntiRaidSetting" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < int > ( "Action" )
. HasColumnType ( "int" )
. HasColumnName ( "action" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < int > ( "PunishDuration" )
. HasColumnType ( "int" )
. HasColumnName ( "punishduration" ) ;
b . Property < int > ( "Seconds" )
. HasColumnType ( "int" )
. HasColumnName ( "seconds" ) ;
b . Property < int > ( "UserThreshold" )
. HasColumnType ( "int" )
. HasColumnName ( "userthreshold" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_antiraidsetting" ) ;
b . HasIndex ( "GuildConfigId" )
. IsUnique ( )
. HasDatabaseName ( "ix_antiraidsetting_guildconfigid" ) ;
b . ToTable ( "antiraidsetting" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.AntiSpamIgnore" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < int? > ( "AntiSpamSettingId" )
. HasColumnType ( "int" )
. HasColumnName ( "antispamsettingid" ) ;
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_antispamignore" ) ;
b . HasIndex ( "AntiSpamSettingId" )
. HasDatabaseName ( "ix_antispamignore_antispamsettingid" ) ;
b . ToTable ( "antispamignore" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.AntiSpamSetting" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < int > ( "Action" )
. HasColumnType ( "int" )
. HasColumnName ( "action" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < int > ( "MessageThreshold" )
. HasColumnType ( "int" )
. HasColumnName ( "messagethreshold" ) ;
b . Property < int > ( "MuteTime" )
. HasColumnType ( "int" )
. HasColumnName ( "mutetime" ) ;
b . Property < ulong? > ( "RoleId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "roleid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_antispamsetting" ) ;
b . HasIndex ( "GuildConfigId" )
. IsUnique ( )
. HasDatabaseName ( "ix_antispamsetting_guildconfigid" ) ;
b . ToTable ( "antispamsetting" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.AutoCommand" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < string > ( "ChannelName" )
. HasColumnType ( "longtext" )
. HasColumnName ( "channelname" ) ;
b . Property < string > ( "CommandText" )
. HasColumnType ( "longtext" )
. HasColumnName ( "commandtext" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < ulong? > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
b . Property < string > ( "GuildName" )
. HasColumnType ( "longtext" )
. HasColumnName ( "guildname" ) ;
b . Property < int > ( "Interval" )
. HasColumnType ( "int" )
. HasColumnName ( "interval" ) ;
b . Property < ulong? > ( "VoiceChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "voicechannelid" ) ;
b . Property < string > ( "VoiceChannelName" )
. HasColumnType ( "longtext" )
. HasColumnName ( "voicechannelname" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_autocommands" ) ;
b . ToTable ( "autocommands" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.AutoTranslateChannel" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < bool > ( "AutoDelete" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "autodelete" ) ;
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < ulong > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_autotranslatechannels" ) ;
b . HasIndex ( "ChannelId" )
. IsUnique ( )
. HasDatabaseName ( "ix_autotranslatechannels_channelid" ) ;
b . HasIndex ( "GuildId" )
. HasDatabaseName ( "ix_autotranslatechannels_guildid" ) ;
2024-06-23 14:35:10 +12:00
b . ToTable ( "autotranslatechannels" , ( string ) null ) ;
2024-06-19 02:03:46 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.AutoTranslateUser" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-23 14:35:10 +12:00
b . Property < int > ( "ChannelId" )
. HasColumnType ( "int" )
. HasColumnName ( "channelid" ) ;
2024-06-19 17:19:56 +12:00
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
2024-06-23 14:35:10 +12:00
b . Property < string > ( "Source" )
. HasColumnType ( "longtext" )
. HasColumnName ( "source" ) ;
b . Property < string > ( "Target" )
. HasColumnType ( "longtext" )
. HasColumnName ( "target" ) ;
2024-06-19 17:19:56 +12:00
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . HasKey ( "Id" )
2024-06-23 14:35:10 +12:00
. HasName ( "pk_autotranslateusers" ) ;
2024-06-19 17:19:56 +12:00
2024-06-23 14:35:10 +12:00
b . HasAlternateKey ( "ChannelId" , "UserId" )
. HasName ( "ak_autotranslateusers_channelid_userid" ) ;
2024-06-19 17:19:56 +12:00
2024-06-23 14:35:10 +12:00
b . ToTable ( "autotranslateusers" , ( string ) null ) ;
2024-06-19 17:19:56 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.BanTemplate" , b = >
2024-06-19 17:19:56 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-19 02:03:46 +12:00
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
2024-06-23 14:35:10 +12:00
b . Property < ulong > ( "GuildId" )
2024-06-19 02:03:46 +12:00
. HasColumnType ( "bigint unsigned" )
2024-06-23 14:35:10 +12:00
. HasColumnName ( "guildid" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . Property < string > ( "Text" )
. HasColumnType ( "longtext" )
. HasColumnName ( "text" ) ;
2024-06-19 02:03:46 +12:00
b . HasKey ( "Id" )
2024-06-23 14:35:10 +12:00
. HasName ( "pk_bantemplates" ) ;
2024-06-19 17:19:56 +12:00
2024-06-23 14:35:10 +12:00
b . HasIndex ( "GuildId" )
. IsUnique ( )
. HasDatabaseName ( "ix_bantemplates_guildid" ) ;
2024-06-19 17:19:56 +12:00
2024-06-23 14:35:10 +12:00
b . ToTable ( "bantemplates" , ( string ) null ) ;
2024-06-19 17:19:56 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.BlacklistEntry" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-19 17:19:56 +12:00
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
2024-06-23 14:35:10 +12:00
b . Property < ulong > ( "ItemId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "itemid" ) ;
2024-06-19 17:19:56 +12:00
2024-06-23 14:35:10 +12:00
b . Property < int > ( "Type" )
2024-06-19 17:19:56 +12:00
. HasColumnType ( "int" )
2024-06-23 14:35:10 +12:00
. HasColumnName ( "type" ) ;
2024-06-19 17:19:56 +12:00
b . HasKey ( "Id" )
2024-06-23 14:35:10 +12:00
. HasName ( "pk_blacklist" ) ;
2024-06-19 17:19:56 +12:00
2024-06-23 14:35:10 +12:00
b . ToTable ( "blacklist" , ( string ) null ) ;
2024-06-19 17:19:56 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.CommandAlias" , b = >
2024-06-19 17:19:56 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-19 02:03:46 +12:00
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < string > ( "Mapping" )
. HasColumnType ( "longtext" )
. HasColumnName ( "mapping" ) ;
b . Property < string > ( "Trigger" )
. HasColumnType ( "longtext" )
. HasColumnName ( "trigger" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_commandalias" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_commandalias_guildconfigid" ) ;
b . ToTable ( "commandalias" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.CommandCooldown" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < string > ( "CommandName" )
. HasColumnType ( "longtext" )
. HasColumnName ( "commandname" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < int > ( "Seconds" )
. HasColumnType ( "int" )
. HasColumnName ( "seconds" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_commandcooldown" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_commandcooldown_guildconfigid" ) ;
b . ToTable ( "commandcooldown" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.CurrencyTransaction" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < long > ( "Amount" )
. HasColumnType ( "bigint" )
. HasColumnName ( "amount" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < string > ( "Extra" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnName ( "extra" ) ;
b . Property < string > ( "Note" )
. HasColumnType ( "longtext" )
. HasColumnName ( "note" ) ;
b . Property < ulong? > ( "OtherId" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "otherid" )
. HasDefaultValueSql ( "NULL" ) ;
b . Property < string > ( "Type" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnName ( "type" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_currencytransactions" ) ;
b . HasIndex ( "UserId" )
. HasDatabaseName ( "ix_currencytransactions_userid" ) ;
b . ToTable ( "currencytransactions" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.DelMsgOnCmdChannel" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
2024-06-23 14:35:10 +12:00
b . Property < int? > ( "GuildConfigId" )
2024-06-19 02:03:46 +12:00
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < bool > ( "State" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "state" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_delmsgoncmdchannel" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_delmsgoncmdchannel_guildconfigid" ) ;
b . ToTable ( "delmsgoncmdchannel" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.DiscordPermOverride" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < string > ( "Command" )
. HasColumnType ( "varchar(255)" )
. HasColumnName ( "command" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < ulong? > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
2024-06-23 14:35:10 +12:00
b . Property < ulong > ( "Perm" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "perm" ) ;
2024-06-19 17:19:56 +12:00
b . HasKey ( "Id" )
2024-06-23 14:35:10 +12:00
. HasName ( "pk_discordpermoverrides" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . HasIndex ( "GuildId" , "Command" )
. IsUnique ( )
. HasDatabaseName ( "ix_discordpermoverrides_guildid_command" ) ;
b . ToTable ( "discordpermoverrides" , ( string ) null ) ;
2024-06-19 02:03:46 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.ExcludedItem" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < ulong > ( "ItemId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "itemid" ) ;
b . Property < int > ( "ItemType" )
. HasColumnType ( "int" )
. HasColumnName ( "itemtype" ) ;
b . Property < int? > ( "XpSettingsId" )
. HasColumnType ( "int" )
. HasColumnName ( "xpsettingsid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_excludeditem" ) ;
b . HasIndex ( "XpSettingsId" )
. HasDatabaseName ( "ix_excludeditem_xpsettingsid" ) ;
b . ToTable ( "excludeditem" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.FeedSub" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < string > ( "Url" )
. IsRequired ( )
. HasColumnType ( "varchar(255)" )
. HasColumnName ( "url" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_feedsub" ) ;
b . HasAlternateKey ( "GuildConfigId" , "Url" )
. HasName ( "ak_feedsub_guildconfigid_url" ) ;
b . ToTable ( "feedsub" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.FilterChannelId" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_filterchannelid" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_filterchannelid_guildconfigid" ) ;
b . ToTable ( "filterchannelid" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.FilteredWord" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
2024-06-23 14:35:10 +12:00
b . Property < string > ( "Word" )
. HasColumnType ( "longtext" )
. HasColumnName ( "word" ) ;
2024-06-19 02:03:46 +12:00
b . HasKey ( "Id" )
2024-06-23 14:35:10 +12:00
. HasName ( "pk_filteredword" ) ;
2024-06-19 02:03:46 +12:00
b . HasIndex ( "GuildConfigId" )
2024-06-23 14:35:10 +12:00
. HasDatabaseName ( "ix_filteredword_guildconfigid" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . ToTable ( "filteredword" , ( string ) null ) ;
2024-06-19 02:03:46 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.FilterLinksChannelId" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . HasKey ( "Id" )
2024-06-23 14:35:10 +12:00
. HasName ( "pk_filterlinkschannelid" ) ;
2024-06-19 17:19:56 +12:00
b . HasIndex ( "GuildConfigId" )
2024-06-23 14:35:10 +12:00
. HasDatabaseName ( "ix_filterlinkschannelid_guildconfigid" ) ;
2024-06-19 17:19:56 +12:00
2024-06-23 14:35:10 +12:00
b . ToTable ( "filterlinkschannelid" , ( string ) null ) ;
2024-06-19 02:03:46 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.FilterWordsChannelId" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . HasKey ( "Id" )
2024-06-23 14:35:10 +12:00
. HasName ( "pk_filterwordschannelid" ) ;
2024-06-19 02:03:46 +12:00
b . HasIndex ( "GuildConfigId" )
2024-06-23 14:35:10 +12:00
. HasDatabaseName ( "ix_filterwordschannelid_guildconfigid" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . ToTable ( "filterwordschannelid" , ( string ) null ) ;
2024-06-19 02:03:46 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.GCChannelId" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_gcchannelid" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_gcchannelid_guildconfigid" ) ;
b . ToTable ( "gcchannelid" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.GroupName" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < string > ( "Name" )
. HasColumnType ( "longtext" )
. HasColumnName ( "name" ) ;
b . Property < int > ( "Number" )
. HasColumnType ( "int" )
. HasColumnName ( "number" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_groupname" ) ;
b . HasIndex ( "GuildConfigId" , "Number" )
. IsUnique ( )
. HasDatabaseName ( "ix_groupname_guildconfigid_number" ) ;
b . ToTable ( "groupname" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.GuildConfig" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < string > ( "AutoAssignRoleIds" )
. HasColumnType ( "longtext" )
. HasColumnName ( "autoassignroleids" ) ;
b . Property < int > ( "AutoDeleteByeMessagesTimer" )
. HasColumnType ( "int" )
. HasColumnName ( "autodeletebyemessagestimer" ) ;
b . Property < int > ( "AutoDeleteGreetMessagesTimer" )
. HasColumnType ( "int" )
. HasColumnName ( "autodeletegreetmessagestimer" ) ;
b . Property < bool > ( "AutoDeleteSelfAssignedRoleMessages" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "autodeleteselfassignedrolemessages" ) ;
b . Property < string > ( "BoostMessage" )
. HasColumnType ( "longtext" )
. HasColumnName ( "boostmessage" ) ;
b . Property < ulong > ( "BoostMessageChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "boostmessagechannelid" ) ;
b . Property < int > ( "BoostMessageDeleteAfter" )
. HasColumnType ( "int" )
. HasColumnName ( "boostmessagedeleteafter" ) ;
b . Property < ulong > ( "ByeMessageChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "byemessagechannelid" ) ;
b . Property < string > ( "ChannelByeMessageText" )
. HasColumnType ( "longtext" )
. HasColumnName ( "channelbyemessagetext" ) ;
b . Property < string > ( "ChannelGreetMessageText" )
. HasColumnType ( "longtext" )
. HasColumnName ( "channelgreetmessagetext" ) ;
b . Property < bool > ( "CleverbotEnabled" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "cleverbotenabled" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < bool > ( "DeleteMessageOnCommand" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "deletemessageoncommand" ) ;
2024-06-19 17:19:56 +12:00
b . Property < bool > ( "DeleteStreamOnlineMessage" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "deletestreamonlinemessage" ) ;
2024-06-19 02:03:46 +12:00
b . Property < string > ( "DmGreetMessageText" )
. HasColumnType ( "longtext" )
. HasColumnName ( "dmgreetmessagetext" ) ;
b . Property < bool > ( "ExclusiveSelfAssignedRoles" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "exclusiveselfassignedroles" ) ;
b . Property < bool > ( "FilterInvites" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "filterinvites" ) ;
b . Property < bool > ( "FilterLinks" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "filterlinks" ) ;
b . Property < bool > ( "FilterWords" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "filterwords" ) ;
b . Property < ulong? > ( "GameVoiceChannel" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "gamevoicechannel" ) ;
b . Property < ulong > ( "GreetMessageChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "greetmessagechannelid" ) ;
b . Property < ulong > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
b . Property < string > ( "Locale" )
. HasColumnType ( "longtext" )
. HasColumnName ( "locale" ) ;
b . Property < string > ( "MuteRoleName" )
. HasColumnType ( "longtext" )
. HasColumnName ( "muterolename" ) ;
b . Property < bool > ( "NotifyStreamOffline" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "notifystreamoffline" ) ;
b . Property < string > ( "PermissionRole" )
. HasColumnType ( "longtext" )
. HasColumnName ( "permissionrole" ) ;
b . Property < string > ( "Prefix" )
. HasColumnType ( "longtext" )
. HasColumnName ( "prefix" ) ;
b . Property < bool > ( "SendBoostMessage" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "sendboostmessage" ) ;
b . Property < bool > ( "SendChannelByeMessage" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "sendchannelbyemessage" ) ;
b . Property < bool > ( "SendChannelGreetMessage" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "sendchannelgreetmessage" ) ;
b . Property < bool > ( "SendDmGreetMessage" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "senddmgreetmessage" ) ;
b . Property < string > ( "TimeZoneId" )
. HasColumnType ( "longtext" )
. HasColumnName ( "timezoneid" ) ;
b . Property < bool > ( "VerboseErrors" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "verboseerrors" ) ;
b . Property < bool > ( "VerbosePermissions" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "verbosepermissions" ) ;
b . Property < int > ( "WarnExpireAction" )
. HasColumnType ( "int" )
. HasColumnName ( "warnexpireaction" ) ;
b . Property < int > ( "WarnExpireHours" )
. HasColumnType ( "int" )
. HasColumnName ( "warnexpirehours" ) ;
b . Property < bool > ( "WarningsInitialized" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "warningsinitialized" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_guildconfigs" ) ;
b . HasIndex ( "GuildId" )
. IsUnique ( )
. HasDatabaseName ( "ix_guildconfigs_guildid" ) ;
b . HasIndex ( "WarnExpireHours" )
. HasDatabaseName ( "ix_guildconfigs_warnexpirehours" ) ;
b . ToTable ( "guildconfigs" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.IgnoredLogItem" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int > ( "ItemType" )
. HasColumnType ( "int" )
. HasColumnName ( "itemtype" ) ;
b . Property < ulong > ( "LogItemId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "logitemid" ) ;
b . Property < int > ( "LogSettingId" )
. HasColumnType ( "int" )
. HasColumnName ( "logsettingid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_ignoredlogchannels" ) ;
b . HasIndex ( "LogSettingId" , "LogItemId" , "ItemType" )
. IsUnique ( )
. HasDatabaseName ( "ix_ignoredlogchannels_logsettingid_logitemid_itemtype" ) ;
b . ToTable ( "ignoredlogchannels" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.IgnoredVoicePresenceChannel" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-23 14:35:10 +12:00
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "LogSettingId" )
. HasColumnType ( "int" )
. HasColumnName ( "logsettingid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_ignoredvoicepresencechannels" ) ;
b . HasIndex ( "LogSettingId" )
. HasDatabaseName ( "ix_ignoredvoicepresencechannels_logsettingid" ) ;
b . ToTable ( "ignoredvoicepresencechannels" , ( string ) null ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.ImageOnlyChannel" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-19 02:03:46 +12:00
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < ulong > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_imageonlychannels" ) ;
b . HasIndex ( "ChannelId" )
. IsUnique ( )
. HasDatabaseName ( "ix_imageonlychannels_channelid" ) ;
b . ToTable ( "imageonlychannels" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.LogSetting" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < ulong? > ( "ChannelCreatedId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelcreatedid" ) ;
b . Property < ulong? > ( "ChannelDestroyedId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channeldestroyedid" ) ;
b . Property < ulong? > ( "ChannelUpdatedId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelupdatedid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < ulong > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
b . Property < ulong? > ( "LogOtherId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "logotherid" ) ;
b . Property < ulong? > ( "LogUserPresenceId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "loguserpresenceid" ) ;
b . Property < ulong? > ( "LogVoicePresenceId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "logvoicepresenceid" ) ;
b . Property < ulong? > ( "LogVoicePresenceTTSId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "logvoicepresencettsid" ) ;
b . Property < ulong? > ( "MessageDeletedId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "messagedeletedid" ) ;
b . Property < ulong? > ( "MessageUpdatedId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "messageupdatedid" ) ;
b . Property < ulong? > ( "UserBannedId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userbannedid" ) ;
b . Property < ulong? > ( "UserJoinedId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userjoinedid" ) ;
b . Property < ulong? > ( "UserLeftId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userleftid" ) ;
b . Property < ulong? > ( "UserMutedId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "usermutedid" ) ;
b . Property < ulong? > ( "UserUnbannedId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userunbannedid" ) ;
b . Property < ulong? > ( "UserUpdatedId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userupdatedid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_logsettings" ) ;
b . HasIndex ( "GuildId" )
. IsUnique ( )
. HasDatabaseName ( "ix_logsettings_guildid" ) ;
b . ToTable ( "logsettings" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.MusicPlayerSettings" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < bool > ( "AutoDisconnect" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "autodisconnect" ) ;
b . Property < bool > ( "AutoPlay" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "autoplay" ) ;
b . Property < ulong > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
b . Property < ulong? > ( "MusicChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "musicchannelid" ) ;
b . Property < int > ( "PlayerRepeat" )
. HasColumnType ( "int" )
. HasColumnName ( "playerrepeat" ) ;
b . Property < int > ( "QualityPreset" )
. HasColumnType ( "int" )
. HasColumnName ( "qualitypreset" ) ;
b . Property < int > ( "Volume" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasDefaultValue ( 100 )
. HasColumnName ( "volume" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_musicplayersettings" ) ;
b . HasIndex ( "GuildId" )
. IsUnique ( )
. HasDatabaseName ( "ix_musicplayersettings_guildid" ) ;
b . ToTable ( "musicplayersettings" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.MusicPlaylist" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < string > ( "Author" )
. HasColumnType ( "longtext" )
. HasColumnName ( "author" ) ;
b . Property < ulong > ( "AuthorId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "authorid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < string > ( "Name" )
. HasColumnType ( "longtext" )
. HasColumnName ( "name" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_musicplaylists" ) ;
b . ToTable ( "musicplaylists" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.MutedUserId" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_muteduserid" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_muteduserid_guildconfigid" ) ;
b . ToTable ( "muteduserid" , ( string ) null ) ;
} ) ;
2024-06-26 21:03:14 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.EllieExpression" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
2024-06-19 17:19:56 +12:00
. HasColumnType ( "int" )
2024-06-23 14:35:10 +12:00
. HasColumnName ( "id" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . Property < bool > ( "AllowTarget" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "allowtarget" ) ;
b . Property < bool > ( "AutoDeleteTrigger" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "autodeletetrigger" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . Property < bool > ( "ContainsAnywhere" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "containsanywhere" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . Property < bool > ( "DmResponse" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "dmresponse" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . Property < ulong? > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . Property < string > ( "Reactions" )
. HasColumnType ( "longtext" )
. HasColumnName ( "reactions" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . Property < string > ( "Response" )
. HasColumnType ( "longtext" )
. HasColumnName ( "response" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . Property < string > ( "Trigger" )
. HasColumnType ( "longtext" )
. HasColumnName ( "trigger" ) ;
2024-06-19 17:19:56 +12:00
2024-06-23 14:35:10 +12:00
b . HasKey ( "Id" )
. HasName ( "pk_expressions" ) ;
b . ToTable ( "expressions" , ( string ) null ) ;
} ) ;
2024-06-19 17:19:56 +12:00
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.NsfwBlacklistedTag" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
2024-06-19 02:03:46 +12:00
. HasColumnType ( "int" )
2024-06-23 14:35:10 +12:00
. HasColumnName ( "id" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . Property < DateTime ? > ( "DateAdded" )
2024-06-19 02:03:46 +12:00
. HasColumnType ( "datetime(6)" )
2024-06-23 14:35:10 +12:00
. HasColumnName ( "dateadded" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . Property < ulong > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . Property < string > ( "Tag" )
. HasColumnType ( "longtext" )
. HasColumnName ( "tag" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . HasKey ( "Id" )
. HasName ( "pk_nsfwblacklistedtags" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . HasIndex ( "GuildId" )
. HasDatabaseName ( "ix_nsfwblacklistedtags_guildid" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . ToTable ( "nsfwblacklistedtags" , ( string ) null ) ;
2024-06-19 02:03:46 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.Permissionv2" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < int > ( "Index" )
. HasColumnType ( "int" )
. HasColumnName ( "index" ) ;
b . Property < bool > ( "IsCustomCommand" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "iscustomcommand" ) ;
b . Property < int > ( "PrimaryTarget" )
. HasColumnType ( "int" )
. HasColumnName ( "primarytarget" ) ;
b . Property < ulong > ( "PrimaryTargetId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "primarytargetid" ) ;
b . Property < int > ( "SecondaryTarget" )
. HasColumnType ( "int" )
. HasColumnName ( "secondarytarget" ) ;
b . Property < string > ( "SecondaryTargetName" )
. HasColumnType ( "longtext" )
. HasColumnName ( "secondarytargetname" ) ;
b . Property < bool > ( "State" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "state" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_permissions" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_permissions_guildconfigid" ) ;
b . ToTable ( "permissions" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.PlantedCurrency" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < long > ( "Amount" )
. HasColumnType ( "bigint" )
. HasColumnName ( "amount" ) ;
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < ulong > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
b . Property < ulong > ( "MessageId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "messageid" ) ;
b . Property < string > ( "Password" )
. HasColumnType ( "longtext" )
. HasColumnName ( "password" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_plantedcurrency" ) ;
b . HasIndex ( "ChannelId" )
. HasDatabaseName ( "ix_plantedcurrency_channelid" ) ;
b . HasIndex ( "MessageId" )
. IsUnique ( )
. HasDatabaseName ( "ix_plantedcurrency_messageid" ) ;
b . ToTable ( "plantedcurrency" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.PlaylistSong" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "MusicPlaylistId" )
. HasColumnType ( "int" )
. HasColumnName ( "musicplaylistid" ) ;
b . Property < string > ( "Provider" )
. HasColumnType ( "longtext" )
. HasColumnName ( "provider" ) ;
b . Property < int > ( "ProviderType" )
. HasColumnType ( "int" )
. HasColumnName ( "providertype" ) ;
b . Property < string > ( "Query" )
. HasColumnType ( "longtext" )
. HasColumnName ( "query" ) ;
b . Property < string > ( "Title" )
. HasColumnType ( "longtext" )
. HasColumnName ( "title" ) ;
b . Property < string > ( "Uri" )
. HasColumnType ( "longtext" )
. HasColumnName ( "uri" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_playlistsong" ) ;
b . HasIndex ( "MusicPlaylistId" )
. HasDatabaseName ( "ix_playlistsong_musicplaylistid" ) ;
b . ToTable ( "playlistsong" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.Poll" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < ulong > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
b . Property < string > ( "Question" )
. HasColumnType ( "longtext" )
. HasColumnName ( "question" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_poll" ) ;
b . HasIndex ( "GuildId" )
. IsUnique ( )
. HasDatabaseName ( "ix_poll_guildid" ) ;
b . ToTable ( "poll" , ( string ) null ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.PollAnswer" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int > ( "Index" )
. HasColumnType ( "int" )
. HasColumnName ( "index" ) ;
b . Property < int? > ( "PollId" )
. HasColumnType ( "int" )
. HasColumnName ( "pollid" ) ;
b . Property < string > ( "Text" )
. HasColumnType ( "longtext" )
. HasColumnName ( "text" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_pollanswer" ) ;
b . HasIndex ( "PollId" )
. HasDatabaseName ( "ix_pollanswer_pollid" ) ;
b . ToTable ( "pollanswer" , ( string ) null ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.PollVote" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-23 14:35:10 +12:00
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "PollId" )
. HasColumnType ( "int" )
. HasColumnName ( "pollid" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . Property < int > ( "VoteIndex" )
. HasColumnType ( "int" )
. HasColumnName ( "voteindex" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_pollvote" ) ;
b . HasIndex ( "PollId" )
. HasDatabaseName ( "ix_pollvote_pollid" ) ;
b . ToTable ( "pollvote" , ( string ) null ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.Quote" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-19 02:03:46 +12:00
b . Property < ulong > ( "AuthorId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "authorid" ) ;
b . Property < string > ( "AuthorName" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnName ( "authorname" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < ulong > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
b . Property < string > ( "Keyword" )
. IsRequired ( )
. HasColumnType ( "varchar(255)" )
. HasColumnName ( "keyword" ) ;
b . Property < string > ( "Text" )
. IsRequired ( )
. HasColumnType ( "longtext" )
. HasColumnName ( "text" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_quotes" ) ;
b . HasIndex ( "GuildId" )
. HasDatabaseName ( "ix_quotes_guildid" ) ;
b . HasIndex ( "Keyword" )
. HasDatabaseName ( "ix_quotes_keyword" ) ;
b . ToTable ( "quotes" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.ReactionRole" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-23 14:35:10 +12:00
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < string > ( "EmoteName" )
. HasColumnType ( "longtext" )
. HasColumnName ( "emotename" ) ;
b . Property < int? > ( "ReactionRoleMessageId" )
. HasColumnType ( "int" )
. HasColumnName ( "reactionrolemessageid" ) ;
b . Property < ulong > ( "RoleId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "roleid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_reactionrole" ) ;
b . HasIndex ( "ReactionRoleMessageId" )
. HasDatabaseName ( "ix_reactionrole_reactionrolemessageid" ) ;
b . ToTable ( "reactionrole" , ( string ) null ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.ReactionRoleMessage" , b = >
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-19 02:03:46 +12:00
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
2024-06-23 14:35:10 +12:00
b . Property < bool > ( "Exclusive" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "exclusive" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . Property < int > ( "GuildConfigId" )
2024-06-19 02:03:46 +12:00
. HasColumnType ( "int" )
2024-06-23 14:35:10 +12:00
. HasColumnName ( "guildconfigid" ) ;
2024-06-19 17:19:56 +12:00
2024-06-23 14:35:10 +12:00
b . Property < int > ( "Index" )
2024-06-19 02:03:46 +12:00
. HasColumnType ( "int" )
2024-06-23 14:35:10 +12:00
. HasColumnName ( "index" ) ;
2024-06-19 02:03:46 +12:00
b . Property < ulong > ( "MessageId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "messageid" ) ;
b . HasKey ( "Id" )
2024-06-23 14:35:10 +12:00
. HasName ( "pk_reactionrolemessage" ) ;
2024-06-19 02:03:46 +12:00
2024-06-23 14:35:10 +12:00
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_reactionrolemessage_guildconfigid" ) ;
2024-06-19 17:19:56 +12:00
2024-06-23 14:35:10 +12:00
b . ToTable ( "reactionrolemessage" , ( string ) null ) ;
2024-06-19 02:03:46 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.Reminder" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < bool > ( "IsPrivate" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "isprivate" ) ;
b . Property < string > ( "Message" )
. HasColumnType ( "longtext" )
. HasColumnName ( "message" ) ;
b . Property < ulong > ( "ServerId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "serverid" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . Property < DateTime > ( "When" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "when" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_reminders" ) ;
b . HasIndex ( "When" )
. HasDatabaseName ( "ix_reminders_when" ) ;
b . ToTable ( "reminders" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.Repeater" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < ulong > ( "ChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "channelid" ) ;
b . Property < DateTime > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < ulong > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
b . Property < TimeSpan > ( "Interval" )
. HasColumnType ( "time(6)" )
. HasColumnName ( "interval" ) ;
b . Property < ulong? > ( "LastMessageId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "lastmessageid" ) ;
b . Property < string > ( "Message" )
. HasColumnType ( "longtext" )
. HasColumnName ( "message" ) ;
b . Property < bool > ( "NoRedundant" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "noredundant" ) ;
b . Property < TimeSpan ? > ( "StartTimeOfDay" )
. HasColumnType ( "time(6)" )
. HasColumnName ( "starttimeofday" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_repeaters" ) ;
b . ToTable ( "repeaters" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.RewardedUser" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-23 14:35:10 +12:00
b . Property < int > ( "AmountRewardedThisMonth" )
. HasColumnType ( "int" )
2024-06-19 02:03:46 +12:00
. HasColumnName ( "amountrewardedthismonth" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < DateTime > ( "LastReward" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "lastreward" ) ;
2024-06-23 14:35:10 +12:00
b . Property < string > ( "PatreonUserId" )
2024-06-19 02:03:46 +12:00
. HasColumnType ( "varchar(255)" )
2024-06-23 14:35:10 +12:00
. HasColumnName ( "patreonuserid" ) ;
2024-06-19 02:03:46 +12:00
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_rewardedusers" ) ;
2024-06-23 14:35:10 +12:00
b . HasIndex ( "PatreonUserId" )
2024-06-19 02:03:46 +12:00
. IsUnique ( )
2024-06-23 14:35:10 +12:00
. HasDatabaseName ( "ix_rewardedusers_patreonuserid" ) ;
2024-06-19 02:03:46 +12:00
b . ToTable ( "rewardedusers" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.RotatingPlayingStatus" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < string > ( "Status" )
. HasColumnType ( "longtext" )
. HasColumnName ( "status" ) ;
b . Property < int > ( "Type" )
. HasColumnType ( "int" )
. HasColumnName ( "type" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_rotatingstatus" ) ;
b . ToTable ( "rotatingstatus" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.SelfAssignedRole" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int > ( "Group" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasDefaultValue ( 0 )
. HasColumnName ( "group" ) ;
b . Property < ulong > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
b . Property < int > ( "LevelRequirement" )
. HasColumnType ( "int" )
. HasColumnName ( "levelrequirement" ) ;
b . Property < ulong > ( "RoleId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "roleid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_selfassignableroles" ) ;
b . HasIndex ( "GuildId" , "RoleId" )
. IsUnique ( )
. HasDatabaseName ( "ix_selfassignableroles_guildid_roleid" ) ;
b . ToTable ( "selfassignableroles" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.ShopEntry" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < ulong > ( "AuthorId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "authorid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < int > ( "Index" )
. HasColumnType ( "int" )
. HasColumnName ( "index" ) ;
b . Property < string > ( "Name" )
. HasColumnType ( "longtext" )
. HasColumnName ( "name" ) ;
b . Property < int > ( "Price" )
. HasColumnType ( "int" )
. HasColumnName ( "price" ) ;
b . Property < ulong > ( "RoleId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "roleid" ) ;
b . Property < string > ( "RoleName" )
. HasColumnType ( "longtext" )
. HasColumnName ( "rolename" ) ;
b . Property < int > ( "Type" )
. HasColumnType ( "int" )
. HasColumnName ( "type" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_shopentry" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_shopentry_guildconfigid" ) ;
b . ToTable ( "shopentry" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.ShopEntryItem" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "ShopEntryId" )
. HasColumnType ( "int" )
. HasColumnName ( "shopentryid" ) ;
b . Property < string > ( "Text" )
. HasColumnType ( "longtext" )
. HasColumnName ( "text" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_shopentryitem" ) ;
b . HasIndex ( "ShopEntryId" )
. HasDatabaseName ( "ix_shopentryitem_shopentryid" ) ;
b . ToTable ( "shopentryitem" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.SlowmodeIgnoredRole" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < ulong > ( "RoleId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "roleid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_slowmodeignoredrole" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_slowmodeignoredrole_guildconfigid" ) ;
b . ToTable ( "slowmodeignoredrole" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.SlowmodeIgnoredUser" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_slowmodeignoreduser" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_slowmodeignoreduser_guildconfigid" ) ;
b . ToTable ( "slowmodeignoreduser" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.StreamRoleBlacklistedUser" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
2024-06-23 14:35:10 +12:00
b . Property < int? > ( "StreamRoleSettingsId" )
2024-06-19 02:03:46 +12:00
. HasColumnType ( "int" )
. HasColumnName ( "streamrolesettingsid" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . Property < string > ( "Username" )
. HasColumnType ( "longtext" )
. HasColumnName ( "username" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_streamroleblacklisteduser" ) ;
b . HasIndex ( "StreamRoleSettingsId" )
. HasDatabaseName ( "ix_streamroleblacklisteduser_streamrolesettingsid" ) ;
b . ToTable ( "streamroleblacklisteduser" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.StreamRoleSettings" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < ulong > ( "AddRoleId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "addroleid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < bool > ( "Enabled" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "enabled" ) ;
b . Property < ulong > ( "FromRoleId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "fromroleid" ) ;
b . Property < int > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < string > ( "Keyword" )
. HasColumnType ( "longtext" )
. HasColumnName ( "keyword" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_streamrolesettings" ) ;
b . HasIndex ( "GuildConfigId" )
. IsUnique ( )
. HasDatabaseName ( "ix_streamrolesettings_guildconfigid" ) ;
b . ToTable ( "streamrolesettings" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.StreamRoleWhitelistedUser" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
2024-06-23 14:35:10 +12:00
b . Property < int? > ( "StreamRoleSettingsId" )
2024-06-19 02:03:46 +12:00
. HasColumnType ( "int" )
. HasColumnName ( "streamrolesettingsid" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . Property < string > ( "Username" )
. HasColumnType ( "longtext" )
. HasColumnName ( "username" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_streamrolewhitelisteduser" ) ;
b . HasIndex ( "StreamRoleSettingsId" )
. HasDatabaseName ( "ix_streamrolewhitelisteduser_streamrolesettingsid" ) ;
b . ToTable ( "streamrolewhitelisteduser" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.UnbanTimer" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < DateTime > ( "UnbanAt" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "unbanat" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_unbantimer" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_unbantimer_guildconfigid" ) ;
b . ToTable ( "unbantimer" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.UnmuteTimer" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < DateTime > ( "UnmuteAt" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "unmuteat" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_unmutetimer" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_unmutetimer_guildconfigid" ) ;
b . ToTable ( "unmutetimer" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.UnroleTimer" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < ulong > ( "RoleId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "roleid" ) ;
b . Property < DateTime > ( "UnbanAt" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "unbanat" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_unroletimer" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_unroletimer_guildconfigid" ) ;
b . ToTable ( "unroletimer" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.UserXpStats" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
2024-06-23 14:35:10 +12:00
b . Property < int > ( "AwardedXp" )
. HasColumnType ( "int" )
2024-06-19 02:03:46 +12:00
. HasColumnName ( "awardedxp" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < ulong > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
2024-06-23 14:35:10 +12:00
b . Property < DateTime > ( "LastLevelUp" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "lastlevelup" )
. HasDefaultValueSql ( "(UTC_TIMESTAMP)" ) ;
2024-06-19 02:03:46 +12:00
b . Property < int > ( "NotifyOnLevelUp" )
. HasColumnType ( "int" )
. HasColumnName ( "notifyonlevelup" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
2024-06-23 14:35:10 +12:00
b . Property < int > ( "Xp" )
. HasColumnType ( "int" )
2024-06-19 02:03:46 +12:00
. HasColumnName ( "xp" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_userxpstats" ) ;
b . HasIndex ( "AwardedXp" )
. HasDatabaseName ( "ix_userxpstats_awardedxp" ) ;
b . HasIndex ( "GuildId" )
. HasDatabaseName ( "ix_userxpstats_guildid" ) ;
b . HasIndex ( "UserId" )
. HasDatabaseName ( "ix_userxpstats_userid" ) ;
b . HasIndex ( "Xp" )
. HasDatabaseName ( "ix_userxpstats_xp" ) ;
b . HasIndex ( "UserId" , "GuildId" )
. IsUnique ( )
. HasDatabaseName ( "ix_userxpstats_userid_guildid" ) ;
b . ToTable ( "userxpstats" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.VcRoleInfo" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < ulong > ( "RoleId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "roleid" ) ;
b . Property < ulong > ( "VoiceChannelId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "voicechannelid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_vcroleinfo" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_vcroleinfo_guildconfigid" ) ;
b . ToTable ( "vcroleinfo" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.WaifuInfo" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < int? > ( "AffinityId" )
. HasColumnType ( "int" )
. HasColumnName ( "affinityid" ) ;
b . Property < int? > ( "ClaimerId" )
. HasColumnType ( "int" )
. HasColumnName ( "claimerid" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < long > ( "Price" )
. HasColumnType ( "bigint" )
. HasColumnName ( "price" ) ;
b . Property < int > ( "WaifuId" )
. HasColumnType ( "int" )
. HasColumnName ( "waifuid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_waifuinfo" ) ;
b . HasIndex ( "AffinityId" )
. HasDatabaseName ( "ix_waifuinfo_affinityid" ) ;
b . HasIndex ( "ClaimerId" )
. HasDatabaseName ( "ix_waifuinfo_claimerid" ) ;
b . HasIndex ( "Price" )
. HasDatabaseName ( "ix_waifuinfo_price" ) ;
b . HasIndex ( "WaifuId" )
. IsUnique ( )
. HasDatabaseName ( "ix_waifuinfo_waifuid" ) ;
b . ToTable ( "waifuinfo" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.WaifuItem" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < string > ( "ItemEmoji" )
. HasColumnType ( "longtext" )
. HasColumnName ( "itememoji" ) ;
b . Property < string > ( "Name" )
. HasColumnType ( "longtext" )
. HasColumnName ( "name" ) ;
b . Property < int? > ( "WaifuInfoId" )
. HasColumnType ( "int" )
. HasColumnName ( "waifuinfoid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_waifuitem" ) ;
b . HasIndex ( "WaifuInfoId" )
. HasDatabaseName ( "ix_waifuitem_waifuinfoid" ) ;
b . ToTable ( "waifuitem" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.WaifuUpdate" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "NewId" )
. HasColumnType ( "int" )
. HasColumnName ( "newid" ) ;
b . Property < int? > ( "OldId" )
. HasColumnType ( "int" )
. HasColumnName ( "oldid" ) ;
b . Property < int > ( "UpdateType" )
. HasColumnType ( "int" )
. HasColumnName ( "updatetype" ) ;
b . Property < int > ( "UserId" )
. HasColumnType ( "int" )
. HasColumnName ( "userid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_waifuupdates" ) ;
b . HasIndex ( "NewId" )
. HasDatabaseName ( "ix_waifuupdates_newid" ) ;
b . HasIndex ( "OldId" )
. HasDatabaseName ( "ix_waifuupdates_oldid" ) ;
b . HasIndex ( "UserId" )
. HasDatabaseName ( "ix_waifuupdates_userid" ) ;
b . ToTable ( "waifuupdates" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.Warning" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < bool > ( "Forgiven" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "forgiven" ) ;
b . Property < string > ( "ForgivenBy" )
. HasColumnType ( "longtext" )
. HasColumnName ( "forgivenby" ) ;
b . Property < ulong > ( "GuildId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "guildid" ) ;
b . Property < string > ( "Moderator" )
. HasColumnType ( "longtext" )
. HasColumnName ( "moderator" ) ;
b . Property < string > ( "Reason" )
. HasColumnType ( "longtext" )
. HasColumnName ( "reason" ) ;
b . Property < ulong > ( "UserId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "userid" ) ;
b . Property < long > ( "Weight" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "bigint" )
. HasDefaultValue ( 1L )
. HasColumnName ( "weight" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_warnings" ) ;
b . HasIndex ( "DateAdded" )
. HasDatabaseName ( "ix_warnings_dateadded" ) ;
b . HasIndex ( "GuildId" )
. HasDatabaseName ( "ix_warnings_guildid" ) ;
b . HasIndex ( "UserId" )
. HasDatabaseName ( "ix_warnings_userid" ) ;
b . ToTable ( "warnings" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.WarningPunishment" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < int > ( "Count" )
. HasColumnType ( "int" )
. HasColumnName ( "count" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int? > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < int > ( "Punishment" )
. HasColumnType ( "int" )
. HasColumnName ( "punishment" ) ;
b . Property < ulong? > ( "RoleId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "roleid" ) ;
b . Property < int > ( "Time" )
. HasColumnType ( "int" )
. HasColumnName ( "time" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_warningpunishment" ) ;
b . HasIndex ( "GuildConfigId" )
. HasDatabaseName ( "ix_warningpunishment_guildconfigid" ) ;
b . ToTable ( "warningpunishment" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.XpCurrencyReward" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < int > ( "Amount" )
. HasColumnType ( "int" )
. HasColumnName ( "amount" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int > ( "Level" )
. HasColumnType ( "int" )
. HasColumnName ( "level" ) ;
b . Property < int > ( "XpSettingsId" )
. HasColumnType ( "int" )
. HasColumnName ( "xpsettingsid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_xpcurrencyreward" ) ;
b . HasIndex ( "XpSettingsId" )
. HasDatabaseName ( "ix_xpcurrencyreward_xpsettingsid" ) ;
b . ToTable ( "xpcurrencyreward" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.XpRoleReward" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int > ( "Level" )
. HasColumnType ( "int" )
. HasColumnName ( "level" ) ;
b . Property < bool > ( "Remove" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "remove" ) ;
b . Property < ulong > ( "RoleId" )
. HasColumnType ( "bigint unsigned" )
. HasColumnName ( "roleid" ) ;
b . Property < int > ( "XpSettingsId" )
. HasColumnType ( "int" )
. HasColumnName ( "xpsettingsid" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_xprolereward" ) ;
b . HasIndex ( "XpSettingsId" , "Level" )
. IsUnique ( )
. HasDatabaseName ( "ix_xprolereward_xpsettingsid_level" ) ;
b . ToTable ( "xprolereward" , ( string ) null ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.XpSettings" , b = >
2024-06-19 02:03:46 +12:00
{
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int" )
. HasColumnName ( "id" ) ;
b . Property < DateTime ? > ( "DateAdded" )
. HasColumnType ( "datetime(6)" )
. HasColumnName ( "dateadded" ) ;
b . Property < int > ( "GuildConfigId" )
. HasColumnType ( "int" )
. HasColumnName ( "guildconfigid" ) ;
b . Property < bool > ( "ServerExcluded" )
. HasColumnType ( "tinyint(1)" )
. HasColumnName ( "serverexcluded" ) ;
b . HasKey ( "Id" )
. HasName ( "pk_xpsettings" ) ;
b . HasIndex ( "GuildConfigId" )
. IsUnique ( )
. HasDatabaseName ( "ix_xpsettings_guildconfigid" ) ;
b . ToTable ( "xpsettings" , ( string ) null ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Db.Models.ClubApplicants" , b = >
{
b . HasOne ( "EllieBot.Db.Models.ClubInfo" , "Club" )
. WithMany ( "Applicants" )
. HasForeignKey ( "ClubId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
. HasConstraintName ( "fk_clubapplicants_clubs_clubid" ) ;
b . HasOne ( "EllieBot.Db.Models.DiscordUser" , "User" )
. WithMany ( )
. HasForeignKey ( "UserId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
. HasConstraintName ( "fk_clubapplicants_discorduser_userid" ) ;
b . Navigation ( "Club" ) ;
b . Navigation ( "User" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Db.Models.ClubBans" , b = >
{
b . HasOne ( "EllieBot.Db.Models.ClubInfo" , "Club" )
. WithMany ( "Bans" )
. HasForeignKey ( "ClubId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
. HasConstraintName ( "fk_clubbans_clubs_clubid" ) ;
b . HasOne ( "EllieBot.Db.Models.DiscordUser" , "User" )
. WithMany ( )
. HasForeignKey ( "UserId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
. HasConstraintName ( "fk_clubbans_discorduser_userid" ) ;
b . Navigation ( "Club" ) ;
b . Navigation ( "User" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Db.Models.ClubInfo" , b = >
{
b . HasOne ( "EllieBot.Db.Models.DiscordUser" , "Owner" )
. WithOne ( )
. HasForeignKey ( "EllieBot.Db.Models.ClubInfo" , "OwnerId" )
. OnDelete ( DeleteBehavior . SetNull )
. HasConstraintName ( "fk_clubs_discorduser_ownerid" ) ;
b . Navigation ( "Owner" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Db.Models.DiscordUser" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Db.Models.ClubInfo" , "Club" )
. WithMany ( "Members" )
. HasForeignKey ( "ClubId" )
. OnDelete ( DeleteBehavior . NoAction )
. HasConstraintName ( "fk_discorduser_clubs_clubid" ) ;
b . Navigation ( "Club" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Db.Models.FollowedStream" , b = >
{
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
. WithMany ( "FollowedStreams" )
2024-06-19 02:03:46 +12:00
. HasForeignKey ( "GuildConfigId" )
2024-06-23 14:35:10 +12:00
. HasConstraintName ( "fk_followedstream_guildconfigs_guildconfigid" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.AntiAltSetting" , b = >
{
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
. WithOne ( "AntiAltSetting" )
. HasForeignKey ( "EllieBot.Services.Database.Models.AntiAltSetting" , "GuildConfigId" )
2024-06-19 17:19:56 +12:00
. OnDelete ( DeleteBehavior . Cascade )
2024-06-23 14:35:10 +12:00
. IsRequired ( )
. HasConstraintName ( "fk_antialtsetting_guildconfigs_guildconfigid" ) ;
2024-06-19 02:03:46 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.AntiRaidSetting" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , "GuildConfig" )
. WithOne ( "AntiRaidSetting" )
. HasForeignKey ( "EllieBot.Services.Database.Models.AntiRaidSetting" , "GuildConfigId" )
2024-06-19 17:19:56 +12:00
. OnDelete ( DeleteBehavior . Cascade )
2024-06-23 14:35:10 +12:00
. IsRequired ( )
. HasConstraintName ( "fk_antiraidsetting_guildconfigs_guildconfigid" ) ;
b . Navigation ( "GuildConfig" ) ;
2024-06-19 02:03:46 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.AntiSpamIgnore" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.AntiSpamSetting" , null )
. WithMany ( "IgnoredChannels" )
. HasForeignKey ( "AntiSpamSettingId" )
. HasConstraintName ( "fk_antispamignore_antispamsetting_antispamsettingid" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.AntiSpamSetting" , b = >
{
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , "GuildConfig" )
. WithOne ( "AntiSpamSetting" )
. HasForeignKey ( "EllieBot.Services.Database.Models.AntiSpamSetting" , "GuildConfigId" )
2024-06-19 17:19:56 +12:00
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
2024-06-23 14:35:10 +12:00
. HasConstraintName ( "fk_antispamsetting_guildconfigs_guildconfigid" ) ;
b . Navigation ( "GuildConfig" ) ;
2024-06-19 02:03:46 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.AutoTranslateUser" , b = >
2024-06-19 17:19:56 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.AutoTranslateChannel" , "Channel" )
. WithMany ( "Users" )
. HasForeignKey ( "ChannelId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
. HasConstraintName ( "fk_autotranslateusers_autotranslatechannels_channelid" ) ;
2024-06-19 17:19:56 +12:00
2024-06-23 14:35:10 +12:00
b . Navigation ( "Channel" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.CommandAlias" , b = >
{
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
. WithMany ( "CommandAliases" )
. HasForeignKey ( "GuildConfigId" )
. HasConstraintName ( "fk_commandalias_guildconfigs_guildconfigid" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.CommandCooldown" , b = >
{
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
. WithMany ( "CommandCooldowns" )
. HasForeignKey ( "GuildConfigId" )
. HasConstraintName ( "fk_commandcooldown_guildconfigs_guildconfigid" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.DelMsgOnCmdChannel" , b = >
{
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
. WithMany ( "DelMsgOnCmdChannels" )
. HasForeignKey ( "GuildConfigId" )
. HasConstraintName ( "fk_delmsgoncmdchannel_guildconfigs_guildconfigid" ) ;
2024-06-19 17:19:56 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.ExcludedItem" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.XpSettings" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "ExclusionList" )
. HasForeignKey ( "XpSettingsId" )
. HasConstraintName ( "fk_excludeditem_xpsettings_xpsettingsid" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.FeedSub" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , "GuildConfig" )
2024-06-19 02:03:46 +12:00
. WithMany ( "FeedSubs" )
. HasForeignKey ( "GuildConfigId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
. HasConstraintName ( "fk_feedsub_guildconfigs_guildconfigid" ) ;
b . Navigation ( "GuildConfig" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.FilterChannelId" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "FilterInvitesChannelIds" )
. HasForeignKey ( "GuildConfigId" )
. HasConstraintName ( "fk_filterchannelid_guildconfigs_guildconfigid" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.FilteredWord" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
. WithMany ( "FilteredWords" )
2024-06-19 02:03:46 +12:00
. HasForeignKey ( "GuildConfigId" )
2024-06-23 14:35:10 +12:00
. HasConstraintName ( "fk_filteredword_guildconfigs_guildconfigid" ) ;
2024-06-19 02:03:46 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.FilterLinksChannelId" , b = >
2024-06-19 17:19:56 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
. WithMany ( "FilterLinksChannelIds" )
2024-06-19 17:19:56 +12:00
. HasForeignKey ( "GuildConfigId" )
2024-06-23 14:35:10 +12:00
. HasConstraintName ( "fk_filterlinkschannelid_guildconfigs_guildconfigid" ) ;
2024-06-19 17:19:56 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.FilterWordsChannelId" , b = >
2024-06-19 17:19:56 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
. WithMany ( "FilterWordsChannelIds" )
2024-06-19 17:19:56 +12:00
. HasForeignKey ( "GuildConfigId" )
2024-06-23 14:35:10 +12:00
. HasConstraintName ( "fk_filterwordschannelid_guildconfigs_guildconfigid" ) ;
2024-06-19 17:19:56 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.GCChannelId" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , "GuildConfig" )
2024-06-19 02:03:46 +12:00
. WithMany ( "GenerateCurrencyChannelIds" )
. HasForeignKey ( "GuildConfigId" )
. HasConstraintName ( "fk_gcchannelid_guildconfigs_guildconfigid" ) ;
b . Navigation ( "GuildConfig" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.GroupName" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , "GuildConfig" )
2024-06-19 02:03:46 +12:00
. WithMany ( "SelfAssignableRoleGroupNames" )
. HasForeignKey ( "GuildConfigId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
. HasConstraintName ( "fk_groupname_guildconfigs_guildconfigid" ) ;
b . Navigation ( "GuildConfig" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.IgnoredLogItem" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.LogSetting" , "LogSetting" )
2024-06-19 02:03:46 +12:00
. WithMany ( "LogIgnores" )
. HasForeignKey ( "LogSettingId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
. HasConstraintName ( "fk_ignoredlogchannels_logsettings_logsettingid" ) ;
b . Navigation ( "LogSetting" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.IgnoredVoicePresenceChannel" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.LogSetting" , "LogSetting" )
. WithMany ( )
. HasForeignKey ( "LogSettingId" )
. HasConstraintName ( "fk_ignoredvoicepresencechannels_logsettings_logsettingid" ) ;
b . Navigation ( "LogSetting" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.MutedUserId" , b = >
{
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "MutedUsers" )
. HasForeignKey ( "GuildConfigId" )
. HasConstraintName ( "fk_muteduserid_guildconfigs_guildconfigid" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.Permissionv2" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "Permissions" )
. HasForeignKey ( "GuildConfigId" )
. HasConstraintName ( "fk_permissions_guildconfigs_guildconfigid" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.PlaylistSong" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.MusicPlaylist" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "Songs" )
. HasForeignKey ( "MusicPlaylistId" )
. OnDelete ( DeleteBehavior . Cascade )
. HasConstraintName ( "fk_playlistsong_musicplaylists_musicplaylistid" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.PollAnswer" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.Poll" , null )
. WithMany ( "Answers" )
. HasForeignKey ( "PollId" )
. HasConstraintName ( "fk_pollanswer_poll_pollid" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.PollVote" , b = >
{
b . HasOne ( "EllieBot.Services.Database.Models.Poll" , null )
. WithMany ( "Votes" )
. HasForeignKey ( "PollId" )
. HasConstraintName ( "fk_pollvote_poll_pollid" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.ReactionRole" , b = >
{
b . HasOne ( "EllieBot.Services.Database.Models.ReactionRoleMessage" , null )
. WithMany ( "ReactionRoles" )
. HasForeignKey ( "ReactionRoleMessageId" )
. OnDelete ( DeleteBehavior . Cascade )
. HasConstraintName ( "fk_reactionrole_reactionrolemessage_reactionrolemessageid" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.ReactionRoleMessage" , b = >
{
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , "GuildConfig" )
. WithMany ( "ReactionRoleMessages" )
2024-06-19 02:03:46 +12:00
. HasForeignKey ( "GuildConfigId" )
2024-06-19 17:19:56 +12:00
. OnDelete ( DeleteBehavior . Cascade )
2024-06-23 14:35:10 +12:00
. IsRequired ( )
. HasConstraintName ( "fk_reactionrolemessage_guildconfigs_guildconfigid" ) ;
b . Navigation ( "GuildConfig" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.ShopEntry" , b = >
{
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
. WithMany ( "ShopEntries" )
. HasForeignKey ( "GuildConfigId" )
2024-06-19 02:03:46 +12:00
. HasConstraintName ( "fk_shopentry_guildconfigs_guildconfigid" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.ShopEntryItem" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.ShopEntry" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "Items" )
. HasForeignKey ( "ShopEntryId" )
. HasConstraintName ( "fk_shopentryitem_shopentry_shopentryid" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.SlowmodeIgnoredRole" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "SlowmodeIgnoredRoles" )
. HasForeignKey ( "GuildConfigId" )
. HasConstraintName ( "fk_slowmodeignoredrole_guildconfigs_guildconfigid" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.SlowmodeIgnoredUser" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "SlowmodeIgnoredUsers" )
. HasForeignKey ( "GuildConfigId" )
. HasConstraintName ( "fk_slowmodeignoreduser_guildconfigs_guildconfigid" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.StreamRoleBlacklistedUser" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.StreamRoleSettings" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "Blacklist" )
. HasForeignKey ( "StreamRoleSettingsId" )
. HasConstraintName ( "fk_streamroleblacklisteduser_streamrolesettings_streamrolesetti~" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.StreamRoleSettings" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , "GuildConfig" )
2024-06-19 02:03:46 +12:00
. WithOne ( "StreamRole" )
2024-06-23 14:35:10 +12:00
. HasForeignKey ( "EllieBot.Services.Database.Models.StreamRoleSettings" , "GuildConfigId" )
2024-06-19 02:03:46 +12:00
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
. HasConstraintName ( "fk_streamrolesettings_guildconfigs_guildconfigid" ) ;
b . Navigation ( "GuildConfig" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.StreamRoleWhitelistedUser" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.StreamRoleSettings" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "Whitelist" )
. HasForeignKey ( "StreamRoleSettingsId" )
. HasConstraintName ( "fk_streamrolewhitelisteduser_streamrolesettings_streamrolesetti~" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.UnbanTimer" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "UnbanTimer" )
. HasForeignKey ( "GuildConfigId" )
. HasConstraintName ( "fk_unbantimer_guildconfigs_guildconfigid" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.UnmuteTimer" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "UnmuteTimers" )
. HasForeignKey ( "GuildConfigId" )
. HasConstraintName ( "fk_unmutetimer_guildconfigs_guildconfigid" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.UnroleTimer" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "UnroleTimer" )
. HasForeignKey ( "GuildConfigId" )
. HasConstraintName ( "fk_unroletimer_guildconfigs_guildconfigid" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.VcRoleInfo" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "VcRoleInfos" )
. HasForeignKey ( "GuildConfigId" )
. HasConstraintName ( "fk_vcroleinfo_guildconfigs_guildconfigid" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.WaifuInfo" , b = >
2024-06-19 02:03:46 +12:00
{
b . HasOne ( "EllieBot.Db.Models.DiscordUser" , "Affinity" )
. WithMany ( )
. HasForeignKey ( "AffinityId" )
. HasConstraintName ( "fk_waifuinfo_discorduser_affinityid" ) ;
b . HasOne ( "EllieBot.Db.Models.DiscordUser" , "Claimer" )
. WithMany ( )
. HasForeignKey ( "ClaimerId" )
. HasConstraintName ( "fk_waifuinfo_discorduser_claimerid" ) ;
b . HasOne ( "EllieBot.Db.Models.DiscordUser" , "Waifu" )
. WithOne ( )
2024-06-23 14:35:10 +12:00
. HasForeignKey ( "EllieBot.Services.Database.Models.WaifuInfo" , "WaifuId" )
2024-06-19 02:03:46 +12:00
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
. HasConstraintName ( "fk_waifuinfo_discorduser_waifuid" ) ;
b . Navigation ( "Affinity" ) ;
b . Navigation ( "Claimer" ) ;
b . Navigation ( "Waifu" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.WaifuItem" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.WaifuInfo" , "WaifuInfo" )
2024-06-19 02:03:46 +12:00
. WithMany ( "Items" )
. HasForeignKey ( "WaifuInfoId" )
. HasConstraintName ( "fk_waifuitem_waifuinfo_waifuinfoid" ) ;
b . Navigation ( "WaifuInfo" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.WaifuUpdate" , b = >
2024-06-19 02:03:46 +12:00
{
b . HasOne ( "EllieBot.Db.Models.DiscordUser" , "New" )
. WithMany ( )
. HasForeignKey ( "NewId" )
. HasConstraintName ( "fk_waifuupdates_discorduser_newid" ) ;
b . HasOne ( "EllieBot.Db.Models.DiscordUser" , "Old" )
. WithMany ( )
. HasForeignKey ( "OldId" )
. HasConstraintName ( "fk_waifuupdates_discorduser_oldid" ) ;
b . HasOne ( "EllieBot.Db.Models.DiscordUser" , "User" )
. WithMany ( )
. HasForeignKey ( "UserId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
. HasConstraintName ( "fk_waifuupdates_discorduser_userid" ) ;
b . Navigation ( "New" ) ;
b . Navigation ( "Old" ) ;
b . Navigation ( "User" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.WarningPunishment" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , null )
2024-06-19 02:03:46 +12:00
. WithMany ( "WarnPunishments" )
. HasForeignKey ( "GuildConfigId" )
. HasConstraintName ( "fk_warningpunishment_guildconfigs_guildconfigid" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.XpCurrencyReward" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.XpSettings" , "XpSettings" )
2024-06-19 02:03:46 +12:00
. WithMany ( "CurrencyRewards" )
. HasForeignKey ( "XpSettingsId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
. HasConstraintName ( "fk_xpcurrencyreward_xpsettings_xpsettingsid" ) ;
b . Navigation ( "XpSettings" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.XpRoleReward" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.XpSettings" , "XpSettings" )
2024-06-19 02:03:46 +12:00
. WithMany ( "RoleRewards" )
. HasForeignKey ( "XpSettingsId" )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
. HasConstraintName ( "fk_xprolereward_xpsettings_xpsettingsid" ) ;
b . Navigation ( "XpSettings" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.XpSettings" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . HasOne ( "EllieBot.Services.Database.Models.GuildConfig" , "GuildConfig" )
2024-06-19 02:03:46 +12:00
. WithOne ( "XpSettings" )
2024-06-23 14:35:10 +12:00
. HasForeignKey ( "EllieBot.Services.Database.Models.XpSettings" , "GuildConfigId" )
2024-06-19 02:03:46 +12:00
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( )
. HasConstraintName ( "fk_xpsettings_guildconfigs_guildconfigid" ) ;
b . Navigation ( "GuildConfig" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Db.Models.ClubInfo" , b = >
{
b . Navigation ( "Applicants" ) ;
b . Navigation ( "Bans" ) ;
b . Navigation ( "Members" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.AntiSpamSetting" , b = >
{
b . Navigation ( "IgnoredChannels" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.AutoTranslateChannel" , b = >
2024-06-19 02:03:46 +12:00
{
2024-06-23 14:35:10 +12:00
b . Navigation ( "Users" ) ;
2024-06-19 02:03:46 +12:00
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.GuildConfig" , b = >
2024-06-19 02:03:46 +12:00
{
b . Navigation ( "AntiAltSetting" ) ;
b . Navigation ( "AntiRaidSetting" ) ;
b . Navigation ( "AntiSpamSetting" ) ;
b . Navigation ( "CommandAliases" ) ;
b . Navigation ( "CommandCooldowns" ) ;
b . Navigation ( "DelMsgOnCmdChannels" ) ;
b . Navigation ( "FeedSubs" ) ;
b . Navigation ( "FilterInvitesChannelIds" ) ;
b . Navigation ( "FilterLinksChannelIds" ) ;
b . Navigation ( "FilterWordsChannelIds" ) ;
b . Navigation ( "FilteredWords" ) ;
b . Navigation ( "FollowedStreams" ) ;
b . Navigation ( "GenerateCurrencyChannelIds" ) ;
b . Navigation ( "MutedUsers" ) ;
b . Navigation ( "Permissions" ) ;
2024-06-23 14:35:10 +12:00
b . Navigation ( "ReactionRoleMessages" ) ;
2024-06-19 02:03:46 +12:00
b . Navigation ( "SelfAssignableRoleGroupNames" ) ;
b . Navigation ( "ShopEntries" ) ;
b . Navigation ( "SlowmodeIgnoredRoles" ) ;
b . Navigation ( "SlowmodeIgnoredUsers" ) ;
b . Navigation ( "StreamRole" ) ;
b . Navigation ( "UnbanTimer" ) ;
b . Navigation ( "UnmuteTimers" ) ;
b . Navigation ( "UnroleTimer" ) ;
b . Navigation ( "VcRoleInfos" ) ;
b . Navigation ( "WarnPunishments" ) ;
b . Navigation ( "XpSettings" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.LogSetting" , b = >
2024-06-19 02:03:46 +12:00
{
b . Navigation ( "LogIgnores" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.MusicPlaylist" , b = >
2024-06-19 02:03:46 +12:00
{
b . Navigation ( "Songs" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.Poll" , b = >
{
b . Navigation ( "Answers" ) ;
b . Navigation ( "Votes" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.ReactionRoleMessage" , b = >
{
b . Navigation ( "ReactionRoles" ) ;
} ) ;
modelBuilder . Entity ( "EllieBot.Services.Database.Models.ShopEntry" , b = >
2024-06-19 02:03:46 +12:00
{
b . Navigation ( "Items" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.StreamRoleSettings" , b = >
2024-06-19 02:03:46 +12:00
{
b . Navigation ( "Blacklist" ) ;
b . Navigation ( "Whitelist" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.WaifuInfo" , b = >
2024-06-19 02:03:46 +12:00
{
b . Navigation ( "Items" ) ;
} ) ;
2024-06-23 14:35:10 +12:00
modelBuilder . Entity ( "EllieBot.Services.Database.Models.XpSettings" , b = >
2024-06-19 02:03:46 +12:00
{
b . Navigation ( "CurrencyRewards" ) ;
b . Navigation ( "ExclusionList" ) ;
b . Navigation ( "RoleRewards" ) ;
} ) ;
#pragma warning restore 612 , 618
}
}
}