...

Text file src/github.com/ory/x/popx/stub/migrations/transactional/20200830172221000004_recovery_token_expires.sqlite3.up.sql

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

     1CREATE TABLE "_identity_recovery_tokens_tmp" (
     2"id" TEXT PRIMARY KEY,
     3"token" TEXT NOT NULL,
     4"used" bool NOT NULL DEFAULT 'false',
     5"used_at" DATETIME,
     6"identity_recovery_address_id" char(36) NOT NULL,
     7"selfservice_recovery_flow_id" char(36),
     8"created_at" DATETIME NOT NULL,
     9"updated_at" DATETIME NOT NULL,
    10"expires_at" DATETIME NOT NULL DEFAULT '2000-01-01 00:00:00',
    11"issued_at" DATETIME NOT NULL DEFAULT '2000-01-01 00:00:00',
    12FOREIGN KEY (selfservice_recovery_flow_id) REFERENCES selfservice_recovery_flows (id) ON UPDATE NO ACTION ON DELETE CASCADE,
    13FOREIGN KEY (identity_recovery_address_id) REFERENCES identity_recovery_addresses (id) ON UPDATE NO ACTION ON DELETE CASCADE
    14)

View as plain text