using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace NadekoBot.Db.Migrations
{
///
public partial class init_v5 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "autocommands",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
commandtext = table.Column(type: "text", nullable: true),
channelid = table.Column(type: "numeric(20,0)", nullable: false),
channelname = table.Column(type: "text", nullable: true),
guildid = table.Column(type: "numeric(20,0)", nullable: true),
guildname = table.Column(type: "text", nullable: true),
voicechannelid = table.Column(type: "numeric(20,0)", nullable: true),
voicechannelname = table.Column(type: "text", nullable: true),
interval = table.Column(type: "integer", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_autocommands", x => x.id);
});
migrationBuilder.CreateTable(
name: "autopublishchannel",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
channelid = table.Column(type: "numeric(20,0)", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_autopublishchannel", x => x.id);
});
migrationBuilder.CreateTable(
name: "autotranslatechannels",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
channelid = table.Column(type: "numeric(20,0)", nullable: false),
autodelete = table.Column(type: "boolean", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_autotranslatechannels", x => x.id);
});
migrationBuilder.CreateTable(
name: "bankusers",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
userid = table.Column(type: "numeric(20,0)", nullable: false),
balance = table.Column(type: "bigint", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_bankusers", x => x.id);
});
migrationBuilder.CreateTable(
name: "bantemplates",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
text = table.Column(type: "text", nullable: true),
prunedays = table.Column(type: "integer", nullable: true),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_bantemplates", x => x.id);
});
migrationBuilder.CreateTable(
name: "blacklist",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
itemid = table.Column(type: "numeric(20,0)", nullable: false),
type = table.Column(type: "integer", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_blacklist", x => x.id);
});
migrationBuilder.CreateTable(
name: "currencytransactions",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
amount = table.Column(type: "bigint", nullable: false),
note = table.Column(type: "text", nullable: true),
userid = table.Column(type: "numeric(20,0)", nullable: false),
type = table.Column(type: "text", nullable: false),
extra = table.Column(type: "text", nullable: false),
otherid = table.Column(type: "numeric(20,0)", nullable: true, defaultValueSql: "NULL"),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_currencytransactions", x => x.id);
});
migrationBuilder.CreateTable(
name: "discordpermoverrides",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
perm = table.Column(type: "numeric(20,0)", nullable: false),
guildid = table.Column(type: "numeric(20,0)", nullable: true),
command = table.Column(type: "text", nullable: true),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_discordpermoverrides", x => x.id);
});
migrationBuilder.CreateTable(
name: "expressions",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: true),
response = table.Column(type: "text", nullable: true),
trigger = table.Column(type: "text", nullable: true),
autodeletetrigger = table.Column(type: "boolean", nullable: false),
dmresponse = table.Column(type: "boolean", nullable: false),
containsanywhere = table.Column(type: "boolean", nullable: false),
allowtarget = table.Column(type: "boolean", nullable: false),
reactions = table.Column(type: "text", nullable: true),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_expressions", x => x.id);
});
migrationBuilder.CreateTable(
name: "gamblingstats",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
feature = table.Column(type: "text", nullable: true),
bet = table.Column(type: "numeric", nullable: false),
paidout = table.Column(type: "numeric", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_gamblingstats", x => x.id);
});
migrationBuilder.CreateTable(
name: "guildconfigs",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
prefix = table.Column(type: "text", nullable: true),
deletemessageoncommand = table.Column(type: "boolean", nullable: false),
autoassignroleids = table.Column(type: "text", nullable: true),
autodeletegreetmessagestimer = table.Column(type: "integer", nullable: false),
autodeletebyemessagestimer = table.Column(type: "integer", nullable: false),
greetmessagechannelid = table.Column(type: "numeric(20,0)", nullable: false),
byemessagechannelid = table.Column(type: "numeric(20,0)", nullable: false),
senddmgreetmessage = table.Column(type: "boolean", nullable: false),
dmgreetmessagetext = table.Column(type: "text", nullable: true),
sendchannelgreetmessage = table.Column(type: "boolean", nullable: false),
channelgreetmessagetext = table.Column(type: "text", nullable: true),
sendchannelbyemessage = table.Column(type: "boolean", nullable: false),
channelbyemessagetext = table.Column(type: "text", nullable: true),
exclusiveselfassignedroles = table.Column(type: "boolean", nullable: false),
autodeleteselfassignedrolemessages = table.Column(type: "boolean", nullable: false),
verbosepermissions = table.Column(type: "boolean", nullable: false),
permissionrole = table.Column(type: "text", nullable: true),
filterinvites = table.Column(type: "boolean", nullable: false),
filterlinks = table.Column(type: "boolean", nullable: false),
filterwords = table.Column(type: "boolean", nullable: false),
muterolename = table.Column(type: "text", nullable: true),
cleverbotenabled = table.Column(type: "boolean", nullable: false),
locale = table.Column(type: "text", nullable: true),
timezoneid = table.Column(type: "text", nullable: true),
warningsinitialized = table.Column(type: "boolean", nullable: false),
gamevoicechannel = table.Column(type: "numeric(20,0)", nullable: true),
verboseerrors = table.Column(type: "boolean", nullable: false, defaultValue: true),
notifystreamoffline = table.Column(type: "boolean", nullable: false),
deletestreamonlinemessage = table.Column(type: "boolean", nullable: false),
warnexpirehours = table.Column(type: "integer", nullable: false),
warnexpireaction = table.Column(type: "integer", nullable: false),
disableglobalexpressions = table.Column(type: "boolean", nullable: false),
sendboostmessage = table.Column(type: "boolean", nullable: false),
boostmessage = table.Column(type: "text", nullable: true),
boostmessagechannelid = table.Column(type: "numeric(20,0)", nullable: false),
boostmessagedeleteafter = table.Column(type: "integer", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_guildconfigs", x => x.id);
});
migrationBuilder.CreateTable(
name: "imageonlychannels",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
channelid = table.Column(type: "numeric(20,0)", nullable: false),
type = table.Column(type: "integer", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_imageonlychannels", x => x.id);
});
migrationBuilder.CreateTable(
name: "logsettings",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
logotherid = table.Column(type: "numeric(20,0)", nullable: true),
messageupdatedid = table.Column(type: "numeric(20,0)", nullable: true),
messagedeletedid = table.Column(type: "numeric(20,0)", nullable: true),
userjoinedid = table.Column(type: "numeric(20,0)", nullable: true),
userleftid = table.Column(type: "numeric(20,0)", nullable: true),
userbannedid = table.Column(type: "numeric(20,0)", nullable: true),
userunbannedid = table.Column(type: "numeric(20,0)", nullable: true),
userupdatedid = table.Column(type: "numeric(20,0)", nullable: true),
channelcreatedid = table.Column(type: "numeric(20,0)", nullable: true),
channeldestroyedid = table.Column(type: "numeric(20,0)", nullable: true),
channelupdatedid = table.Column(type: "numeric(20,0)", nullable: true),
threaddeletedid = table.Column(type: "numeric(20,0)", nullable: true),
threadcreatedid = table.Column(type: "numeric(20,0)", nullable: true),
usermutedid = table.Column(type: "numeric(20,0)", nullable: true),
loguserpresenceid = table.Column(type: "numeric(20,0)", nullable: true),
logvoicepresenceid = table.Column(type: "numeric(20,0)", nullable: true),
logvoicepresencettsid = table.Column(type: "numeric(20,0)", nullable: true),
logwarnsid = table.Column(type: "numeric(20,0)", nullable: true),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_logsettings", x => x.id);
});
migrationBuilder.CreateTable(
name: "musicplayersettings",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
playerrepeat = table.Column(type: "integer", nullable: false),
musicchannelid = table.Column(type: "numeric(20,0)", nullable: true),
volume = table.Column(type: "integer", nullable: false, defaultValue: 100),
autodisconnect = table.Column(type: "boolean", nullable: false),
qualitypreset = table.Column(type: "integer", nullable: false),
autoplay = table.Column(type: "boolean", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("pk_musicplayersettings", x => x.id);
});
migrationBuilder.CreateTable(
name: "musicplaylists",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
name = table.Column(type: "text", nullable: true),
author = table.Column(type: "text", nullable: true),
authorid = table.Column(type: "numeric(20,0)", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_musicplaylists", x => x.id);
});
migrationBuilder.CreateTable(
name: "nsfwblacklistedtags",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
tag = table.Column(type: "text", nullable: true),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_nsfwblacklistedtags", x => x.id);
});
migrationBuilder.CreateTable(
name: "patronquotas",
columns: table => new
{
userid = table.Column(type: "numeric(20,0)", nullable: false),
featuretype = table.Column(type: "integer", nullable: false),
feature = table.Column(type: "text", nullable: false),
hourlycount = table.Column(type: "bigint", nullable: false),
dailycount = table.Column(type: "bigint", nullable: false),
monthlycount = table.Column(type: "bigint", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("pk_patronquotas", x => new { x.userid, x.featuretype, x.feature });
});
migrationBuilder.CreateTable(
name: "patrons",
columns: table => new
{
userid = table.Column(type: "numeric(20,0)", nullable: false),
uniqueplatformuserid = table.Column(type: "text", nullable: true),
amountcents = table.Column(type: "integer", nullable: false),
lastcharge = table.Column(type: "timestamp without time zone", nullable: false),
validthru = table.Column(type: "timestamp without time zone", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("pk_patrons", x => x.userid);
});
migrationBuilder.CreateTable(
name: "plantedcurrency",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
amount = table.Column(type: "bigint", nullable: false),
password = table.Column(type: "text", nullable: true),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
channelid = table.Column(type: "numeric(20,0)", nullable: false),
userid = table.Column(type: "numeric(20,0)", nullable: false),
messageid = table.Column(type: "numeric(20,0)", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_plantedcurrency", x => x.id);
});
migrationBuilder.CreateTable(
name: "poll",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
channelid = table.Column(type: "numeric(20,0)", nullable: false),
question = table.Column(type: "text", nullable: true),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_poll", x => x.id);
});
migrationBuilder.CreateTable(
name: "quotes",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
keyword = table.Column(type: "text", nullable: false),
authorname = table.Column(type: "text", nullable: false),
authorid = table.Column(type: "numeric(20,0)", nullable: false),
text = table.Column(type: "text", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_quotes", x => x.id);
});
migrationBuilder.CreateTable(
name: "reactionroles",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
channelid = table.Column(type: "numeric(20,0)", nullable: false),
messageid = table.Column(type: "numeric(20,0)", nullable: false),
emote = table.Column(type: "character varying(100)", maxLength: 100, nullable: true),
roleid = table.Column(type: "numeric(20,0)", nullable: false),
group = table.Column(type: "integer", nullable: false),
levelreq = table.Column(type: "integer", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_reactionroles", x => x.id);
});
migrationBuilder.CreateTable(
name: "reminders",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
when = table.Column(type: "timestamp without time zone", nullable: false),
channelid = table.Column(type: "numeric(20,0)", nullable: false),
serverid = table.Column(type: "numeric(20,0)", nullable: false),
userid = table.Column(type: "numeric(20,0)", nullable: false),
message = table.Column(type: "text", nullable: true),
isprivate = table.Column(type: "boolean", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_reminders", x => x.id);
});
migrationBuilder.CreateTable(
name: "repeaters",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
channelid = table.Column(type: "numeric(20,0)", nullable: false),
lastmessageid = table.Column(type: "numeric(20,0)", nullable: true),
message = table.Column(type: "text", nullable: true),
interval = table.Column(type: "interval", nullable: false),
starttimeofday = table.Column(type: "interval", nullable: true),
noredundant = table.Column(type: "boolean", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("pk_repeaters", x => x.id);
});
migrationBuilder.CreateTable(
name: "rewardedusers",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
userid = table.Column(type: "numeric(20,0)", nullable: false),
platformuserid = table.Column(type: "text", nullable: true),
amountrewardedthismonth = table.Column(type: "bigint", nullable: false),
lastreward = table.Column(type: "timestamp without time zone", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_rewardedusers", x => x.id);
});
migrationBuilder.CreateTable(
name: "rotatingstatus",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
status = table.Column(type: "text", nullable: true),
type = table.Column(type: "integer", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_rotatingstatus", x => x.id);
});
migrationBuilder.CreateTable(
name: "selfassignableroles",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
roleid = table.Column(type: "numeric(20,0)", nullable: false),
group = table.Column(type: "integer", nullable: false, defaultValue: 0),
levelrequirement = table.Column(type: "integer", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_selfassignableroles", x => x.id);
});
migrationBuilder.CreateTable(
name: "streamonlinemessages",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
channelid = table.Column(type: "numeric(20,0)", nullable: false),
messageid = table.Column(type: "numeric(20,0)", nullable: false),
type = table.Column(type: "integer", nullable: false),
name = table.Column(type: "text", nullable: true),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_streamonlinemessages", x => x.id);
});
migrationBuilder.CreateTable(
name: "userxpstats",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
userid = table.Column(type: "numeric(20,0)", nullable: false),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
xp = table.Column(type: "bigint", nullable: false),
awardedxp = table.Column(type: "bigint", nullable: false),
notifyonlevelup = table.Column(type: "integer", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_userxpstats", x => x.id);
});
migrationBuilder.CreateTable(
name: "warnings",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildid = table.Column(type: "numeric(20,0)", nullable: false),
userid = table.Column(type: "numeric(20,0)", nullable: false),
reason = table.Column(type: "text", nullable: true),
forgiven = table.Column(type: "boolean", nullable: false),
forgivenby = table.Column(type: "text", nullable: true),
moderator = table.Column(type: "text", nullable: true),
weight = table.Column(type: "bigint", nullable: false, defaultValue: 1L),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_warnings", x => x.id);
});
migrationBuilder.CreateTable(
name: "xpshopowneditem",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
userid = table.Column(type: "numeric(20,0)", nullable: false),
itemtype = table.Column(type: "integer", nullable: false),
isusing = table.Column(type: "boolean", nullable: false),
itemkey = table.Column(type: "text", nullable: false),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_xpshopowneditem", x => x.id);
});
migrationBuilder.CreateTable(
name: "autotranslateusers",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
channelid = table.Column(type: "integer", nullable: false),
userid = table.Column(type: "numeric(20,0)", nullable: false),
source = table.Column(type: "text", nullable: true),
target = table.Column(type: "text", nullable: true),
dateadded = table.Column(type: "timestamp without time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_autotranslateusers", x => x.id);
table.UniqueConstraint("ak_autotranslateusers_channelid_userid", x => new { x.channelid, x.userid });
table.ForeignKey(
name: "fk_autotranslateusers_autotranslatechannels_channelid",
column: x => x.channelid,
principalTable: "autotranslatechannels",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "antialtsetting",
columns: table => new
{
id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
guildconfigid = table.Column(type: "integer", nullable: false),
minage = table.Column(type: "interval", nullable: false),
action = table.Column(type: "integer", nullable: false),
actiondurationminutes = table.Column(type: "integer", nullable: false),
roleid = table.Column