feat : comment feature
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE "comments"."read_state" (
|
||||
"user_id" text NOT NULL,
|
||||
"target" text NOT NULL,
|
||||
"seen_at" timestamp with time zone DEFAULT now() NOT NULL,
|
||||
CONSTRAINT "read_state_user_id_target_pk" PRIMARY KEY("user_id","target")
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "comments"."read_state" ADD CONSTRAINT "read_state_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "auth"."user"("id") ON DELETE cascade ON UPDATE no action;
|
||||
Reference in New Issue
Block a user