muse/migrations/20220128000207_add_favorite_query_model/migration.sql
2022-01-27 21:26:00 -05:00

11 lines
309 B
SQL

-- CreateTable
CREATE TABLE "FavoriteQuery" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"guildId" TEXT NOT NULL,
"authorId" TEXT NOT NULL,
"name" TEXT NOT NULL,
"query" TEXT NOT NULL,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME NOT NULL
);