Plume/migrations/sqlite/2018-10-19-165450_create_apps/up.sql
Baptiste Gelez 4c8a727e9e Add a model for external apps
Stores their name, website, and credentials
2018-10-30 18:13:49 +01:00

10 lines
296 B
SQL
Executable file

-- Your SQL goes here
CREATE TABLE apps (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL DEFAULT '',
client_id TEXT NOT NULL,
client_secret TEXT NOT NULL,
redirect_uri TEXT,
website TEXT,
creation_date DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);