mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +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'))
|
||||
)
|
1
migrations/0023.sql
Normal file
1
migrations/0023.sql
Normal file
@@ -0,0 +1 @@
|
||||
DELETE FROM sessions
|
2
migrations/0024.sql
Normal file
2
migrations/0024.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE sessions
|
||||
ADD COLUMN last_used DATETIME
|
Reference in New Issue
Block a user