Some checks failed
CI / Run lints and checks (push) Failing after 47s
CI / Run tests (push) Failing after 1s
CI / Run race tests (push) Failing after 5s
CI / Build CLI docs (push) Has been skipped
CI / Run buf actions (push) Failing after 5s
CodeQL / Analyze (go) (push) Failing after 3s
CodeQL / Analyze (javascript) (push) Failing after 2s
Docker Image Scanners / scanners (push) Failing after 3s
Format / format (push) Failing after 3s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Draft newsletter (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
50 lines
1.7 KiB
SQL
50 lines
1.7 KiB
SQL
CREATE TABLE "selfservice_login_requests" (
|
|
"id" TEXT PRIMARY KEY,
|
|
"request_url" TEXT NOT NULL,
|
|
"issued_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
"expires_at" DATETIME NOT NULL,
|
|
"active_method" TEXT NOT NULL,
|
|
"csrf_token" TEXT NOT NULL,
|
|
"created_at" DATETIME NOT NULL,
|
|
"updated_at" DATETIME NOT NULL
|
|
);
|
|
CREATE TABLE "selfservice_login_request_methods" (
|
|
"id" TEXT PRIMARY KEY,
|
|
"method" TEXT NOT NULL,
|
|
"selfservice_login_request_id" char(36) NOT NULL,
|
|
"config" TEXT 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
|
|
);
|
|
CREATE TABLE "selfservice_registration_requests" (
|
|
"id" TEXT PRIMARY KEY,
|
|
"request_url" TEXT NOT NULL,
|
|
"issued_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
"expires_at" DATETIME NOT NULL,
|
|
"active_method" TEXT NOT NULL,
|
|
"csrf_token" TEXT NOT NULL,
|
|
"created_at" DATETIME NOT NULL,
|
|
"updated_at" DATETIME NOT NULL
|
|
);
|
|
CREATE TABLE "selfservice_registration_request_methods" (
|
|
"id" TEXT PRIMARY KEY,
|
|
"method" TEXT NOT NULL,
|
|
"selfservice_registration_request_id" char(36) NOT NULL,
|
|
"config" TEXT 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
|
|
);
|
|
CREATE TABLE "selfservice_profile_management_requests" (
|
|
"id" TEXT PRIMARY KEY,
|
|
"request_url" TEXT NOT NULL,
|
|
"issued_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
"expires_at" DATETIME NOT NULL,
|
|
"form" TEXT 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
|
|
); |