...

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

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

     1CREATE TABLE "identity_verification_tokens" (
     2"id" UUID NOT NULL,
     3PRIMARY KEY("id"),
     4"token" VARCHAR (64) NOT NULL,
     5"used" bool NOT NULL DEFAULT 'false',
     6"used_at" timestamp,
     7"expires_at" timestamp NOT NULL,
     8"issued_at" timestamp NOT NULL,
     9"identity_verifiable_address_id" UUID NOT NULL,
    10"selfservice_verification_flow_id" UUID,
    11"created_at" timestamp NOT NULL,
    12"updated_at" timestamp NOT NULL,
    13CONSTRAINT "identity_verification_tokens_identity_verifiable_addresses_id_fk" FOREIGN KEY ("identity_verifiable_address_id") REFERENCES "identity_verifiable_addresses" ("id") ON DELETE cascade,
    14CONSTRAINT "identity_verification_tokens_selfservice_verification_flows_id_fk" FOREIGN KEY ("selfservice_verification_flow_id") REFERENCES "selfservice_verification_flows" ("id") ON DELETE cascade
    15)

View as plain text