Advertisement
mOrloff

bom_file SQL

Apr 6th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.64 KB | None | 0 0
  1. CREATE TABLE IF NOT EXISTS `bom_file` (
  2.   `id` int(7) unsigned NOT NULL AUTO_INCREMENT,
  3.   `company_id` smallint(5) unsigned NOT NULL,
  4.   `contact_id_requestor` mediumint(6) unsigned NOT NULL,
  5.   `contact_id_uploader` mediumint(6) unsigned NOT NULL,
  6.   `uri` varchar(128) NOT NULL,
  7.   `separator` char(1) NOT NULL DEFAULT ',' COMMENT 'Char used to separate fields for uploaded CSV files',
  8.   `delimiter` char(6) NOT NULL DEFAULT '"' COMMENT '&#34=" ... &#39='' ... char used to delimit text in uploaded CSV fields',
  9.   `first_data_row` tinyint(1) DEFAULT NULL COMMENT 'Which row has the first content?',
  10.   `partnumber_column` tinyint(2) DEFAULT NULL,
  11.   `quantity_column` tinyint(2) DEFAULT NULL,
  12.   `row_count` smallint(5) unsigned NOT NULL DEFAULT '0',
  13.   `stage_number` tinyint(1) NOT NULL,
  14.   `is_archived` tinyint(1) NOT NULL,
  15.   `notes` varchar(255) DEFAULT NULL,
  16.   `datetime_created` datetime NOT NULL,
  17.   PRIMARY KEY (`id`),
  18.   KEY `company_id` (`company_id`,`contact_id_uploader`),
  19.   KEY `contact_id_requester` (`contact_id_requestor`),
  20.   KEY `stage` (`stage_number`)
  21. ) ENGINE=MyISAM  DEFAULT CHARSET=ucs2 AUTO_INCREMENT=13 ;
  22.  
  23. INSERT INTO `bom_file` (`id`, `company_id`, `contact_id_requestor`, `contact_id_uploader`, `uri`, `separator`, `delimiter`, `first_data_row`, `partnumber_column`, `quantity_column`, `row_count`, `stage_number`, `is_archived`, `notes`, `datetime_created`) VALUES
  24. (11, 2, 1, 0, 'C:\\path\\uploads\\boms\\uploadTester_1333123325.csv', ',', '"', 1, NULL, NULL, 0, 0, 0, NULL, '2012-03-30 16:02:05'),
  25. (12, 0, 0, 0, 'C:\\path\\uploads\\boms\\uploadTester_1333139972.csv', '^', ''', 3, 1, 3, 0, 0, 0, '1', '2012-03-30 20:39:32');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement