...

Text file src/github.com/ory/x/popx/stub/migrations/transactional/20200519101057000003_create_recovery_addresses.postgres.up.sql

Documentation: github.com/ory/x/popx/stub/migrations/transactional

     1CREATE TABLE "selfservice_recovery_requests" (
     2"id" UUID NOT NULL,
     3PRIMARY 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,
    14FOREIGN KEY ("recovered_identity_id") REFERENCES "identities" ("id") ON DELETE cascade
    15)

View as plain text