CREATE TABLE "crm_user_invites" ( "id" text PRIMARY KEY NOT NULL, "email" text NOT NULL, "name" text, "token_hash" text NOT NULL, "is_super_admin" boolean DEFAULT false NOT NULL, "expires_at" timestamp with time zone NOT NULL, "used_at" timestamp with time zone, "created_at" timestamp with time zone DEFAULT now() NOT NULL ); --> statement-breakpoint CREATE UNIQUE INDEX "idx_crm_invites_token_hash" ON "crm_user_invites" USING btree ("token_hash");--> statement-breakpoint CREATE INDEX "idx_crm_invites_email" ON "crm_user_invites" USING btree ("email");