-
Notifications
You must be signed in to change notification settings - Fork 0
/
tbl_invsiteitemqty.sql
executable file
·40 lines (34 loc) · 1.11 KB
/
tbl_invsiteitemqty.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* =================================================
*
* Entity Name: 'tbl_invsiteitemqty.sql'
* Description:
*
*
* $Id: tbl_invsiteitemqty.sql,v 1.1 2007/05/21 06:38:24 nweeks Exp $
*
* $Log: tbl_invsiteitemqty.sql,v $
* Revision 1.1 2007/05/21 06:38:24 nweeks
* Initial revision
*
*
* =================================================
*/
select 'Linking DNA tbl_invsiteitemqty.sql...' from rdb$database;
/* --------------
* Inventory :: Item table
*
* Flexible descriptions, ownership, and extendible tags/categories
* --------------
*/
select 'Linking DNA tbl_invsiteitemqty' from rdb$database;
CREATE TABLE tbl_invsiteitemqty (
int_itemid BIGINT NOT NULL,
int_siteid BIGINT NOT NULL,
int_instock NUMERIC(18,4) default 1,
int_onhold NUMERIC(18,4) default 0, /* In shopping cart, before payment made */
int_onorder NUMERIC(18,4) default 0, /* Coming from supplier */
int_intransit NUMERIC(18,4) default 0, /* Being shipped */
PRIMARY KEY(int_itemid, int_siteid),
FOREIGN KEY(int_itemid) REFERENCES tbl_invitem (int_itemid),
FOREIGN KEY(int_siteid) REFERENCES tbl_invsite (int_itemid)
);