11 lines
700 B
SQL
11 lines
700 B
SQL
CREATE TABLE "used_magic_tokens" (
|
|
"jti" text PRIMARY KEY NOT NULL,
|
|
"email" text NOT NULL,
|
|
"used_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
);
|
|
--> statement-breakpoint
|
|
DROP INDEX "users_email_lower_idx";--> statement-breakpoint
|
|
ALTER TABLE "user_skills" ADD COLUMN "mentor_approved_at" timestamp with time zone;--> statement-breakpoint
|
|
ALTER TABLE "user_skills" ADD COLUMN "mentor_approved_by" text;--> statement-breakpoint
|
|
CREATE UNIQUE INDEX "users_email_lower_key" ON "users" USING btree (lower("email"));--> statement-breakpoint
|
|
ALTER TABLE "notification_rules" ADD CONSTRAINT "chk_notification_rules_channel" CHECK ("notification_rules"."channel_set" IN ('email','sms','email+sms')); |