...

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

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

     1CREATE TABLE `identity_recovery_tokens` (
     2`id` char(36) NOT NULL,
     3PRIMARY KEY(`id`),
     4`token` VARCHAR (64) NOT NULL,
     5`used` bool NOT NULL DEFAULT false,
     6`used_at` DATETIME,
     7`identity_recovery_address_id` char(36) NOT NULL,
     8`selfservice_recovery_request_id` char(36) NOT NULL,
     9`created_at` DATETIME NOT NULL,
    10`updated_at` DATETIME NOT NULL,
    11FOREIGN KEY (`identity_recovery_address_id`) REFERENCES `identity_recovery_addresses` (`id`) ON DELETE cascade,
    12FOREIGN KEY (`selfservice_recovery_request_id`) REFERENCES `selfservice_recovery_requests` (`id`) ON DELETE cascade
    13) ENGINE=InnoDB

View as plain text