...

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

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

     1CREATE TABLE "sessions" (
     2"id" UUID NOT NULL,
     3PRIMARY KEY("id"),
     4"issued_at" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
     5"expires_at" timestamp NOT NULL,
     6"authenticated_at" timestamp NOT NULL,
     7"identity_id" UUID NOT NULL,
     8"created_at" timestamp NOT NULL,
     9"updated_at" timestamp NOT NULL,
    10CONSTRAINT "sessions_identities_id_fk" FOREIGN KEY ("identity_id") REFERENCES "identities" ("id") ON DELETE cascade
    11);

View as plain text