Plume/migrations/postgres/2018-10-19-165407_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
261 B
SQL
Executable file

-- Your SQL goes here
CREATE TABLE apps (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL DEFAULT '',
client_id TEXT NOT NULL,
client_secret TEXT NOT NULL,
redirect_uri TEXT,
website TEXT,
creation_date TIMESTAMP NOT NULL DEFAULT now()
);