...

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

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

     1CREATE TABLE `identity_credentials` (
     2`id` char(36) NOT NULL,
     3PRIMARY KEY(`id`),
     4`config` JSON NOT NULL,
     5`identity_credential_type_id` char(36) NOT NULL,
     6`identity_id` char(36) NOT NULL,
     7`created_at` DATETIME NOT NULL,
     8`updated_at` DATETIME NOT NULL,
     9FOREIGN KEY (`identity_id`) REFERENCES `identities` (`id`) ON DELETE cascade,
    10FOREIGN KEY (`identity_credential_type_id`) REFERENCES `identity_credential_types` (`id`) ON DELETE cascade
    11) ENGINE=InnoDB

View as plain text