forked from syntaxbullet/AuroraBot-discord
refactor: move drizzle to shared
This commit is contained in:
17
shared/db/migrations/0001_heavy_thundra.sql
Normal file
17
shared/db/migrations/0001_heavy_thundra.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
CREATE TABLE "moderation_cases" (
|
||||
"id" bigserial PRIMARY KEY NOT NULL,
|
||||
"case_id" varchar(50) NOT NULL,
|
||||
"type" varchar(20) NOT NULL,
|
||||
"user_id" bigint NOT NULL,
|
||||
"username" varchar(255) NOT NULL,
|
||||
"moderator_id" bigint NOT NULL,
|
||||
"moderator_name" varchar(255) NOT NULL,
|
||||
"reason" text NOT NULL,
|
||||
"metadata" jsonb DEFAULT '{}'::jsonb,
|
||||
"active" boolean DEFAULT true NOT NULL,
|
||||
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
||||
"resolved_at" timestamp with time zone,
|
||||
"resolved_by" bigint,
|
||||
"resolved_reason" text,
|
||||
CONSTRAINT "moderation_cases_case_id_unique" UNIQUE("case_id")
|
||||
);
|
||||
Reference in New Issue
Block a user