diff --git a/services/discord-gateway/drizzle/migrations/0003_add_corrected_moderations.sql b/services/discord-gateway/drizzle/migrations/0003_add_corrected_moderations.sql new file mode 100644 index 0000000..875d807 --- /dev/null +++ b/services/discord-gateway/drizzle/migrations/0003_add_corrected_moderations.sql @@ -0,0 +1,12 @@ +CREATE TABLE "corrected_moderations" ( + "id" text PRIMARY KEY NOT NULL, + "message_id" text NOT NULL, + "original_flags" text NOT NULL, + "corrected_flags" text NOT NULL, + "correction_notes" text, + "content_snippet" text NOT NULL, + "created_at" bigint NOT NULL +); +--> statement-breakpoint +CREATE INDEX "idx_corrected_moderations_created_at" ON "corrected_moderations" USING btree ("created_at");--> statement-breakpoint +CREATE INDEX "idx_corrected_moderations_message_id" ON "corrected_moderations" USING btree ("message_id"); \ No newline at end of file