mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-25 19:40:31 +00:00
10 lines
315 B
MySQL
10 lines
315 B
MySQL
|
-- Your SQL goes here
|
||
|
CREATE TABLE api_tokens (
|
||
|
id SERIAL PRIMARY KEY,
|
||
|
creation_date TIMESTAMP NOT NULL DEFAULT now(),
|
||
|
value TEXT NOT NULL,
|
||
|
scopes TEXT NOT NULL,
|
||
|
app_id INTEGER NOT NULL REFERENCES apps(id) ON DELETE CASCADE,
|
||
|
user_id INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE
|
||
|
)
|