github.com/icyphox/x@v0.0.355-0.20220311094250-029bd783e8b8/popx/stub/migrations/transactional/20191100000002000004_requests.cockroach.up.sql (about) 1 CREATE TABLE "selfservice_profile_management_requests" ( 2 "id" UUID NOT NULL, 3 PRIMARY KEY("id"), 4 "request_url" VARCHAR (2048) NOT NULL, 5 "issued_at" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 6 "expires_at" timestamp NOT NULL, 7 "form" json NOT NULL, 8 "update_successful" bool NOT NULL, 9 "identity_id" UUID NOT NULL, 10 "created_at" timestamp NOT NULL, 11 "updated_at" timestamp NOT NULL, 12 CONSTRAINT "selfservice_profile_management_requests_identities_id_fk" FOREIGN KEY ("identity_id") REFERENCES "identities" ("id") ON DELETE cascade 13 );