-- cmc.quotes definition (matches existing database)

CREATE TABLE `quotes` (
  `created` datetime NOT NULL,
  `modified` datetime NOT NULL,
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `enquiry_id` int(50) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `revision` int(5) NOT NULL COMMENT 'limited at 5 digits. Really, you''re not going to have more revisions of a single quote than that',
  `delivery_time` varchar(400) NOT NULL COMMENT 'estimated delivery time for quote',
  `delivery_time_frame` varchar(100) NOT NULL,
  `payment_terms` varchar(400) NOT NULL,
  `days_valid` int(3) NOT NULL,
  `date_issued` date NOT NULL,
  `valid_until` date NOT NULL,
  `delivery_point` varchar(400) NOT NULL,
  `exchange_rate` varchar(255) NOT NULL,
  `customs_duty` varchar(255) NOT NULL,
  `document_id` int(11) NOT NULL,
  `commercial_comments` text DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=18245 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;