diff options
| author | sostler <sbostler@gmail.com> | 2010-01-04 04:08:37 -0500 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-01-04 04:08:37 -0500 |
| commit | 450f4d7978578e9c263af522587cbf611c38a5b6 (patch) | |
| tree | 99e05199bb60a605cbbaedafa3c7c8a4b4cbf778 /db | |
| parent | 5c4d9aaf8c674183e38f5b7b499784714d025dc1 (diff) | |
Added additional rooms
Diffstat (limited to 'db')
| -rwxr-xr-x | db/0-create.psql | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/db/0-create.psql b/db/0-create.psql index be404be..af5ace6 100755 --- a/db/0-create.psql +++ b/db/0-create.psql @@ -4,6 +4,7 @@ CREATE TABLE users ( hash text NOT NULL, email text NOT NULL, created_on timestamp NOT NULL DEFAULT now(), + is_admin boolean NOT NULL DEFAULT false, avatar text NOT NULL DEFAULT '', contact text NOT NULL DEFAULT '', bio text NOT NULL DEFAULT '' @@ -11,7 +12,9 @@ CREATE TABLE users ( CREATE TABLE rooms ( room_id SERIAL PRIMARY KEY, - name text UNIQUE NOT NULL, + key text UNIQUE NOT NULL, + name text NOT NULL, + description text NOT NULL, created_on timestamp NOT NULL DEFAULT now(), admin_only bool NOT NULL DEFAULT false ); |
