X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=sql%2Fsql.d%2F001-struct.sql;h=3639258c21c3d1102a940c5ec85188efa83e8da6;hb=9fba6a242795ed609150c23ab6ea886a3b78e718;hp=024d58f2b87922b421b3681253544fc259724f0c;hpb=ee01d2e98b1e7ff67640d27f88b6467ed6e87be4;p=brisk.git diff --git a/sql/sql.d/001-struct.sql b/sql/sql.d/001-struct.sql index 024d58f..3639258 100644 --- a/sql/sql.d/001-struct.sql +++ b/sql/sql.d/001-struct.sql @@ -4,15 +4,19 @@ DROP TABLE #PFX#users; CREATE TABLE #PFX#users ( - code SERIAL PRIMARY KEY, - login text UNIQUE, - pass text, - email text UNIQUE, - type integer - ); + code SERIAL PRIMARY KEY, + login text UNIQUE, + pass text, + email text UNIQUE, + type integer, + tsusp timestamp DEFAULT to_timestamp(0) -- disable timeout + mtime timestamp DEFAULT to_timestamp(0) -- last access + ); DROP TABLE #PFX#groups; CREATE TABLE #PFX#groups ( - code SERIAL PRIMARY KEY, - gname text - ); + code SERIAL PRIMARY KEY, + name text + ); + +