summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-07 20:03:07 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-07 20:03:07 +0000
commitab00ae90ccd370de4ca0c3f73c6d732f45fd569b (patch)
treea34cb59130fcdbc400f41bdc5ba32fea5775b92a /sql
parent3c8bf664ba66bfcf8345cdc6c0eee7b5b6eae40d (diff)
A few authentication fixes
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1715 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'sql')
-rw-r--r--sql/Pg-database.sql7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/Pg-database.sql b/sql/Pg-database.sql
index 76b22079..dc22e135 100644
--- a/sql/Pg-database.sql
+++ b/sql/Pg-database.sql
@@ -53,7 +53,12 @@ COMMENT ON TABLE entity_class_to_entity IS $$ Relation builder for classes to en
CREATE TABLE users (
id serial UNIQUE,
username varchar(30) primary key,
- entity_id int not null references entity(id) on delete cascade
+ entity_id int not null references employee(entity_id) on delete cascade,
+ language text references country(short_name),
+ stylesheet text default 'ledgersmb.css' not null,
+ printer text,
+ dateformat text default 'yyyy-mm-dd' not null,
+ numberformat text default '1000.00' not null
);
COMMENT ON TABLE users IS $$username is the actual primary key here because we do not want duplicate users$$;