...

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

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

     1CREATE TABLE `sessions` (
     2`id` char(36) NOT NULL,
     3PRIMARY KEY(`id`),
     4`issued_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
     5`expires_at` DATETIME NOT NULL,
     6`authenticated_at` DATETIME NOT NULL,
     7`identity_id` char(36) NOT NULL,
     8`created_at` DATETIME NOT NULL,
     9`updated_at` DATETIME NOT NULL,
    10FOREIGN KEY (`identity_id`) REFERENCES `identities` (`id`) ON DELETE cascade
    11) ENGINE=InnoDB;

View as plain text