github.com/icyphox/x@v0.0.355-0.20220311094250-029bd783e8b8/popx/stub/migrations/transactional/20191100000001000003_identities.mysql.up.sql (about) 1 CREATE TABLE `identity_credentials` ( 2 `id` char(36) NOT NULL, 3 PRIMARY 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, 9 FOREIGN KEY (`identity_id`) REFERENCES `identities` (`id`) ON DELETE cascade, 10 FOREIGN KEY (`identity_credential_type_id`) REFERENCES `identity_credential_types` (`id`) ON DELETE cascade 11 ) ENGINE=InnoDB