...

Text file src/github.com/ory/x/popx/stub/migrations/legacy/20200830154602_add_verification_token.sqlite3.up.sql

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

     1CREATE TABLE "identity_verification_tokens" (
     2"id" TEXT PRIMARY KEY,
     3"token" TEXT NOT NULL,
     4"used" bool NOT NULL DEFAULT 'false',
     5"used_at" DATETIME,
     6"expires_at" DATETIME NOT NULL,
     7"issued_at" DATETIME NOT NULL,
     8"identity_verifiable_address_id" char(36) NOT NULL,
     9"selfservice_verification_flow_id" char(36),
    10"created_at" DATETIME NOT NULL,
    11"updated_at" DATETIME NOT NULL,
    12FOREIGN KEY (identity_verifiable_address_id) REFERENCES identity_verifiable_addresses (id) ON DELETE cascade,
    13FOREIGN KEY (selfservice_verification_flow_id) REFERENCES selfservice_verification_flows (id) ON DELETE cascade
    14);
    15CREATE UNIQUE INDEX "identity_verification_tokens_token_uq_idx" ON "identity_verification_tokens" (token);
    16CREATE INDEX "identity_verification_tokens_token_idx" ON "identity_verification_tokens" (token);
    17CREATE INDEX "identity_verification_tokens_verifiable_address_id_idx" ON "identity_verification_tokens" (identity_verifiable_address_id);
    18CREATE INDEX "identity_verification_tokens_verification_flow_id_idx" ON "identity_verification_tokens" (selfservice_verification_flow_id);

View as plain text