config-db: add column to permissions table

This commit is contained in:
Anton Iakimov 2024-08-08 15:50:45 +02:00
parent 528f25d84b
commit e8b662d3fb
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@
granted_by VARCHAR(255) NOT NULL,
granted_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
expires_at TIMESTAMP NULL,
node_id INT NOT NULL
node_id INT NOT NULL,
status VARCHAR(255) NOT NULL
)
- CREATE INDEX IF NOT EXISTS idx_recipient ON permissions (recipient)
- CREATE INDEX IF NOT EXISTS idx_granted_by ON permissions (granted_by)