internal/store/migrations/0003_registration.up.sql

568741bf3226b21a023ff5dcd22b00fa0047350c
gitbay/internal/store/migrations/0003_registration.up.sql

10 lines · 359 bytes

 1CREATE TABLE email_tokens (
 2    token_hash TEXT PRIMARY KEY,
 3    user_id    INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE,
 4    address    TEXT NOT NULL,
 5    created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now')),
 6    expires_at TEXT NOT NULL,
 7    used_at    TEXT
 8);
 9
10ALTER TABLE users ADD COLUMN pending INTEGER NOT NULL DEFAULT 0;
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