Lines 1003-1014
CREATE TABLE `default_branch_item_rules` (
Link Here
|
1003 |
|
1003 |
|
1004 |
DROP TABLE IF EXISTS `branchtransfers`; |
1004 |
DROP TABLE IF EXISTS `branchtransfers`; |
1005 |
CREATE TABLE `branchtransfers` ( -- information for items that are in transit between branches |
1005 |
CREATE TABLE `branchtransfers` ( -- information for items that are in transit between branches |
|
|
1006 |
`branchtransfer_id` int(12) NOT NULL auto_increment, -- primary key |
1006 |
`itemnumber` int(11) NOT NULL default 0, -- the itemnumber that it is in transit (items.itemnumber) |
1007 |
`itemnumber` int(11) NOT NULL default 0, -- the itemnumber that it is in transit (items.itemnumber) |
1007 |
`datesent` datetime default NULL, -- the date the transfer was initialized |
1008 |
`datesent` datetime default NULL, -- the date the transfer was initialized |
1008 |
`frombranch` varchar(10) NOT NULL default '', -- the branch the transfer is coming from |
1009 |
`frombranch` varchar(10) NOT NULL default '', -- the branch the transfer is coming from |
1009 |
`datearrived` datetime default NULL, -- the date the transfer arrived at its destination |
1010 |
`datearrived` datetime default NULL, -- the date the transfer arrived at its destination |
1010 |
`tobranch` varchar(10) NOT NULL default '', -- the branch the transfer was going to |
1011 |
`tobranch` varchar(10) NOT NULL default '', -- the branch the transfer was going to |
1011 |
`comments` mediumtext, -- any comments related to the transfer |
1012 |
`comments` mediumtext, -- any comments related to the transfer |
|
|
1013 |
PRIMARY KEY (`branchtransfer_id`), |
1012 |
KEY `frombranch` (`frombranch`), |
1014 |
KEY `frombranch` (`frombranch`), |
1013 |
KEY `tobranch` (`tobranch`), |
1015 |
KEY `tobranch` (`tobranch`), |
1014 |
KEY `itemnumber` (`itemnumber`), |
1016 |
KEY `itemnumber` (`itemnumber`), |