CREATE TABLE "pass_codes" ( "id" text PRIMARY KEY NOT NULL, "hint" text NOT NULL, "days" integer NOT NULL, "label" text NOT NULL, "course" text DEFAULT 'gsw-zh' NOT NULL, "created_by" text NOT NULL, "created_at" timestamp with time zone DEFAULT now() NOT NULL, "redeemed_by" text, "redeemed_at" timestamp with time zone ); --> statement-breakpoint CREATE INDEX "pass_codes_label_idx" ON "pass_codes" USING btree ("label","created_at");