internal/store/migrations/0002_login_tokens.up.sql

28e72be7ab6bc96868893853fd8d210c3656960f
gitbay/internal/store/migrations/0002_login_tokens.up.sql

7 lines · 263 bytes

1CREATE TABLE login_tokens (
2    token_hash TEXT PRIMARY KEY,
3    user_id    INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE,
4    created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now')),
5    expires_at TEXT NOT NULL,
6    used_at    TEXT
7);
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form