...

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

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

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

View as plain text