CREATE TABLE "users" ( "id" serial PRIMARY KEY NOT NULL, "gitea_id" integer NOT NULL, "login" text NOT NULL, "name" text, "email" text, "avatar_url" text, "access_token_enc" text, "refresh_token_enc" text, "token_expires_at" timestamp with time zone, "created_at" timestamp with time zone DEFAULT now() NOT NULL, "last_login_at" timestamp with time zone, CONSTRAINT "users_gitea_id_unique" UNIQUE("gitea_id"), CONSTRAINT "users_login_unique" UNIQUE("login") ); --> statement-breakpoint ALTER TABLE "projects" ADD COLUMN "owner_id" integer;--> statement-breakpoint ALTER TABLE "projects" ADD CONSTRAINT "projects_owner_id_users_id_fk" FOREIGN KEY ("owner_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE no action;