...

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

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

     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)

View as plain text