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

-- CreateTable
CREATE TABLE "Role" (
    "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    "welcomeRoleId" TEXT NOT NULL,
    "tickerRoleId" TEXT 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" TEXT NOT NULL
);

-- CreateTable
CREATE TABLE "Ticket" (
    "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    "channelId" TEXT 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
);
