summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorlinuxpoet <linuxpoet@4979c152-3d1c-0410-bac9-87ea11338e46>2007-06-27 21:36:16 +0000
committerlinuxpoet <linuxpoet@4979c152-3d1c-0410-bac9-87ea11338e46>2007-06-27 21:36:16 +0000
commit8b765c8b48c06f42a1c6eead2bd6f58f776a3d72 (patch)
treea80e6215488ca054edbb2ca0a64ccb7677eb7821 /sql
parent089a9dbe13b6bd5ca1cecadd29b261f4c53968d8 (diff)
fixed inventory model to force employee
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1339 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'sql')
-rw-r--r--sql/Pg-database.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/Pg-database.sql b/sql/Pg-database.sql
index 0a54c86f..bc9244a2 100644
--- a/sql/Pg-database.sql
+++ b/sql/Pg-database.sql
@@ -715,13 +715,14 @@ CREATE TABLE warehouse (
);
--
CREATE TABLE inventory (
+ entity_id integer references entity(id) not null PRIMARY KEY,
+ entity_class_id integer references entity_class(id) not null check (entity_class_id = 3),
warehouse_id int,
parts_id int,
trans_id int,
orderitems_id int,
qty numeric,
shippingdate date,
- person_id integer references person(id) not null,
entry_id SERIAL PRIMARY KEY
);
--