Some checks failed
CI / Run tests and lints (push) Failing after 29s
CI / Build CLI docs (push) Has been skipped
CI / Run Playwright end-to-end tests (mysql) (push) Failing after 3s
CI / Run Playwright end-to-end tests (postgres) (push) Failing after 2s
CI / Run Playwright end-to-end tests (sqlite) (push) Failing after 3s
CodeQL / Analyze (go) (push) Failing after 4s
CodeQL / Analyze (javascript) (push) Failing after 3s
Docker Image Scanners / scanners (push) Failing after 4s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Run end-to-end tests (postgres) (push) Failing after 19s
CI / Run end-to-end tests (sqlite) (push) Failing after 2s
CI / Run Playwright end-to-end tests (cockroach) (push) Failing after 2s
CI / Draft newsletter (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
55 lines
2.0 KiB
SQL
55 lines
2.0 KiB
SQL
CREATE TABLE `selfservice_login_requests` (
|
|
`id` char(36) NOT NULL,
|
|
PRIMARY KEY(`id`),
|
|
`request_url` VARCHAR (2048) NOT NULL,
|
|
`issued_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
`expires_at` DATETIME NOT NULL,
|
|
`active_method` VARCHAR (32) NOT NULL,
|
|
`csrf_token` VARCHAR (255) NOT NULL,
|
|
`created_at` DATETIME NOT NULL,
|
|
`updated_at` DATETIME NOT NULL
|
|
) ENGINE=InnoDB;
|
|
CREATE TABLE `selfservice_login_request_methods` (
|
|
`id` char(36) NOT NULL,
|
|
PRIMARY KEY(`id`),
|
|
`method` VARCHAR (32) NOT NULL,
|
|
`selfservice_login_request_id` char(36) NOT NULL,
|
|
`config` JSON NOT NULL,
|
|
`created_at` DATETIME NOT NULL,
|
|
`updated_at` DATETIME NOT NULL,
|
|
FOREIGN KEY (`selfservice_login_request_id`) REFERENCES `selfservice_login_requests` (`id`) ON DELETE cascade
|
|
) ENGINE=InnoDB;
|
|
CREATE TABLE `selfservice_registration_requests` (
|
|
`id` char(36) NOT NULL,
|
|
PRIMARY KEY(`id`),
|
|
`request_url` VARCHAR (2048) NOT NULL,
|
|
`issued_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
`expires_at` DATETIME NOT NULL,
|
|
`active_method` VARCHAR (32) NOT NULL,
|
|
`csrf_token` VARCHAR (255) NOT NULL,
|
|
`created_at` DATETIME NOT NULL,
|
|
`updated_at` DATETIME NOT NULL
|
|
) ENGINE=InnoDB;
|
|
CREATE TABLE `selfservice_registration_request_methods` (
|
|
`id` char(36) NOT NULL,
|
|
PRIMARY KEY(`id`),
|
|
`method` VARCHAR (32) NOT NULL,
|
|
`selfservice_registration_request_id` char(36) NOT NULL,
|
|
`config` JSON NOT NULL,
|
|
`created_at` DATETIME NOT NULL,
|
|
`updated_at` DATETIME NOT NULL,
|
|
FOREIGN KEY (`selfservice_registration_request_id`) REFERENCES `selfservice_registration_requests` (`id`) ON DELETE cascade
|
|
) ENGINE=InnoDB;
|
|
CREATE TABLE `selfservice_profile_management_requests` (
|
|
`id` char(36) NOT NULL,
|
|
PRIMARY KEY(`id`),
|
|
`request_url` VARCHAR (2048) NOT NULL,
|
|
`issued_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
`expires_at` DATETIME NOT NULL,
|
|
`form` JSON NOT NULL,
|
|
`update_successful` bool NOT NULL,
|
|
`identity_id` char(36) NOT NULL,
|
|
`created_at` DATETIME NOT NULL,
|
|
`updated_at` DATETIME NOT NULL,
|
|
FOREIGN KEY (`identity_id`) REFERENCES `identities` (`id`) ON DELETE cascade
|
|
) ENGINE=InnoDB; |