muse/migrations/20220128000207_add_favorite_query_model/migration.sql

11 lines
309 B
MySQL
Raw Normal View History

-- 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
);