mirror of
https://github.com/grocy/grocy.git
synced 2025-08-19 20:11:16 +00:00
Finish API documentation and token auth (references #5)
This commit is contained in:
7
migrations/0022.sql
Normal file
7
migrations/0022.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
CREATE TABLE api_keys (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
||||
api_key TEXT NOT NULL UNIQUE,
|
||||
expires DATETIME,
|
||||
last_used DATETIME,
|
||||
row_created_timestamp DATETIME DEFAULT (datetime('now', 'localtime'))
|
||||
)
|
||||
Reference in New Issue
Block a user