-- CreateTable
CREATE TABLE "Settings" (
    "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    "welcomeChannelId" INTEGER NOT NULL,
    "feedbackChannelId" INTEGER NOT NULL,
    "portfolioChannelId" INTEGER NOT NULL,
    "makeAnOrderChannelId" INTEGER NOT NULL,
    "priceChannelId" INTEGER NOT NULL,
    "workLoadChannelId" INTEGER NOT NULL,
    "worlLoadStatus" INTEGER NOT NULL,
    "workloadMessageId" INTEGER NOT NULL
);

-- CreateTable
CREATE TABLE "Role" (
    "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    "welcomeRoleId" INTEGER NOT NULL,
    "tickerRoleId" INTEGER NOT NULL
);

-- CreateTable
CREATE TABLE "Banner" (
    "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    "welcomeUrl" TEXT NOT NULL,
    "ticketUrl" TEXT NOT NULL
);

-- CreateTable
CREATE TABLE "User" (
    "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    "discordId" INTEGER NOT NULL
);

-- CreateTable
CREATE TABLE "Ticket" (
    "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    "channelId" INTEGER NOT NULL,
    "closed" BOOLEAN NOT NULL,
    "userId" INTEGER,
    CONSTRAINT "Ticket_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE SET NULL ON UPDATE CASCADE
);
