Added settings and API key stuff
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
9d08e23352
commit
a80ad57ca9
14 changed files with 396 additions and 45 deletions
|
|
@ -0,0 +1,3 @@
|
|||
-- Add migration script here
|
||||
|
||||
DROP TABLE IF EXISTS api_keys;
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
-- Add migration script here
|
||||
|
||||
CREATE TABLE IF NOT EXISTS api_keys
|
||||
(
|
||||
id INTEGER PRIMARY KEY NOT NULL,
|
||||
user_id INTEGER NOT NULL REFERENCES users(id),
|
||||
token TEXT NOT NULL,
|
||||
name TEXT NOT NULL,
|
||||
expiration_date TEXT NOT NULL,
|
||||
permissions TEXT NOT NULL,
|
||||
revoked BOOLEAN NOT NULL
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue