...

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

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

     1CREATE TABLE `selfservice_recovery_requests` (
     2`id` char(36) NOT NULL,
     3PRIMARY KEY(`id`),
     4`request_url` VARCHAR (2048) NOT NULL,
     5`issued_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
     6`expires_at` DATETIME NOT NULL,
     7`messages` JSON,
     8`active_method` VARCHAR (32),
     9`csrf_token` VARCHAR (255) NOT NULL,
    10`state` VARCHAR (32) NOT NULL,
    11`recovered_identity_id` char(36),
    12`created_at` DATETIME NOT NULL,
    13`updated_at` DATETIME NOT NULL,
    14FOREIGN KEY (`recovered_identity_id`) REFERENCES `identities` (`id`) ON DELETE cascade
    15) ENGINE=InnoDB

View as plain text