mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-05 04:59:26 +09:00
db, types: add a credentials column for keys a token made
No released version made keys from tokens, so existing rows stay false.
This commit is contained in:
1 parent
f838b0ab2d
commit
7d8d875c80
8 files changed
+137
-87
No files matched your search
@@ -60,6 +60,7 @@ CREATE TABLE credentials(
|
||||
created_at datetime,
|
||||
expiration datetime,
|
||||
revoked datetime,
|
||||
created_by_token numeric DEFAULT false,
|
||||
|
||||
CONSTRAINT fk_credentials_user FOREIGN KEY(user_id) REFERENCES users(id) ON DELETE SET NULL,
|
||||
CONSTRAINT chk_credentials_hash CHECK(hash IS NOT NULL OR revoked IS NOT NULL),
|
||||
|
||||
Reference in new issue
Block a user