Implemented API Key creation/usage and changed layout of audio requests
This commit is contained in:
@@ -16,6 +16,12 @@ CREATE TABLE IF NOT EXISTS messages (
|
||||
request_tags TEXT[] NOT NULL,
|
||||
response_tags TEXT[] NOT NULL
|
||||
);
|
||||
CREATE TABLE IF NOT EXISTS api_keys (
|
||||
key TEXT PRIMARY KEY NOT NULL,
|
||||
user_id BIGINT NOT NULL,
|
||||
user_name TEXT NOT NULL,
|
||||
access_mask INT
|
||||
);
|
||||
CREATE TABLE IF NOT EXISTS dice_thresholds (
|
||||
id UUID PRIMARY KEY NOT NULL DEFAULT gen_random_uuid(),
|
||||
owner_id BIGINT NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user