generated from lucxjo/template
Louis Hollingworth
e8f797d1e0
Next steps: * Remove booster roles from the DB and Guild when someone stops boosting * Add booster roles to the DB and Guild when someone starts boosting Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
27 lines
586 B
SQL
27 lines
586 B
SQL
-- CreateTable
|
|
CREATE TABLE "guild" (
|
|
"id" TEXT NOT NULL,
|
|
"name" TEXT NOT NULL,
|
|
"reports_channel_id" TEXT,
|
|
|
|
CONSTRAINT "guild_pkey" PRIMARY KEY ("id")
|
|
);
|
|
|
|
-- CreateTable
|
|
CREATE TABLE "member" (
|
|
"id" TEXT NOT NULL,
|
|
"name" TEXT NOT NULL,
|
|
"booster_role_id" TEXT NOT NULL,
|
|
|
|
CONSTRAINT "member_pkey" PRIMARY KEY ("id")
|
|
);
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX "guild_id_key" ON "guild"("id");
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX "member_id_key" ON "member"("id");
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX "member_booster_role_id_key" ON "member"("booster_role_id");
|