From 8b765c8b48c06f42a1c6eead2bd6f58f776a3d72 Mon Sep 17 00:00:00 2001
From: linuxpoet <linuxpoet@4979c152-3d1c-0410-bac9-87ea11338e46>
Date: Wed, 27 Jun 2007 21:36:16 +0000
Subject: 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
---
 sql/Pg-database.sql | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'sql/Pg-database.sql')

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
 );
 --
-- 
cgit v1.2.3

