github.com/icyphox/x@v0.0.355-0.20220311094250-029bd783e8b8/popx/stub/migrations/transactional/20200519101057000003_create_recovery_addresses.postgres.up.sql (about) 1 CREATE TABLE "selfservice_recovery_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 "messages" jsonb, 8 "active_method" VARCHAR (32), 9 "csrf_token" VARCHAR (255) NOT NULL, 10 "state" VARCHAR (32) NOT NULL, 11 "recovered_identity_id" UUID, 12 "created_at" timestamp NOT NULL, 13 "updated_at" timestamp NOT NULL, 14 FOREIGN KEY ("recovered_identity_id") REFERENCES "identities" ("id") ON DELETE cascade 15 )