2025-01-24 18:27:08 +13:00
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2024-09-20 23:20:03 +12:00
|
|
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace EllieBot.Migrations.PostgreSql
|
|
|
|
|
{
|
2025-01-24 18:27:08 +13:00
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public partial class init : Migration
|
2024-09-20 23:20:03 +12:00
|
|
|
|
{
|
2025-01-24 18:27:08 +13:00
|
|
|
|
/// <inheritdoc />
|
2024-09-20 23:20:03 +12:00
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "antialtsetting",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
minage = table.Column<TimeSpan>(type: "interval", nullable: false),
|
|
|
|
|
action = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
actiondurationminutes = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
roleid = table.Column<decimal>(type: "numeric(20,0)", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_antialtsetting", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "antiraidsetting",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
userthreshold = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
seconds = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
action = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
punishduration = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_antiraidsetting", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "antispamsetting",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
action = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
messagethreshold = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
mutetime = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
roleid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_antispamsetting", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "autocommands",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
commandtext = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelname = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
guildname = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
voicechannelid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
voicechannelname = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
interval = table.Column<int>(type: "integer", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_autocommands", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "autopublishchannel",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_autopublishchannel", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "autotranslatechannels",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
autodelete = table.Column<bool>(type: "boolean", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_autotranslatechannels", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "bankusers",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
balance = table.Column<long>(type: "bigint", nullable: false),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_bankusers", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "bantemplates",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
text = table.Column<string>(type: "text", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
prunedays = table.Column<int>(type: "integer", nullable: true),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_bantemplates", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "blacklist",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
itemid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
type = table.Column<int>(type: "integer", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_blacklist", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "buttonrole",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
buttonid = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
messageid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
position = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
roleid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
emote = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: false),
|
|
|
|
|
label = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false),
|
|
|
|
|
exclusive = table.Column<bool>(type: "boolean", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_buttonrole", x => x.id);
|
|
|
|
|
table.UniqueConstraint("ak_buttonrole_roleid_messageid", x => new { x.roleid, x.messageid });
|
|
|
|
|
});
|
|
|
|
|
|
2025-03-01 13:04:20 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "channelxpconfig",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-03-01 13:56:17 +13:00
|
|
|
|
ratetype = table.Column<int>(type: "integer", nullable: false),
|
2025-03-01 13:04:20 +13:00
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-03-01 13:56:17 +13:00
|
|
|
|
xpamount = table.Column<long>(type: "bigint", nullable: false),
|
2025-03-01 13:04:20 +13:00
|
|
|
|
cooldown = table.Column<float>(type: "real", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_channelxpconfig", x => x.id);
|
2025-03-01 13:56:17 +13:00
|
|
|
|
table.UniqueConstraint("ak_channelxpconfig_guildid_channelid_ratetype", x => new { x.guildid, x.channelid, x.ratetype });
|
2025-03-01 13:04:20 +13:00
|
|
|
|
});
|
|
|
|
|
|
2025-01-29 22:51:59 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "commandalias",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
trigger = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
mapping = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_commandalias", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "commandcooldown",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
seconds = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
commandname = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_commandcooldown", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "currencytransactions",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
amount = table.Column<long>(type: "bigint", nullable: false),
|
|
|
|
|
note = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
type = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
extra = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
otherid = table.Column<decimal>(type: "numeric(20,0)", nullable: true, defaultValueSql: "NULL"),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_currencytransactions", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-29 22:51:59 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "delmsgoncmdchannel",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
state = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_delmsgoncmdchannel", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "discordpermoverrides",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
perm = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
command = table.Column<string>(type: "text", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_discordpermoverrides", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "expressions",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
response = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
trigger = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
autodeletetrigger = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
dmresponse = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
containsanywhere = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
allowtarget = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
reactions = table.Column<string>(type: "text", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_expressions", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-29 22:51:59 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "feedsub",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
url = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
message = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_feedsub", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "fishcatch",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
fishid = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
count = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
maxstars = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_fishcatch", x => x.id);
|
|
|
|
|
table.UniqueConstraint("ak_fishcatch_userid_fishid", x => new { x.userid, x.fishid });
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "flagtranslatechannel",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_flagtranslatechannel", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-29 22:51:59 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "followedstream",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
username = table.Column<string>(type: "text", nullable: true),
|
2025-03-16 15:26:44 +13:00
|
|
|
|
prettyname = table.Column<string>(type: "text", nullable: true),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
type = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
message = table.Column<string>(type: "text", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_followedstream", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "gamblingstats",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
feature = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
bet = table.Column<decimal>(type: "numeric", nullable: false),
|
|
|
|
|
paidout = table.Column<decimal>(type: "numeric", nullable: false),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_gamblingstats", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-29 22:51:59 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "gcchannelid",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_gcchannelid", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "giveawaymodel",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
messageid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
message = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
endsat = table.Column<DateTime>(type: "timestamp without time zone", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_giveawaymodel", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "greetsettings",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
greettype = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
messagetext = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
isenabled = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
autodeletetimer = table.Column<int>(type: "integer", nullable: false, defaultValue: 0)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_greetsettings", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "guildcolors",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
okcolor = table.Column<string>(type: "character varying(9)", maxLength: 9, nullable: true),
|
|
|
|
|
errorcolor = table.Column<string>(type: "character varying(9)", maxLength: 9, nullable: true),
|
|
|
|
|
pendingcolor = table.Column<string>(type: "character varying(9)", maxLength: 9, nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_guildcolors", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "guildconfigs",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
prefix = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
deletemessageoncommand = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
autoassignroleids = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
verbosepermissions = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
permissionrole = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
muterolename = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
cleverbotenabled = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
warningsinitialized = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
gamevoicechannel = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
verboseerrors = table.Column<bool>(type: "boolean", nullable: false, defaultValue: true),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
notifystreamoffline = table.Column<bool>(type: "boolean", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
deletestreamonlinemessage = table.Column<bool>(type: "boolean", nullable: false),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
warnexpirehours = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
warnexpireaction = table.Column<int>(type: "integer", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
disableglobalexpressions = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
stickyroles = table.Column<bool>(type: "boolean", nullable: false),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
timezoneid = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
locale = table.Column<string>(type: "text", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_guildconfigs", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-29 22:51:59 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "guildfilterconfig",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
filterinvites = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
filterlinks = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
filterwords = table.Column<bool>(type: "boolean", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_guildfilterconfig", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-03-01 13:04:20 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "guildxpconfig",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
2025-03-01 13:56:17 +13:00
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-03-01 13:04:20 +13:00
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-03-01 13:56:17 +13:00
|
|
|
|
ratetype = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
xpamount = table.Column<long>(type: "bigint", nullable: false),
|
|
|
|
|
cooldown = table.Column<float>(type: "real", nullable: false),
|
2025-03-01 13:04:20 +13:00
|
|
|
|
xptemplateurl = table.Column<string>(type: "text", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-03-01 13:56:17 +13:00
|
|
|
|
table.PrimaryKey("pk_guildxpconfig", x => x.id);
|
|
|
|
|
table.UniqueConstraint("ak_guildxpconfig_guildid_ratetype", x => new { x.guildid, x.ratetype });
|
2025-03-01 13:04:20 +13:00
|
|
|
|
});
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "honeypotchannels",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_honeypotchannels", x => x.guildid);
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "imageonlychannels",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
type = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_imageonlychannels", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-03-23 15:25:31 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "linkfix",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
olddomain = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
newdomain = table.Column<string>(type: "text", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_linkfix", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-03-19 14:15:05 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "livechannelconfig",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
template = table.Column<string>(type: "text", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_livechannelconfig", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "logsettings",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
logotherid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
messageupdatedid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
messagedeletedid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
userjoinedid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
userleftid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
userbannedid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
userunbannedid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
userupdatedid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
channelcreatedid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
channeldestroyedid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
channelupdatedid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
threaddeletedid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
threadcreatedid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
usermutedid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
loguserpresenceid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
logvoicepresenceid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
logvoicepresencettsid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
logwarnsid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_logsettings", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "musicplayersettings",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
playerrepeat = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
musicchannelid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
volume = table.Column<int>(type: "integer", nullable: false, defaultValue: 100),
|
|
|
|
|
autodisconnect = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
qualitypreset = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
autoplay = table.Column<bool>(type: "boolean", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_musicplayersettings", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "musicplaylists",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
name = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
author = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
authorid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_musicplaylists", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-29 22:51:59 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "muteduserid",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_muteduserid", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "ncpixel",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
position = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
price = table.Column<long>(type: "bigint", nullable: false),
|
|
|
|
|
ownerid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
color = table.Column<long>(type: "bigint", nullable: false),
|
|
|
|
|
text = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: false)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-24 18:27:08 +13:00
|
|
|
|
table.PrimaryKey("pk_ncpixel", x => x.id);
|
|
|
|
|
table.UniqueConstraint("ak_ncpixel_position", x => x.position);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "notify",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-03-01 19:46:50 +13:00
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
type = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
message = table.Column<string>(type: "character varying(10000)", maxLength: 10000, nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_notify", x => x.id);
|
|
|
|
|
table.UniqueConstraint("ak_notify_guildid_type", x => new { x.guildid, x.type });
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "patrons",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
2024-09-20 23:20:03 +12:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
uniqueplatformuserid = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
amountcents = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
lastcharge = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
|
|
|
|
validthru = table.Column<DateTime>(type: "timestamp without time zone", nullable: false)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-24 18:27:08 +13:00
|
|
|
|
table.PrimaryKey("pk_patrons", x => x.userid);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "plantedcurrency",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
amount = table.Column<long>(type: "bigint", nullable: false),
|
|
|
|
|
password = table.Column<string>(type: "text", nullable: true),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
messageid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-24 18:27:08 +13:00
|
|
|
|
table.PrimaryKey("pk_plantedcurrency", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "quotes",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
keyword = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
authorname = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
authorid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
text = table.Column<string>(type: "text", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_quotes", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "rakeback",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
amount = table.Column<decimal>(type: "numeric", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_rakeback", x => x.userid);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "reactionroles",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
messageid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
emote = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true),
|
|
|
|
|
roleid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
group = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
levelreq = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_reactionroles", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "reminders",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
when = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
serverid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
message = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
isprivate = table.Column<bool>(type: "boolean", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
type = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_reminders", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "repeaters",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
lastmessageid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
message = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
interval = table.Column<TimeSpan>(type: "interval", nullable: false),
|
|
|
|
|
starttimeofday = table.Column<TimeSpan>(type: "interval", nullable: true),
|
|
|
|
|
noredundant = table.Column<bool>(type: "boolean", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: false)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_repeaters", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "rewardedusers",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
platformuserid = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
amountrewardedthismonth = table.Column<long>(type: "bigint", nullable: false),
|
|
|
|
|
lastreward = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_rewardedusers", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "rotatingstatus",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
status = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
type = table.Column<int>(type: "integer", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_rotatingstatus", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "sarautodelete",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
isenabled = table.Column<bool>(type: "boolean", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_sarautodelete", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "sargroup",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
groupnumber = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
rolereq = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
isexclusive = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
name = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_sargroup", x => x.id);
|
|
|
|
|
table.UniqueConstraint("ak_sargroup_guildid_groupnumber", x => new { x.guildid, x.groupnumber });
|
|
|
|
|
});
|
|
|
|
|
|
2025-03-17 19:51:05 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "scheduledcommand",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
messageid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
text = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
when = table.Column<DateTime>(type: "timestamp without time zone", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_scheduledcommand", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "shopentry",
|
2025-01-24 18:27:08 +13:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
index = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
price = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
name = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
authorid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
type = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
rolename = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
roleid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
rolerequirement = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
|
|
|
|
command = table.Column<string>(type: "text", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_shopentry", x => x.id);
|
2025-01-24 18:27:08 +13:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "slowmodeignoredrole",
|
2025-01-24 18:27:08 +13:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
roleid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_slowmodeignoredrole", x => x.id);
|
2025-01-24 18:27:08 +13:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "slowmodeignoreduser",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2025-01-24 18:27:08 +13:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_slowmodeignoreduser", x => x.id);
|
2025-01-24 18:27:08 +13:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "stickyroles",
|
2025-01-24 18:27:08 +13:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
roleids = table.Column<string>(type: "text", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2025-01-24 18:27:08 +13:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_stickyroles", x => x.id);
|
2025-01-24 18:27:08 +13:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "streamonlinemessages",
|
2025-01-24 18:27:08 +13:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
messageid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
type = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
name = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_streamonlinemessages", x => x.id);
|
2025-01-24 18:27:08 +13:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "streamrolesettings",
|
2025-01-24 18:27:08 +13:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
guildconfigid = table.Column<int>(type: "integer", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
enabled = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
addroleid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
fromroleid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
keyword = table.Column<string>(type: "text", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_streamrolesettings", x => x.id);
|
2025-01-24 18:27:08 +13:00
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "temprole",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
remove = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
roleid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
expiresat = table.Column<DateTime>(type: "timestamp without time zone", nullable: false)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_temprole", x => x.id);
|
|
|
|
|
table.UniqueConstraint("ak_temprole_guildid_userid_roleid", x => new { x.guildid, x.userid, x.roleid });
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "todosarchive",
|
2025-01-24 18:27:08 +13:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name = table.Column<string>(type: "text", nullable: true)
|
2025-01-24 18:27:08 +13:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_todosarchive", x => x.id);
|
2025-01-24 18:27:08 +13:00
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "unbantimer",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
unbanat = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_unbantimer", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "unmutetimer",
|
2025-01-24 18:27:08 +13:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
unmuteat = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_unmutetimer", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "unroletimer",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
roleid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
unbanat = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_unroletimer", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "userbetstats",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
game = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
wincount = table.Column<long>(type: "bigint", nullable: false),
|
|
|
|
|
losecount = table.Column<long>(type: "bigint", nullable: false),
|
|
|
|
|
totalbet = table.Column<decimal>(type: "numeric", nullable: false),
|
|
|
|
|
paidout = table.Column<decimal>(type: "numeric", nullable: false),
|
|
|
|
|
maxwin = table.Column<long>(type: "bigint", nullable: false),
|
|
|
|
|
maxbet = table.Column<long>(type: "bigint", nullable: false)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_userbetstats", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
2025-03-29 20:43:32 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "userfishitem",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
itemtype = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
itemid = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
isequipped = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
usesleft = table.Column<int>(type: "integer", nullable: true),
|
|
|
|
|
expiresat = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_userfishitem", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "userfishstats",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-03-29 20:43:32 +13:00
|
|
|
|
skill = table.Column<int>(type: "integer", nullable: false)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_userfishstats", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
2025-03-29 20:43:32 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "userquest",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
questnumber = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
questid = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
progress = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
iscompleted = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
dateassigned = table.Column<DateTime>(type: "timestamp without time zone", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_userquest", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
2025-03-12 10:20:55 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "userrole",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
roleid = table.Column<decimal>(type: "numeric(20,0)", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_userrole", x => new { x.guildid, x.userid, x.roleid });
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "userxpstats",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
xp = table.Column<long>(type: "bigint", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_userxpstats", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "vcroleinfo",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
voicechannelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
roleid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_vcroleinfo", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "warningpunishment",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
count = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
punishment = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
time = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
roleid = table.Column<decimal>(type: "numeric(20,0)", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_warningpunishment", x => x.id);
|
|
|
|
|
table.UniqueConstraint("ak_warningpunishment_guildid_count", x => new { x.guildid, x.count });
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "warnings",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
reason = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
forgiven = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
forgivenby = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
moderator = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
weight = table.Column<long>(type: "bigint", nullable: false, defaultValue: 1L),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_warnings", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
2025-03-19 11:22:58 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "xpexcludeditem",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
itemtype = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
itemid = table.Column<decimal>(type: "numeric(20,0)", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_xpexcludeditem", x => x.id);
|
|
|
|
|
table.UniqueConstraint("ak_xpexcludeditem_guildid_itemtype_itemid", x => new { x.guildid, x.itemtype, x.itemid });
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "xpsettings",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_xpsettings", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "xpshopowneditem",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
itemtype = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
isusing = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
itemkey = table.Column<string>(type: "text", nullable: false),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_xpshopowneditem", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "antispamignore",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
antispamsettingid = table.Column<int>(type: "integer", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_antispamignore", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table.ForeignKey(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "fk_antispamignore_antispamsetting_antispamsettingid",
|
|
|
|
|
column: x => x.antispamsettingid,
|
|
|
|
|
principalTable: "antispamsetting",
|
2025-01-24 18:27:08 +13:00
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "autotranslateusers",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
channelid = table.Column<int>(type: "integer", nullable: false),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
source = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
target = table.Column<string>(type: "text", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_autotranslateusers", x => x.id);
|
|
|
|
|
table.UniqueConstraint("ak_autotranslateusers_channelid_userid", x => new { x.channelid, x.userid });
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table.ForeignKey(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "fk_autotranslateusers_autotranslatechannels_channelid",
|
|
|
|
|
column: x => x.channelid,
|
|
|
|
|
principalTable: "autotranslatechannels",
|
2025-01-24 18:27:08 +13:00
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "giveawayuser",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
giveawayid = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
name = table.Column<string>(type: "text", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_giveawayuser", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table.ForeignKey(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "fk_giveawayuser_giveawaymodel_giveawayid",
|
|
|
|
|
column: x => x.giveawayid,
|
|
|
|
|
principalTable: "giveawaymodel",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "permissions",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
index = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
primarytarget = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
primarytargetid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
secondarytarget = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
secondarytargetname = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
iscustomcommand = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
state = table.Column<bool>(type: "boolean", nullable: false),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
guildconfigid = table.Column<int>(type: "integer", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_permissions", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table.ForeignKey(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "fk_permissions_guildconfigs_guildconfigid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
column: x => x.guildconfigid,
|
|
|
|
|
principalTable: "guildconfigs",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
principalColumn: "id");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "filterchannelid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-02-04 01:16:35 +13:00
|
|
|
|
guildfilterconfigid = table.Column<int>(type: "integer", nullable: true),
|
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_filterchannelid", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table.ForeignKey(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "fk_filterchannelid_guildfilterconfig_guildfilterconfigid",
|
|
|
|
|
column: x => x.guildfilterconfigid,
|
|
|
|
|
principalTable: "guildfilterconfig",
|
|
|
|
|
principalColumn: "id");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "filteredword",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
guildfilterconfigid = table.Column<int>(type: "integer", nullable: true),
|
2025-02-04 01:16:35 +13:00
|
|
|
|
word = table.Column<string>(type: "text", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_filteredword", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table.ForeignKey(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "fk_filteredword_guildfilterconfig_guildfilterconfigid",
|
|
|
|
|
column: x => x.guildfilterconfigid,
|
|
|
|
|
principalTable: "guildfilterconfig",
|
|
|
|
|
principalColumn: "id");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "filterlinkschannelid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
guildfilterconfigid = table.Column<int>(type: "integer", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_filterlinkschannelid", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table.ForeignKey(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "fk_filterlinkschannelid_guildfilterconfig_guildfilterconfigid",
|
|
|
|
|
column: x => x.guildfilterconfigid,
|
|
|
|
|
principalTable: "guildfilterconfig",
|
|
|
|
|
principalColumn: "id");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "filterwordschannelid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-29 22:51:59 +13:00
|
|
|
|
guildfilterconfigid = table.Column<int>(type: "integer", nullable: true),
|
2025-02-04 01:16:35 +13:00
|
|
|
|
channelid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-29 22:51:59 +13:00
|
|
|
|
table.PrimaryKey("pk_filterwordschannelid", x => x.id);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table.ForeignKey(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "fk_filterwordschannelid_guildfilterconfig_guildfilterconfigid",
|
|
|
|
|
column: x => x.guildfilterconfigid,
|
|
|
|
|
principalTable: "guildfilterconfig",
|
|
|
|
|
principalColumn: "id");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "ignoredlogchannels",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
logsettingid = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
logitemid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
itemtype = table.Column<int>(type: "integer", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_ignoredlogchannels", x => x.id);
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_ignoredlogchannels_logsettings_logsettingid",
|
|
|
|
|
column: x => x.logsettingid,
|
|
|
|
|
principalTable: "logsettings",
|
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "playlistsong",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
provider = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
providertype = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
title = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
uri = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
query = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
musicplaylistid = table.Column<int>(type: "integer", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_playlistsong", x => x.id);
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_playlistsong_musicplaylists_musicplaylistid",
|
|
|
|
|
column: x => x.musicplaylistid,
|
|
|
|
|
principalTable: "musicplaylists",
|
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "sar",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
guildid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
roleid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
sargroupid = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
levelreq = table.Column<int>(type: "integer", nullable: false)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
2025-01-24 18:27:08 +13:00
|
|
|
|
table.PrimaryKey("pk_sar", x => x.id);
|
|
|
|
|
table.UniqueConstraint("ak_sar_guildid_roleid", x => new { x.guildid, x.roleid });
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table.ForeignKey(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "fk_sar_sargroup_sargroupid",
|
|
|
|
|
column: x => x.sargroupid,
|
|
|
|
|
principalTable: "sargroup",
|
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "shopentryitem",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
text = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
shopentryid = table.Column<int>(type: "integer", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_shopentryitem", x => x.id);
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_shopentryitem_shopentry_shopentryid",
|
|
|
|
|
column: x => x.shopentryid,
|
|
|
|
|
principalTable: "shopentry",
|
2025-01-24 18:27:08 +13:00
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "streamroleblacklisteduser",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
streamrolesettingsid = table.Column<int>(type: "integer", nullable: false),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
username = table.Column<string>(type: "text", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_streamroleblacklisteduser", x => x.id);
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_streamroleblacklisteduser_streamrolesettings_streamrolesett~",
|
|
|
|
|
column: x => x.streamrolesettingsid,
|
|
|
|
|
principalTable: "streamrolesettings",
|
2025-01-24 18:27:08 +13:00
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "streamrolewhitelisteduser",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
streamrolesettingsid = table.Column<int>(type: "integer", nullable: false),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
username = table.Column<string>(type: "text", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_streamrolewhitelisteduser", x => x.id);
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_streamrolewhitelisteduser_streamrolesettings_streamrolesett~",
|
|
|
|
|
column: x => x.streamrolesettingsid,
|
|
|
|
|
principalTable: "streamrolesettings",
|
2025-01-24 18:27:08 +13:00
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
});
|
|
|
|
|
|
2025-01-29 22:51:59 +13:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "todos",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
todo = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
|
|
|
|
isdone = table.Column<bool>(type: "boolean", nullable: false),
|
|
|
|
|
archiveid = table.Column<int>(type: "integer", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_todos", x => x.id);
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_todos_todosarchive_archiveid",
|
|
|
|
|
column: x => x.archiveid,
|
|
|
|
|
principalTable: "todosarchive",
|
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "xpcurrencyreward",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
xpsettingsid = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
level = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
amount = table.Column<int>(type: "integer", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_xpcurrencyreward", x => x.id);
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_xpcurrencyreward_xpsettings_xpsettingsid",
|
|
|
|
|
column: x => x.xpsettingsid,
|
|
|
|
|
principalTable: "xpsettings",
|
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "xprolereward",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
xpsettingsid = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
level = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
roleid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
remove = table.Column<bool>(type: "boolean", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_xprolereward", x => x.id);
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_xprolereward_xpsettings_xpsettingsid",
|
|
|
|
|
column: x => x.xpsettingsid,
|
|
|
|
|
principalTable: "xpsettings",
|
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "clubapplicants",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
clubid = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
userid = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_clubapplicants", x => new { x.clubid, x.userid });
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "clubbans",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
clubid = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
userid = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_clubbans", x => new { x.clubid, x.userid });
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "clubs",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: true),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
description = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
imageurl = table.Column<string>(type: "text", nullable: true),
|
2025-03-12 12:13:02 +13:00
|
|
|
|
bannerurl = table.Column<string>(type: "text", nullable: true),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
xp = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
ownerid = table.Column<int>(type: "integer", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_clubs", x => x.id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "discorduser",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
userid = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
|
|
|
username = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
avatarid = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
clubid = table.Column<int>(type: "integer", nullable: true),
|
|
|
|
|
isclubadmin = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
totalxp = table.Column<long>(type: "bigint", nullable: false, defaultValue: 0L),
|
2024-09-20 23:20:03 +12:00
|
|
|
|
currencyamount = table.Column<long>(type: "bigint", nullable: false, defaultValue: 0L),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_discorduser", x => x.id);
|
|
|
|
|
table.UniqueConstraint("ak_discorduser_userid", x => x.userid);
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_discorduser_clubs_clubid",
|
|
|
|
|
column: x => x.clubid,
|
|
|
|
|
principalTable: "clubs",
|
|
|
|
|
principalColumn: "id");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "waifuinfo",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
waifuid = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
claimerid = table.Column<int>(type: "integer", nullable: true),
|
|
|
|
|
affinityid = table.Column<int>(type: "integer", nullable: true),
|
|
|
|
|
price = table.Column<long>(type: "bigint", nullable: false),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_waifuinfo", x => x.id);
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_waifuinfo_discorduser_affinityid",
|
|
|
|
|
column: x => x.affinityid,
|
|
|
|
|
principalTable: "discorduser",
|
|
|
|
|
principalColumn: "id");
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_waifuinfo_discorduser_claimerid",
|
|
|
|
|
column: x => x.claimerid,
|
|
|
|
|
principalTable: "discorduser",
|
|
|
|
|
principalColumn: "id");
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_waifuinfo_discorduser_waifuid",
|
|
|
|
|
column: x => x.waifuid,
|
|
|
|
|
principalTable: "discorduser",
|
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "waifuupdates",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
userid = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
updatetype = table.Column<int>(type: "integer", nullable: false),
|
|
|
|
|
oldid = table.Column<int>(type: "integer", nullable: true),
|
|
|
|
|
newid = table.Column<int>(type: "integer", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_waifuupdates", x => x.id);
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_waifuupdates_discorduser_newid",
|
|
|
|
|
column: x => x.newid,
|
|
|
|
|
principalTable: "discorduser",
|
|
|
|
|
principalColumn: "id");
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_waifuupdates_discorduser_oldid",
|
|
|
|
|
column: x => x.oldid,
|
|
|
|
|
principalTable: "discorduser",
|
|
|
|
|
principalColumn: "id");
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_waifuupdates_discorduser_userid",
|
|
|
|
|
column: x => x.userid,
|
|
|
|
|
principalTable: "discorduser",
|
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "waifuitem",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
id = table.Column<int>(type: "integer", nullable: false)
|
|
|
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
|
|
|
waifuinfoid = table.Column<int>(type: "integer", nullable: true),
|
|
|
|
|
itememoji = table.Column<string>(type: "text", nullable: true),
|
|
|
|
|
name = table.Column<string>(type: "text", nullable: true),
|
2025-01-24 18:27:08 +13:00
|
|
|
|
dateadded = table.Column<DateTime>(type: "timestamp without time zone", nullable: true)
|
2024-09-20 23:20:03 +12:00
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("pk_waifuitem", x => x.id);
|
|
|
|
|
table.ForeignKey(
|
|
|
|
|
name: "fk_waifuitem_waifuinfo_waifuinfoid",
|
|
|
|
|
column: x => x.waifuinfoid,
|
|
|
|
|
principalTable: "waifuinfo",
|
|
|
|
|
principalColumn: "id");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_antialtsetting_guildid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "antialtsetting",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
column: "guildid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_antiraidsetting_guildid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "antiraidsetting",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
column: "guildid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_antispamignore_antispamsettingid",
|
|
|
|
|
table: "antispamignore",
|
|
|
|
|
column: "antispamsettingid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_antispamsetting_guildid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "antispamsetting",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
column: "guildid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
unique: true);
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_autopublishchannel_guildid",
|
|
|
|
|
table: "autopublishchannel",
|
|
|
|
|
column: "guildid",
|
|
|
|
|
unique: true);
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_autotranslatechannels_channelid",
|
|
|
|
|
table: "autotranslatechannels",
|
|
|
|
|
column: "channelid",
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_autotranslatechannels_guildid",
|
|
|
|
|
table: "autotranslatechannels",
|
|
|
|
|
column: "guildid");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_bankusers_userid",
|
|
|
|
|
table: "bankusers",
|
|
|
|
|
column: "userid",
|
|
|
|
|
unique: true);
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_bantemplates_guildid",
|
|
|
|
|
table: "bantemplates",
|
|
|
|
|
column: "guildid",
|
|
|
|
|
unique: true);
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_buttonrole_guildid",
|
|
|
|
|
table: "buttonrole",
|
|
|
|
|
column: "guildid");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_clubapplicants_userid",
|
|
|
|
|
table: "clubapplicants",
|
|
|
|
|
column: "userid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_clubbans_userid",
|
|
|
|
|
table: "clubbans",
|
|
|
|
|
column: "userid");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_clubs_name",
|
|
|
|
|
table: "clubs",
|
|
|
|
|
column: "name",
|
|
|
|
|
unique: true);
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_clubs_ownerid",
|
|
|
|
|
table: "clubs",
|
|
|
|
|
column: "ownerid",
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_commandalias_guildid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "commandalias",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
column: "guildid");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_commandcooldown_guildid_commandname",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "commandcooldown",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
columns: new[] { "guildid", "commandname" },
|
|
|
|
|
unique: true);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_currencytransactions_userid",
|
|
|
|
|
table: "currencytransactions",
|
|
|
|
|
column: "userid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_delmsgoncmdchannel_guildid_channelid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "delmsgoncmdchannel",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
columns: new[] { "guildid", "channelid" },
|
|
|
|
|
unique: true);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_discordpermoverrides_guildid_command",
|
|
|
|
|
table: "discordpermoverrides",
|
|
|
|
|
columns: new[] { "guildid", "command" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_discorduser_clubid",
|
|
|
|
|
table: "discorduser",
|
|
|
|
|
column: "clubid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_discorduser_currencyamount",
|
|
|
|
|
table: "discorduser",
|
|
|
|
|
column: "currencyamount");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_discorduser_totalxp",
|
|
|
|
|
table: "discorduser",
|
|
|
|
|
column: "totalxp");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_discorduser_userid",
|
|
|
|
|
table: "discorduser",
|
|
|
|
|
column: "userid");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_discorduser_username",
|
|
|
|
|
table: "discorduser",
|
|
|
|
|
column: "username");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_feedsub_guildid_url",
|
|
|
|
|
table: "feedsub",
|
|
|
|
|
columns: new[] { "guildid", "url" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_filterchannelid_guildfilterconfigid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "filterchannelid",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
column: "guildfilterconfigid");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_filteredword_guildfilterconfigid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "filteredword",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
column: "guildfilterconfigid");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_filterlinkschannelid_guildfilterconfigid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "filterlinkschannelid",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
column: "guildfilterconfigid");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_filterwordschannelid_guildfilterconfigid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "filterwordschannelid",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
column: "guildfilterconfigid");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_flagtranslatechannel_guildid_channelid",
|
|
|
|
|
table: "flagtranslatechannel",
|
|
|
|
|
columns: new[] { "guildid", "channelid" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_followedstream_guildid_username_type",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "followedstream",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
columns: new[] { "guildid", "username", "type" });
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_gamblingstats_feature",
|
|
|
|
|
table: "gamblingstats",
|
|
|
|
|
column: "feature",
|
|
|
|
|
unique: true);
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_gcchannelid_guildid_channelid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "gcchannelid",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
columns: new[] { "guildid", "channelid" },
|
|
|
|
|
unique: true);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "ix_giveawayuser_giveawayid_userid",
|
|
|
|
|
table: "giveawayuser",
|
|
|
|
|
columns: new[] { "giveawayid", "userid" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_greetsettings_guildid_greettype",
|
|
|
|
|
table: "greetsettings",
|
|
|
|
|
columns: new[] { "guildid", "greettype" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_guildcolors_guildid",
|
|
|
|
|
table: "guildcolors",
|
|
|
|
|
column: "guildid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_guildconfigs_guildid",
|
|
|
|
|
table: "guildconfigs",
|
|
|
|
|
column: "guildid",
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_guildconfigs_warnexpirehours",
|
|
|
|
|
table: "guildconfigs",
|
|
|
|
|
column: "warnexpirehours");
|
|
|
|
|
|
2025-01-29 22:51:59 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_guildfilterconfig_guildid",
|
|
|
|
|
table: "guildfilterconfig",
|
|
|
|
|
column: "guildid");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_ignoredlogchannels_logsettingid_logitemid_itemtype",
|
|
|
|
|
table: "ignoredlogchannels",
|
|
|
|
|
columns: new[] { "logsettingid", "logitemid", "itemtype" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_imageonlychannels_channelid",
|
|
|
|
|
table: "imageonlychannels",
|
|
|
|
|
column: "channelid",
|
|
|
|
|
unique: true);
|
|
|
|
|
|
2025-03-23 15:25:31 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_linkfix_guildid_olddomain",
|
|
|
|
|
table: "linkfix",
|
|
|
|
|
columns: new[] { "guildid", "olddomain" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
2025-03-19 14:15:05 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_livechannelconfig_guildid",
|
|
|
|
|
table: "livechannelconfig",
|
|
|
|
|
column: "guildid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_livechannelconfig_guildid_channelid",
|
|
|
|
|
table: "livechannelconfig",
|
|
|
|
|
columns: new[] { "guildid", "channelid" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_logsettings_guildid",
|
|
|
|
|
table: "logsettings",
|
|
|
|
|
column: "guildid",
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_musicplayersettings_guildid",
|
|
|
|
|
table: "musicplayersettings",
|
|
|
|
|
column: "guildid",
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_muteduserid_guildid_userid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "muteduserid",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
columns: new[] { "guildid", "userid" },
|
|
|
|
|
unique: true);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "ix_ncpixel_ownerid",
|
|
|
|
|
table: "ncpixel",
|
|
|
|
|
column: "ownerid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_patrons_uniqueplatformuserid",
|
|
|
|
|
table: "patrons",
|
|
|
|
|
column: "uniqueplatformuserid",
|
|
|
|
|
unique: true);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_permissions_guildconfigid",
|
|
|
|
|
table: "permissions",
|
|
|
|
|
column: "guildconfigid");
|
|
|
|
|
|
2025-01-29 22:51:59 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_permissions_guildid",
|
|
|
|
|
table: "permissions",
|
|
|
|
|
column: "guildid");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_plantedcurrency_channelid",
|
|
|
|
|
table: "plantedcurrency",
|
|
|
|
|
column: "channelid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_plantedcurrency_messageid",
|
|
|
|
|
table: "plantedcurrency",
|
|
|
|
|
column: "messageid",
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_playlistsong_musicplaylistid",
|
|
|
|
|
table: "playlistsong",
|
|
|
|
|
column: "musicplaylistid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_quotes_guildid",
|
|
|
|
|
table: "quotes",
|
|
|
|
|
column: "guildid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_quotes_keyword",
|
|
|
|
|
table: "quotes",
|
|
|
|
|
column: "keyword");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "ix_reactionroles_guildid",
|
|
|
|
|
table: "reactionroles",
|
|
|
|
|
column: "guildid");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "ix_reactionroles_messageid_emote",
|
|
|
|
|
table: "reactionroles",
|
|
|
|
|
columns: new[] { "messageid", "emote" },
|
|
|
|
|
unique: true);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_reminders_when",
|
|
|
|
|
table: "reminders",
|
|
|
|
|
column: "when");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "ix_rewardedusers_platformuserid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "rewardedusers",
|
2025-01-24 18:27:08 +13:00
|
|
|
|
column: "platformuserid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "ix_sar_sargroupid",
|
|
|
|
|
table: "sar",
|
|
|
|
|
column: "sargroupid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_sarautodelete_guildid",
|
|
|
|
|
table: "sarautodelete",
|
|
|
|
|
column: "guildid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
unique: true);
|
|
|
|
|
|
2025-03-17 19:51:05 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_scheduledcommand_guildid",
|
|
|
|
|
table: "scheduledcommand",
|
|
|
|
|
column: "guildid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_scheduledcommand_userid",
|
|
|
|
|
table: "scheduledcommand",
|
|
|
|
|
column: "userid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_scheduledcommand_when",
|
|
|
|
|
table: "scheduledcommand",
|
|
|
|
|
column: "when");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_shopentry_guildid_index",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "shopentry",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
columns: new[] { "guildid", "index" },
|
|
|
|
|
unique: true);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_shopentryitem_shopentryid",
|
|
|
|
|
table: "shopentryitem",
|
|
|
|
|
column: "shopentryid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_slowmodeignoredrole_guildid_roleid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "slowmodeignoredrole",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
columns: new[] { "guildid", "roleid" },
|
|
|
|
|
unique: true);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_slowmodeignoreduser_guildid_userid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "slowmodeignoreduser",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
columns: new[] { "guildid", "userid" },
|
|
|
|
|
unique: true);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_stickyroles_guildid_userid",
|
|
|
|
|
table: "stickyroles",
|
|
|
|
|
columns: new[] { "guildid", "userid" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_streamroleblacklisteduser_streamrolesettingsid",
|
|
|
|
|
table: "streamroleblacklisteduser",
|
|
|
|
|
column: "streamrolesettingsid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_streamrolesettings_guildid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "streamrolesettings",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
column: "guildid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_streamrolewhitelisteduser_streamrolesettingsid",
|
|
|
|
|
table: "streamrolewhitelisteduser",
|
|
|
|
|
column: "streamrolesettingsid");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_temprole_expiresat",
|
|
|
|
|
table: "temprole",
|
|
|
|
|
column: "expiresat");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_todos_archiveid",
|
|
|
|
|
table: "todos",
|
|
|
|
|
column: "archiveid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_todos_userid",
|
|
|
|
|
table: "todos",
|
|
|
|
|
column: "userid");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_unbantimer_guildid_userid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "unbantimer",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
columns: new[] { "guildid", "userid" },
|
|
|
|
|
unique: true);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_unmutetimer_guildid_userid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "unmutetimer",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
columns: new[] { "guildid", "userid" },
|
|
|
|
|
unique: true);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_unroletimer_guildid_userid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "unroletimer",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
columns: new[] { "guildid", "userid" },
|
|
|
|
|
unique: true);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "ix_userbetstats_maxwin",
|
|
|
|
|
table: "userbetstats",
|
|
|
|
|
column: "maxwin");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_userbetstats_userid_game",
|
|
|
|
|
table: "userbetstats",
|
|
|
|
|
columns: new[] { "userid", "game" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
2025-03-29 20:43:32 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_userfishitem_userid",
|
|
|
|
|
table: "userfishitem",
|
|
|
|
|
column: "userid");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_userfishstats_userid",
|
|
|
|
|
table: "userfishstats",
|
|
|
|
|
column: "userid",
|
|
|
|
|
unique: true);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
2025-03-29 20:43:32 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_userquest_userid",
|
|
|
|
|
table: "userquest",
|
|
|
|
|
column: "userid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_userquest_userid_questnumber_dateassigned",
|
|
|
|
|
table: "userquest",
|
|
|
|
|
columns: new[] { "userid", "questnumber", "dateassigned" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
2025-03-12 10:20:55 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_userrole_guildid",
|
|
|
|
|
table: "userrole",
|
|
|
|
|
column: "guildid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_userrole_guildid_userid",
|
|
|
|
|
table: "userrole",
|
|
|
|
|
columns: new[] { "guildid", "userid" });
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_userxpstats_guildid",
|
|
|
|
|
table: "userxpstats",
|
|
|
|
|
column: "guildid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_userxpstats_userid",
|
|
|
|
|
table: "userxpstats",
|
|
|
|
|
column: "userid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_userxpstats_userid_guildid",
|
|
|
|
|
table: "userxpstats",
|
|
|
|
|
columns: new[] { "userid", "guildid" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_userxpstats_xp",
|
|
|
|
|
table: "userxpstats",
|
|
|
|
|
column: "xp");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_vcroleinfo_guildid_voicechannelid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "vcroleinfo",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
columns: new[] { "guildid", "voicechannelid" },
|
|
|
|
|
unique: true);
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_waifuinfo_affinityid",
|
|
|
|
|
table: "waifuinfo",
|
|
|
|
|
column: "affinityid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_waifuinfo_claimerid",
|
|
|
|
|
table: "waifuinfo",
|
|
|
|
|
column: "claimerid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_waifuinfo_price",
|
|
|
|
|
table: "waifuinfo",
|
|
|
|
|
column: "price");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_waifuinfo_waifuid",
|
|
|
|
|
table: "waifuinfo",
|
|
|
|
|
column: "waifuid",
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_waifuitem_waifuinfoid",
|
|
|
|
|
table: "waifuitem",
|
|
|
|
|
column: "waifuinfoid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_waifuupdates_newid",
|
|
|
|
|
table: "waifuupdates",
|
|
|
|
|
column: "newid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_waifuupdates_oldid",
|
|
|
|
|
table: "waifuupdates",
|
|
|
|
|
column: "oldid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_waifuupdates_userid",
|
|
|
|
|
table: "waifuupdates",
|
|
|
|
|
column: "userid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_warnings_dateadded",
|
|
|
|
|
table: "warnings",
|
|
|
|
|
column: "dateadded");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_warnings_guildid",
|
|
|
|
|
table: "warnings",
|
|
|
|
|
column: "guildid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_warnings_userid",
|
|
|
|
|
table: "warnings",
|
|
|
|
|
column: "userid");
|
|
|
|
|
|
2025-01-29 22:51:59 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_xpcurrencyreward_level_xpsettingsid",
|
|
|
|
|
table: "xpcurrencyreward",
|
|
|
|
|
columns: new[] { "level", "xpsettingsid" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_xpcurrencyreward_xpsettingsid",
|
|
|
|
|
table: "xpcurrencyreward",
|
|
|
|
|
column: "xpsettingsid");
|
|
|
|
|
|
2025-03-19 11:22:58 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_xpexcludeditem_guildid",
|
|
|
|
|
table: "xpexcludeditem",
|
|
|
|
|
column: "guildid");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_xprolereward_xpsettingsid_level",
|
|
|
|
|
table: "xprolereward",
|
|
|
|
|
columns: new[] { "xpsettingsid", "level" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
2025-01-29 22:51:59 +13:00
|
|
|
|
name: "ix_xpsettings_guildid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
table: "xpsettings",
|
2025-01-29 22:51:59 +13:00
|
|
|
|
column: "guildid",
|
2024-09-20 23:20:03 +12:00
|
|
|
|
unique: true);
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "ix_xpshopowneditem_userid_itemtype_itemkey",
|
|
|
|
|
table: "xpshopowneditem",
|
|
|
|
|
columns: new[] { "userid", "itemtype", "itemkey" },
|
|
|
|
|
unique: true);
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
|
|
|
name: "fk_clubapplicants_clubs_clubid",
|
|
|
|
|
table: "clubapplicants",
|
|
|
|
|
column: "clubid",
|
|
|
|
|
principalTable: "clubs",
|
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
|
|
|
name: "fk_clubapplicants_discorduser_userid",
|
|
|
|
|
table: "clubapplicants",
|
|
|
|
|
column: "userid",
|
|
|
|
|
principalTable: "discorduser",
|
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
|
|
|
name: "fk_clubbans_clubs_clubid",
|
|
|
|
|
table: "clubbans",
|
|
|
|
|
column: "clubid",
|
|
|
|
|
principalTable: "clubs",
|
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
|
|
|
name: "fk_clubbans_discorduser_userid",
|
|
|
|
|
table: "clubbans",
|
|
|
|
|
column: "userid",
|
|
|
|
|
principalTable: "discorduser",
|
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.Cascade);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
|
|
|
name: "fk_clubs_discorduser_ownerid",
|
|
|
|
|
table: "clubs",
|
|
|
|
|
column: "ownerid",
|
|
|
|
|
principalTable: "discorduser",
|
|
|
|
|
principalColumn: "id",
|
|
|
|
|
onDelete: ReferentialAction.SetNull);
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
/// <inheritdoc />
|
2024-09-20 23:20:03 +12:00
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.DropForeignKey(
|
|
|
|
|
name: "fk_discorduser_clubs_clubid",
|
|
|
|
|
table: "discorduser");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "antialtsetting");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "antiraidsetting");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "antispamignore");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "autocommands");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "autopublishchannel");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "autotranslateusers");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "bankusers");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "bantemplates");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "blacklist");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "buttonrole");
|
|
|
|
|
|
2025-03-01 13:04:20 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "channelxpconfig");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "clubapplicants");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "clubbans");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "commandalias");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "commandcooldown");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "currencytransactions");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "delmsgoncmdchannel");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "discordpermoverrides");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "expressions");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "feedsub");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "filterchannelid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "filteredword");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "filterlinkschannelid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "filterwordschannelid");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "fishcatch");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "flagtranslatechannel");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "followedstream");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "gamblingstats");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "gcchannelid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "giveawayuser");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "greetsettings");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "guildcolors");
|
|
|
|
|
|
2025-03-01 13:04:20 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "guildxpconfig");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "honeypotchannels");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "ignoredlogchannels");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "imageonlychannels");
|
|
|
|
|
|
2025-03-23 15:25:31 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "linkfix");
|
|
|
|
|
|
2025-03-19 14:15:05 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "livechannelconfig");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "musicplayersettings");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "muteduserid");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "ncpixel");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "notify");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "patrons");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "permissions");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "plantedcurrency");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "playlistsong");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "quotes");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "rakeback");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "reactionroles");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "reminders");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "repeaters");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "rewardedusers");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "rotatingstatus");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "sar");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "sarautodelete");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
2025-03-17 19:51:05 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "scheduledcommand");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "shopentryitem");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "slowmodeignoredrole");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "slowmodeignoreduser");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "stickyroles");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "streamonlinemessages");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "streamroleblacklisteduser");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "streamrolewhitelisteduser");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "temprole");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "todos");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "unbantimer");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "unmutetimer");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "unroletimer");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "userbetstats");
|
|
|
|
|
|
2025-03-29 20:43:32 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "userfishitem");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "userfishstats");
|
|
|
|
|
|
2025-03-29 20:43:32 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "userquest");
|
|
|
|
|
|
2025-03-12 10:20:55 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "userrole");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "userxpstats");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "vcroleinfo");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "waifuitem");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "waifuupdates");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "warningpunishment");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "warnings");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "xpcurrencyreward");
|
|
|
|
|
|
2025-03-19 11:22:58 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "xpexcludeditem");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "xprolereward");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "xpshopowneditem");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "antispamsetting");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "autotranslatechannels");
|
|
|
|
|
|
2025-01-29 22:51:59 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "guildfilterconfig");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "giveawaymodel");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "logsettings");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
2025-01-29 22:51:59 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "guildconfigs");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "musicplaylists");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
2025-01-24 18:27:08 +13:00
|
|
|
|
name: "sargroup");
|
2024-09-20 23:20:03 +12:00
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "shopentry");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "streamrolesettings");
|
|
|
|
|
|
2025-01-24 18:27:08 +13:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "todosarchive");
|
|
|
|
|
|
2024-09-20 23:20:03 +12:00
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "waifuinfo");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "xpsettings");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "clubs");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "discorduser");
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-03-29 20:43:32 +13:00
|
|
|
|
}
|