--
-- Host: localhost    Database: reenakak_anurag1
-- ------------------------------------------------------


--
-- Current Database: `reenakak_anurag1`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `reenakak_anurag1` /*!40100 DEFAULT CHARACTER SET latin1 */;

USE `reenakak_anurag1`;

--
-- Table structure for table `baseprofile`
--

CREATE TABLE `baseprofile` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `is_active` enum('1','0') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `baseprofile`
--

INSERT INTO `baseprofile` VALUES (1,'Administrator','1','1260879950','1260879950'),(2,'Sub-Admin','1','1260879950','1260879950'),(3,'Customer','1','1260879950','1260879950');

--
-- Table structure for table `bstock_angadia`
--

CREATE TABLE `bstock_angadia` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `bank_name` varchar(250) NOT NULL,
  `bank_address` text NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `user_id` int(10) NOT NULL COMMENT 'This is the user id of the user who added or edited this record.',
  `created_date` varchar(50) NOT NULL COMMENT 'This is the created date for this record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This is the modified date for this record.',
  `account_name` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_angadia`
--

INSERT INTO `bstock_angadia` VALUES (1,'Amba Hargovind','Mumbai - 400 004','on',0,'','1281952084','Subhash - AH'),(4,'Jayanti Amba','Marol Maroshi\r\nAdheri East\r\nMumbai 400093','on',0,'','1283462205','Subhash - JA'),(8,'MM','MM','on',0,'1290667126','1290667126','Subhash - MM');

--
-- Table structure for table `bstock_angadia_accounts`
--

CREATE TABLE `bstock_angadia_accounts` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `angadia_id` int(10) NOT NULL,
  `account_name` varchar(250) NOT NULL,
  `customer_id` int(10) NOT NULL,
  `vendor_id` int(10) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1 COMMENT='Stores Angadia account names of customers & vendors.';

--
-- Dumping data for table `bstock_angadia_accounts`
--

INSERT INTO `bstock_angadia_accounts` VALUES (1,1,'Vishal',12,0,'on'),(2,1,'lamp',22,0,'on'),(3,1,'Harshad Narvekar',0,3,'on'),(4,1,'Bigg Stock',0,4,'on'),(5,1,'Subhash (AH)',0,0,'on'),(6,1,'Anurag Enterprise (AH)',0,0,'on'),(7,4,'Subhash (Jayanti Amba)',0,0,'on'),(8,4,'Anurag Enterprise (Jayanti Amba)',0,0,'on');

--
-- Table structure for table `bstock_brokers`
--

CREATE TABLE `bstock_brokers` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `broker_name` varchar(255) NOT NULL,
  `first_name` varchar(255) NOT NULL,
  `last_name` varchar(255) NOT NULL,
  `address` varchar(500) NOT NULL,
  `phone1` int(10) NOT NULL,
  `phone2` int(10) NOT NULL,
  `fax` int(10) NOT NULL,
  `reference_name` varchar(255) NOT NULL,
  `reference_no` varchar(50) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_brokers`
--

INSERT INTO `bstock_brokers` VALUES (1,'Shailesh Shah','Shailesh','Shah','PRASAD CHAMBERS, OPERA HOUSE,MUMBAI 400 004',2147483647,28931982,28931983,'Vishal Kothari','9819322550','on',0,1281599801),(2,'Jankibhai','Jankibhai','Shah','Avenue New Link Rd Malad East',2147483647,2147483647,222222222,'','777777777','on',1272312433,1272312433),(4,'Kothari','Ramniklal','Kothari','Opera House',989898,234567,123456,'','0','on',1272312433,1272312433);

--
-- Table structure for table `bstock_countries`
--

CREATE TABLE `bstock_countries` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `country_code` varchar(5) NOT NULL,
  `country_initials` varchar(5) NOT NULL,
  `is_active` enum('1','0') NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=842 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_countries`
--

INSERT INTO `bstock_countries` VALUES (356,'India','IN','IND','1'),(840,'United States','US','USA','1'),(841,'Israel','ISR','IS','1');

--
-- Table structure for table `bstock_currency`
--

CREATE TABLE `bstock_currency` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `name` varchar(250) NOT NULL COMMENT 'Stores the name of the currency.',
  `code` varchar(50) NOT NULL COMMENT 'Code of the currency, like INR, USD, etc.',
  `symbol` varchar(10) NOT NULL COMMENT 'Symbol of the currency.',
  `conversion_rate` varchar(50) NOT NULL COMMENT 'Conversion rate for this currency.',
  `is_active` enum('0','1') NOT NULL COMMENT 'Whether this currency is active or not. If yes, then only it can be used in the application.',
  `display_on_product` enum('0','1') NOT NULL COMMENT 'This field determines whether this  Currency is to be displayed while  Showing the price for a product.',
  `sequence` int(10) NOT NULL COMMENT 'This field will determine the order in which the currency is to be displayed. Lower sequence numbered currency is displayed first.',
  `created_date` varchar(50) NOT NULL COMMENT 'Will store the created date of this currency.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Will store the last modified date of this currency.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COMMENT='Store the currencies that are being used in the system.';

--
-- Dumping data for table `bstock_currency`
--

INSERT INTO `bstock_currency` VALUES (1,'Dollar','1','$','45','1','1',1,'1267005563','1267005563');

--
-- Table structure for table `bstock_customerbilling`
--

CREATE TABLE `bstock_customerbilling` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `customer_id` int(10) NOT NULL COMMENT 'This is the foreign key for the customers & is mapped to primary key of customers table.',
  `order_id` varchar(25) NOT NULL,
  `address1` varchar(250) NOT NULL COMMENT 'Address field of the billing address.',
  `address2` varchar(250) NOT NULL COMMENT 'Address field 2 of the billing address.',
  `city` varchar(250) NOT NULL COMMENT 'City field of billing address.',
  `state_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to the primary key of the states table.',
  `country_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to the primary key of the countries table.',
  `zip_code` varchar(20) NOT NULL COMMENT 'This will contain the zip code.',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  `billing_first_name` varchar(100) NOT NULL,
  `billing_last_name` varchar(100) NOT NULL,
  `bill_office_phone_number` varchar(15) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=226 DEFAULT CHARSET=latin1 COMMENT='Store the shipping address details of the customer.';

--
-- Dumping data for table `bstock_customerbilling`
--

INSERT INTO `bstock_customerbilling` VALUES (1,12,'','3, pradeep niwas 2','midc , cross road no. 232',' ',70,840,'4000932 ','','','vishal 2 ','kothari2','2343243232 2'),(27,12,'4','3, pradeep niwas  ','','mumbai',0,356,'400093','1262157798','1262157798','Vishal','Kothari','28303621'),(26,12,'3','3, pradeep niwas  ','midc , cross road no. 23','mumbai',66,356,'400093','1262111641','1262111641','Vishal','Kothari','28303621'),(25,12,'2','3, pradeep niwas  ','','mumbai',0,841,'400093','1262110311','1262110311','Vishal','Kothari','28303621'),(24,0,'1','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1262110289','1262110289','vishal 2 ','kothari2','2343243232 2'),(178,12,'8','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276258756','1276258756','vishal 2 ','2343243232 2','2343243232 2'),(29,14,'6','10/A, Apsara Building, Road. No. 4','','Mumbai',0,356,'400066','1262180252','1262180252','Vishal','Kothari','9819322550'),(30,14,'7','10/A, Apsara Building, Road. No. 4 ','','Mumbai',0,356,'400066','1262264490','1262264490','Vishal','Kothari','9819322550'),(32,14,'9','10/A, Apsara Building, Road. No. 4   ','','Mumbai',0,356,'400066','1262265725','1262265725','Vishal','Kothari',''),(33,12,'10','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1262265922','1262265922','vishal 2 ','kothari2','2343243232 2'),(34,14,'11','10/A, Apsara Building, Road. No. 4     ','','Mumbai',0,0,'400066','1262266505','1262266505','','',''),(35,14,'12','10/A, Apsara Building, Road. No. 4      ','','Mumbai',0,0,'400066','1262266611','1262266611','','',''),(36,12,'13','3, pradeep niwas  ','','mumbai',5,840,'400093','1262343767','1262343767','Vishal','Kothari','435423543543'),(37,12,'14','3, pradeep niwas   ','','mumbai',12,840,'400093','1262343919','1262343919','Vishal','Kothari',''),(38,12,'15','3, pradeep niwas ','','mumbai',69,356,'400093','1262367422','1262367422','Vishal','Kothari','24323423232'),(42,18,'19',' Back Street','','Mumbai',80,356,'400093','1262631878','1262631878','Swapna','Narvekar','25252525'),(43,18,'20',' ','','',0,0,'','1262632114','1262632114','Swapna','Narvekar','25252525'),(44,19,'21',' asdf','','asdf',83,356,'324','1262693035','1262693035','harshad','narvekar','8989898989'),(59,12,'36','3, pradeep niwas ','','mumbai',0,840,'400093','1262719625','1262719625','Vishal','Kothari',''),(58,12,'35','3, pradeep niwas ','','mumbai',0,840,'400093','1262719518','1262719518','Vishal','Kothari',''),(57,12,'34','3, pradeep niwas ','','mumbai',67,356,'400093','1262717528','1262717528','Vishal','Kothari',''),(56,24,'33',' ','','',0,0,'','1262716822','1262716822','Swap','N','556666677777888'),(55,12,'32','3, pradeep niwas ','','mumbai',80,356,'400093','1262710721','1262710721','Vishal','Kothari','3333333'),(60,0,'37','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1262719701','1262719701','baba','narvekar','564564564564'),(61,12,'38','3, pradeep niwas ','','mumbai',0,840,'400093','1262719744','1262719744','Vishal','Kothari',''),(62,12,'39','3, pradeep niwas ','','mumbai',0,840,'400093','1262719836','1262719836','Vishal','Kothari',''),(63,12,'40','3, pradeep niwas ','','mumbai',81,356,'400093','1262757505','1262757505','Vishal','Kothari','989898989'),(64,12,'41','3, pradeep niwas ','','mumbai',0,840,'400093','1262799020','1262799020','Vishal','Kothari',''),(65,12,'42','3, pradeep niwas ','','mumbai',0,840,'400093','1262799087','1262799087','Vishal','Kothari',''),(66,12,'43','3, pradeep niwas ','','mumbai',0,840,'400093','1262799327','1262799327','Vishal','Kothari',''),(67,12,'44','3, pradeep niwas ','','mumbai',0,840,'400093','1262799450','1262799450','Vishal','Kothari',''),(68,12,'45','3, pradeep niwas ','','mumbai',0,840,'400093','1262799831','1262799831','Vishal','Kothari',''),(69,12,'46','3, pradeep niwas ','','mumbai',0,840,'400093','1262800122','1262800122','Vishal','Kothari',''),(70,12,'47','3, pradeep niwas ','','mumbai',0,840,'400093','1262800379','1262800379','Vishal','Kothari',''),(71,12,'48','3, pradeep niwas ','','mumbai',0,840,'400093','1262800497','1262800497','Vishal','Kothari','2342342323'),(72,12,'49','3, pradeep niwas ','','mumbai',0,840,'400093','1262800908','1262800908','Vishal','Kothari',''),(73,12,'50','3, pradeep niwas ','','mumbai',0,840,'400093','1262801270','1262801270','Vishal','Kothari',''),(74,12,'51','3, pradeep niwas ','','mumbai',0,840,'400093','1262801392','1262801392','Vishal','Kothari',''),(75,12,'52','3, pradeep niwas ','','mumbai',0,840,'400093','1262801452','1262801452','Vishal','Kothari',''),(76,12,'53','3, pradeep niwas ','','mumbai',0,840,'400093','1262801536','1262801536','Vishal','Kothari',''),(77,12,'54','3, pradeep niwas ','','mumbai',0,840,'400093','1262801643','1262801643','Vishal','Kothari',''),(78,12,'55','3, pradeep niwas ','','mumbai',0,840,'400093','1262801863','1262801863','Vishal','Kothari',''),(79,12,'56','3, pradeep niwas ','','mumbai',0,840,'400093','1262802073','1262802073','Vishal','Kothari',''),(80,12,'57','3, pradeep niwas ','','mumbai',0,840,'400093','1262802533','1262802533','Vishal','Kothari',''),(81,12,'58','3, pradeep niwas ','','mumbai',0,840,'400093','1262802776','1262802776','Vishal','Kothari',''),(82,12,'59','3, pradeep niwas ','','mumbai',0,840,'400093','1262803192','1262803192','Vishal','Kothari',''),(83,12,'60','3, pradeep niwas ','','mumbai',0,840,'400093','1262803561','1262803561','Vishal','Kothari',''),(84,12,'61','3, pradeep niwas ','','mumbai',0,840,'400093','1262803720','1262803720','Vishal','Kothari',''),(85,12,'62','3, pradeep niwas ','','mumbai',0,840,'400093','1262803801','1262803801','Vishal','Kothari',''),(86,12,'63','3, pradeep niwas ','','mumbai',0,840,'400093','1262803864','1262803864','Vishal','Kothari',''),(87,12,'64','3, pradeep niwas ','','mumbai',0,840,'400093','1263215539','1263215539','Vishal','Kothari',''),(88,12,'65','3, pradeep niwas ','','mumbai',0,840,'400093','1263216890','1263216890','Vishal','Kothari',''),(89,25,'66','Back street','','Mumbai',80,356,'400093','1263491902','1263491902','Swapna','Narvekar','288888888'),(91,12,'84','3, pradeep niwas','','mumbai',3,840,'400093','1263639823','1263639823','','',''),(92,12,'85','3, pradeep niwas','','mumbai',3,840,'400093','1263643677','1263643677','','',''),(93,12,'86','3, pradeep niwas','','mumbai',3,840,'400093','1263821521','1263821521','','',''),(94,12,'87','3, pradeep niwas ','','mumbai',0,840,'400093','1263904720','1263904720','Vishal','Kothari',''),(95,12,'88','3, pradeep niwas ','','mumbai',0,840,'400093','1263905305','1263905305','Vishal','Kothari',''),(96,12,'89','3, pradeep niwas 1 ','',' ',4,840,'400093 1            ','1264224678','1264224678','Vishal1','K1','2893383011'),(97,12,'90','3, pradeep niwas 1 ','',' ',7,840,'400093 1            ','1264234581','1264234581','Vishal1','K1','2893383011'),(98,12,'91','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264412854','1264412854','Vishal1','K1','2893383011'),(99,12,'92','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264415024','1264415024','Vishal1','K1','2893383011'),(100,12,'93','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264415258','1264415258','Vishal1','K1','2893383011'),(101,12,'94','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264415374','1264415374','Vishal1','K1','2893383011'),(102,12,'95','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264415586','1264415586','Vishal1','K1','2893383011'),(103,12,'96','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264415715','1264415715','Vishal1','K1','2893383011'),(104,12,'97','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264415820','1264415820','Vishal1','K1','2893383011'),(105,12,'98','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264415936','1264415936','Vishal1','K1','2893383011'),(106,12,'99','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264416016','1264416016','Vishal1','K1','2893383011'),(107,12,'100','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264416120','1264416120','Vishal1','K1','2893383011'),(108,12,'101','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264416237','1264416237','Vishal1','K1','2893383011'),(109,12,'102','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264416407','1264416407','Vishal1','K1','2893383011'),(110,12,'103','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264416476','1264416476','Vishal1','K1','2893383011'),(111,12,'104','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264416530','1264416530','Vishal1','K1','2893383011'),(112,12,'105','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1264416614','1264416614','Vishal1','K1','2893383011'),(113,25,'106',' sdfasdf ','','sdfa',83,356,'34312','1264675367','1264675367','Swapna','Narvekar','288888888'),(114,25,'107',' ','','',0,0,'','1264675417','1264675417','Swapna','Narvekar','288888888'),(115,25,'108',' ','','',0,0,'','1264675515','1264675515','Swapna','Narvekar','288888888'),(116,25,'109',' ','','',0,0,'','1264675570','1264675570','Swapna','Narvekar','288888888'),(117,25,'110',' ','','',0,0,'','1264675609','1264675609','Swapna','Narvekar','288888888'),(118,25,'111',' ','','',0,0,'','1264675663','1264675663','Swapna','Narvekar','288888888'),(119,12,'112','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1265031295','1265031295','Vishal1','K1','2893383011'),(120,12,'113','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1265031538','1265031538','Vishal1','K1','2893383011'),(121,12,'114','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1265031671','1265031671','Vishal1','K1','2893383011'),(122,25,'115',' ','','',0,0,'','1265107631','1265107631','Swapna','Narvekar','288888888'),(123,0,'','sdfa','asdf','sdfs',12,360,'4242323','','','asdf','asdf','32423423423'),(124,41,'','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1265135128','1265135128','baba','narvekar','564564564564'),(125,25,'116','','','',0,0,'','1265295719','1265295719','','',''),(126,25,'117',' Back street','','Mumbai',0,840,'400093','1265298600','1265298600','Swapna','Narvekar','288888888'),(127,25,'118','MIDC Cross Road No. 23','','Mumbai',0,840,'400093','1265303985','1265303985','Swapna','Narvekar','288888888'),(128,41,'119','MIDC Cross Rd no 23 ','','mumbai',6,840,'400093','1265651857','1265651857','baba','narvekar','564564564564'),(129,41,'120','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1265651981','1265651981','baba','narvekar','564564564564'),(130,41,'121','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1265652252','1265652252','baba','narvekar','564564564564'),(131,41,'122','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1265652542','1265652542','baba','narvekar','564564564564'),(132,41,'123','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1265652613','1265652613','baba','narvekar','564564564564'),(133,87,'124','','','',0,0,'','1265652952','1265652952','','',''),(134,87,'125','','','',0,0,'','1265652954','1265652954','','',''),(135,41,'126','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1265653003','1265653003','baba','narvekar','564564564564'),(136,25,'127','','','',0,0,'','1265653041','1265653041','','',''),(137,87,'128','','','',0,0,'','1265653232','1265653232','','',''),(138,12,'129','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1265712794','1265712794','Vishal1','K1','2893383011'),(139,25,'130','','','',0,0,'','1265787624','1265787624','','',''),(140,42,'','MIDC Cross Rd No 23','','Mumbai',80,356,'400093','1265798631','1265798631','Swap','N','288888888'),(141,43,'','Ram Mandir Rd','','Mumbai',17,840,'AX1234','1265798970','1265798970','Swaps','P','4400442233333'),(142,44,'','','','',80,356,'400001','1265799163','1265799163','Prikesh','Kothari','9987542459'),(143,45,'','','','',80,356,'400093','1265886480','1265886480','Vishal','Kothari','9819322550'),(144,12,'131','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1266476450','1266476450','Vishal','Kothari','28933830'),(145,12,'132','3, pradeep niwas 2 ','','Mumbai',84,356,'4000932 ','1266477098','1266477098','Vishal','Kothari','28933830'),(146,46,'','','','',80,356,'400004','1266485556','1266485556','jatin','shah','40018900'),(147,46,'133',' ','','',0,356,'400004','1266488192','1266488192','jatin','shah','40018900'),(148,46,'134','','','',80,356,'400004','1266495976','1266495976','jatin','shah','40018900'),(149,46,'135','','','',80,356,'400004','1266496008','1266496008','jatin','shah','40018900'),(150,46,'','andheri','','mumbai',80,356,'400093','1266586514','1266586514','baba','n',''),(151,46,'','andheri','','mumbai',80,356,'400093','1266586674','1266586674','baba','n',''),(152,46,'','andheri','','mumbai',80,356,'400093','1266586894','1266586894','baba','n',''),(153,47,'','andheri','','mumbai',80,356,'400093','1266587039','1266587039','baba','n',''),(154,25,'136','','','',0,0,'','1266593869','1266593869','','',''),(155,25,'137','','','',0,0,'','1266594074','1266594074','','',''),(156,25,'138','','','',0,0,'','1266594797','1266594797','','',''),(157,87,'139','','','',0,0,'','1266594911','1266594911','','',''),(158,87,'140','','','',0,0,'','1266594985','1266594985','','',''),(159,25,'141','','','',0,0,'','1266595012','1266595012','','',''),(160,12,'142','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1266648337','1266648337','Vishal','Kothari','28933830'),(161,48,'','andheri','','mumbai',80,356,'400093','1266668314','1266668314','baba','narvekar',''),(162,12,'143','3, pradeep niwas 2 ','','Mumbai',66,356,'4000932 ','1266668803','1266668803','Vishal','Kothari','28933830'),(163,49,'','borivali','','mumbai',80,356,'400056','1266668844','1266668844','vishal','kothari',''),(164,12,'144','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1266669304','1266669304','Vishal','Kothari','28933830'),(165,12,'145','3, pradeep niwas 2 ','',' ',0,356,'4000932 ','1266669471','1266669471','Vishal','Kothari','28933830'),(166,50,'','andheri','','mumbai',80,356,'400093','1267079041','1267079041','baba','narvekar',''),(167,51,'','Mahakali Road','','Mumbai',80,356,'400093','1267179014','1267179014','Swapna','Narvekar',''),(169,12,'2','3, pradeep niwas 2','',' ',70,356,'4000932 ','1274699151','1274699151','vishal 2 ','kothari2','2343243232 2'),(170,12,'2','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276253913','1276253913','vishal 2 ','2343243232 2','2343243232 2'),(171,12,'2','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276255046','1276255046','vishal 2 ','2343243232 2','2343243232 2'),(172,12,'4','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276256010','1276256010','vishal 2 ','2343243232 2','2343243232 2'),(177,12,'7','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276258670','1276258670','vishal 2 ','2343243232 2','2343243232 2'),(176,12,'6','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276258442','1276258442','vishal 2 ','2343243232 2','2343243232 2'),(175,12,'5','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276256925','1276256925','vishal 2 ','kothari2','2343243232 2'),(179,0,'9','','','',0,0,'','1276259658','1276259658','','',''),(180,12,'10','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276259840','1276259840','vishal 2 ','kothari2','2343243232 2'),(181,12,'11','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276260101','1276260101','vishal 2 ','2343243232 2','2343243232 2'),(182,12,'12','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276264733','1276264733','vishal 2 ','2343243232 2','2343243232 2'),(183,12,'13','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276268556','1276268556','vishal 2 ','2343243232 2','2343243232 2'),(184,0,'14','','','',0,0,'','1276268765','1276268765','','',''),(185,0,'15','','','',0,0,'','1276268868','1276268868','','',''),(186,12,'16','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276269119','1276269119','vishal 2 ','2343243232 2','2343243232 2'),(187,0,'17','','','',0,0,'','1276269851','1276269851','','',''),(188,0,'18','','','',0,0,'','1276269994','1276269994','','',''),(189,0,'19','','','',0,0,'','1276270055','1276270055','','',''),(190,0,'20','','','',0,0,'','1276270147','1276270147','','',''),(191,0,'21','','','',0,0,'','1276270381','1276270381','','',''),(192,0,'22','','','',0,0,'','1276270726','1276270726','','',''),(193,0,'23','','','',0,0,'','1276270811','1276270811','','',''),(194,0,'24','','','',0,0,'','1276271009','1276271009','','',''),(195,0,'25','','','',0,0,'','1276271039','1276271039','','',''),(196,41,'26','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276522281','1276522281','vishal 2 ','kothari2','2343243232 2'),(197,0,'27','','','',0,0,'','1276522985','1276522985','','',''),(198,0,'28','','','',0,0,'','1276523038','1276523038','','',''),(199,0,'29','','','',0,0,'','1276523268','1276523268','','',''),(200,0,'30','','','',0,0,'','1276523353','1276523353','','',''),(201,0,'31','','','',0,0,'','1276523825','1276523825','','',''),(202,0,'32','','','',0,0,'','1276523978','1276523978','','',''),(203,0,'33','','','',0,0,'','1276524038','1276524038','','',''),(204,0,'34','','','',0,0,'','1276524132','1276524132','','',''),(205,0,'35','','','',0,0,'','1276524168','1276524168','','',''),(206,0,'36','','','',0,0,'','1276524306','1276524306','','',''),(207,0,'37','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1276524420','1276524420','baba','narvekar','564564564564'),(208,12,'38','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276582157','1276582157','vishal 2 ','2343243232 2','2343243232 2'),(209,12,'39','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1276586151','1276586151','vishal 2 ','2343243232 2','2343243232 2'),(210,0,'40','','','',0,0,'','1276876364','1276876364','','',''),(211,0,'41','','','',0,0,'','1276876467','1276876467','','',''),(212,0,'42','','','',0,0,'','1276876900','1276876900','','',''),(213,0,'43','','','',0,0,'','1276955065','1276955065','','',''),(214,12,'44','3, pradeep niwas 2','midc , cross road no. 232',' ',70,356,'4000932 ','1277233812','1277233812','vishal 2 ','2343243232 2','2343243232 2'),(215,0,'45','','','',0,0,'','1277976950','1277976950','','',''),(216,0,'46','','','',0,0,'','1277982372','1277982372','','',''),(217,12,'47','3, pradeep niwas 2','midc , cross road no. 232',' ',70,840,'4000932 ','1277986266','1277986266','vishal 2 ','2343243232 2','2343243232 2'),(218,0,'48','','','',0,0,'','1277986481','1277986481','','',''),(219,12,'49','3, pradeep niwas 2','midc , cross road no. 232',' ',70,840,'4000932 ','1277986542','1277986542','vishal 2 ','2343243232 2','2343243232 2'),(220,12,'50','3, pradeep niwas 2','midc , cross road no. 232',' ',70,840,'4000932 ','1280226928','1280226928','vishal 2 ','2343243232 2','2343243232 2'),(221,12,'51','3, pradeep niwas 2','midc , cross road no. 232',' ',70,840,'4000932 ','1282119125','1282119125','vishal 2 ','2343243232 2','2343243232 2'),(222,12,'52','3, pradeep niwas 2','midc , cross road no. 232',' ',70,840,'4000932 ','1283334337','1283334337','vishal 2 ','2343243232 2','2343243232 2'),(223,12,'53','3, pradeep niwas 2','midc , cross road no. 232',' ',70,840,'4000932 ','1283335562','1283335562','vishal 2 ','2343243232 2','2343243232 2'),(224,12,'54','3, pradeep niwas 2','midc , cross road no. 232',' ',70,840,'4000932 ','1283460667','1283460667','vishal 2 ','2343243232 2','2343243232 2'),(225,12,'55','3, pradeep niwas 2','midc , cross road no. 232',' ',70,840,'4000932 ','1283713633','1283713633','vishal 2 ','2343243232 2','2343243232 2');

--
-- Table structure for table `bstock_customerloginhistory`
--

CREATE TABLE `bstock_customerloginhistory` (
  `history_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `customer_id` int(10) NOT NULL COMMENT 'This is the foreign key for the customers & is mapped to primary key of customers table.',
  `customer_ip` varchar(50) NOT NULL COMMENT 'This will store the IP address from which the customer had logged in.',
  `login_time` varchar(50) NOT NULL COMMENT 'THis will store the timestamp when the customer logged in.',
  `logout_time` varchar(50) NOT NULL COMMENT 'This will store the timestamp when the customer logged out.',
  `login_status` enum('0','1') NOT NULL COMMENT 'This field will contain whether  The customer is signed in or signed off.',
  PRIMARY KEY (`history_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the login stats of customers.Entry is recorded everyti';

--
-- Dumping data for table `bstock_customerloginhistory`
--


--
-- Table structure for table `bstock_customers`
--

CREATE TABLE `bstock_customers` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `username` varchar(50) NOT NULL COMMENT 'Username that will be used to login by the customer to the system.',
  `customer_password` varchar(100) NOT NULL COMMENT 'Password of the user stored in MD5 format.',
  `email` varchar(250) NOT NULL COMMENT 'Email address of the customer.',
  `first_name` varchar(100) NOT NULL COMMENT 'First name of the customer.',
  `last_name` varchar(100) NOT NULL COMMENT 'Last name of the customer.',
  `company_name` varchar(250) NOT NULL COMMENT 'Company name of the customer.',
  `office_phone_number` varchar(50) NOT NULL COMMENT 'Office Phone number of the customer.',
  `mobile_number` varchar(50) NOT NULL COMMENT 'This will be the mobile number of the customer.',
  `reference_person_name` varchar(10) NOT NULL COMMENT 'this will store the reference person name',
  `reference_company_name` varchar(10) NOT NULL COMMENT 'this will store the reference person company',
  `last_login` varchar(50) NOT NULL COMMENT 'This will contain the last login date & time of the customer.',
  `is_active` enum('on','off') NOT NULL DEFAULT 'on' COMMENT 'THis will determine whether the customer is currently active or is blocked from using the system.',
  `customerprofiles` enum('User','Customer') NOT NULL DEFAULT 'Customer' COMMENT 'This will be the foreign key from the profiles table & is mapped to the ''profile_id'' primary key.',
  `created_date` varchar(50) NOT NULL COMMENT 'This field will contain the created date for this customer record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This field will contain the last modified date for this customer record.',
  `usertype` set('User','Customer') NOT NULL DEFAULT 'Customer',
  `approved` enum('Yes','No') NOT NULL DEFAULT 'Yes',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COMMENT='Store details of customers. They are not system users.';

--
-- Dumping data for table `bstock_customers`
--

INSERT INTO `bstock_customers` VALUES (1,'Manju didi','','manju@anurag.com','Manju didi','','Manju','28282828','888888888','','','','on','Customer','1285734560','1285734560','Customer','Yes'),(2,'Chotu','','chotu@anurag.com','Chotu','','Chotu Dangal','28282828','8888899999','','','','on','Customer','1285734589','1285734589','Customer','Yes'),(3,'vishal','','vishal@biggventures.com','Vishal','Kothari','Bigg Ventures','28204444','9819322550','','','','on','Customer','1290666955','1290666955','Customer','Yes');

--
-- Table structure for table `bstock_customershipping`
--

CREATE TABLE `bstock_customershipping` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `customer_id` int(10) NOT NULL COMMENT 'This is the foreign key for the customers & is mapped to primary key of customers table.',
  `order_id` varchar(25) NOT NULL,
  `address1` varchar(250) NOT NULL COMMENT 'Address field of the shipping address.',
  `address2` varchar(250) NOT NULL COMMENT 'Address field 2 of the shipping address.',
  `city` varchar(250) NOT NULL COMMENT 'City field of shipping address.',
  `state_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to the primary key of the states table.',
  `country_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to the primary key of the countries table.',
  `zip_code` varchar(20) NOT NULL COMMENT 'This will contain the zip code.',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  `shipping_first_name` varchar(100) NOT NULL,
  `shipping_last_name` varchar(100) NOT NULL,
  `ship_office_phone_number` varchar(15) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=228 DEFAULT CHARSET=latin1 COMMENT='Store the shipping address details of the customer.';

--
-- Dumping data for table `bstock_customershipping`
--

INSERT INTO `bstock_customershipping` VALUES (1,12,'','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','','','vishal1 ','kothari1','32423423231'),(25,12,'4','3, pradeep niwas (Shipping)  ','','mumbai',0,840,'400093','1262157798','1262157798','Vishal','Kothari','28303621'),(23,12,'2','3, pradeep niwas (Shipping)  ','','mumbai',0,356,'400093','1262110311','1262110311','Vishal','Kothari','28303621'),(24,12,'3','3, pradeep niwas (Shipping)  ','midc , cross road no. 23','mumbai',67,356,'400093','1262111641','1262111641','Vishal','Kothari','28303621'),(22,0,'1','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1262110289','1262110289','vishal1 ','kothari1','32423423231'),(181,0,'9','','','',0,0,'','1276259658','1276259658','','',''),(27,14,'6','10/A, Apsara Building, Road. No. 4','','Houston',0,840,'12345','1262180252','1262180252','Vishal','Kothari','Texas'),(28,14,'7','10/A, Apsara Building, Road. No. 4 ','','Houston',80,840,'12345','1262264490','1262264490','Vishal','Kothari','1234512345'),(30,14,'9','10/A, Apsara Building, Road. No. 4   ','','Houston',67,356,'12345','1262265725','1262265725','Vishal','Kothari',''),(31,12,'10','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1262265922','1262265922','vishal1 ','kothari1','32423423231'),(32,14,'11','10/A, Apsara Building, Road. No. 4     ','','Houston',0,0,'12345','1262266505','1262266505','','',''),(33,14,'12','10/A, Apsara Building, Road. No. 4      ','','Houston',0,0,'12345','1262266611','1262266611','','',''),(34,12,'13','3, pradeep niwas (Shipping)  ','','mumbai',0,840,'400093','1262343767','1262343767','Vishal','Kothari','23423423'),(35,12,'14','3, pradeep niwas (Shipping)   ','','mumbai',0,356,'400093','1262343919','1262343919','Vishal','Kothari',''),(36,12,'15','3, pradeep niwas (Shipping) ','','mumbai',19,840,'400093','1262367422','1262367422','Vishal','Kothari','23423234234'),(40,18,'19','  Back Street','','Mumbai',80,356,'400093','1262631878','1262631878','Swapna','Narvekar','25252525'),(59,12,'38','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262719744','1262719744','Vishal','Kothari',''),(58,0,'37','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1262719701','1262719701','baba','narvekar','564564564564'),(57,12,'36','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262719625','1262719625','Vishal','Kothari',''),(56,12,'35','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262719518','1262719518','Vishal','Kothari',''),(55,12,'34','3, pradeep niwas (Shipping) ','','mumbai',4,840,'400093','1262717528','1262717528','Vishal','Kothari',''),(54,24,'33',' ','','',0,0,'','1262716822','1262716822','Swap','N','556666677777888'),(53,12,'32','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262710721','1262710721','Vishal','Kothari',''),(60,12,'39','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262719836','1262719836','Vishal','Kothari',''),(61,12,'40','3, pradeep niwas (Shipping) ','','mumbai',20,840,'400093','1262757505','1262757505','Vishal','Kothari','09998989898'),(62,12,'41','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262799020','1262799020','Vishal','Kothari',''),(63,12,'42','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262799087','1262799087','Vishal','Kothari',''),(64,12,'43','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262799327','1262799327','Vishal','Kothari',''),(65,12,'44','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262799450','1262799450','Vishal','Kothari',''),(66,12,'45','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262799831','1262799831','Vishal','Kothari',''),(67,12,'46','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262800122','1262800122','Vishal','Kothari',''),(68,12,'47','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262800379','1262800379','Vishal','Kothari',''),(69,12,'48','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262800497','1262800497','Vishal','Kothari','234234242323'),(70,12,'49','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262800908','1262800908','Vishal','Kothari',''),(71,12,'50','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262801270','1262801270','Vishal','Kothari',''),(72,12,'51','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262801392','1262801392','Vishal','Kothari',''),(73,12,'52','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262801452','1262801452','Vishal','Kothari',''),(74,12,'53','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262801536','1262801536','Vishal','Kothari',''),(75,12,'54','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262801643','1262801643','Vishal','Kothari',''),(76,12,'55','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262801863','1262801863','Vishal','Kothari',''),(77,12,'56','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262802073','1262802073','Vishal','Kothari',''),(78,12,'57','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262802533','1262802533','Vishal','Kothari',''),(79,12,'58','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262802776','1262802776','Vishal','Kothari',''),(80,12,'59','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262803192','1262803192','Vishal','Kothari',''),(81,12,'60','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262803561','1262803561','Vishal','Kothari',''),(82,12,'61','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262803720','1262803720','Vishal','Kothari',''),(83,12,'62','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262803801','1262803801','Vishal','Kothari',''),(84,12,'63','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1262803864','1262803864','Vishal','Kothari',''),(85,12,'64','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1263215539','1263215539','Vishal','Kothari',''),(86,12,'65','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1263216890','1263216890','Baba','Baba',''),(87,25,'66','Back street','','NY',12,840,'AHK402','1263491902','1263491902','Swapna','Narvekar','288888888'),(88,25,'67',' ','','',0,0,'','1263495012','1263495012','Swapna','Narvekar','288888888'),(89,12,'81','3, pradeep niwas (Shipping)','','mumbai',68,356,'400093','1263639344','1263639344','','',''),(90,12,'82','3, pradeep niwas (Shipping)','','mumbai',68,356,'400093','1263639524','1263639524','','',''),(91,12,'83','3, pradeep niwas (Shipping)','','mumbai',68,356,'400093','1263639564','1263639564','','',''),(92,12,'84','3, pradeep niwas (Shipping)','','mumbai',68,356,'400093','1263639823','1263639823','','',''),(93,12,'85','3, pradeep niwas (Shipping)','','mumbai',68,356,'400093','1263643677','1263643677','','',''),(94,12,'86','3, pradeep niwas (Shipping)','','mumbai',68,356,'400093','1263821521','1263821521','','',''),(95,12,'87','3, pradeep niwas (Shipping) ','','mumbai',0,840,'400093','1263904720','1263904720','Vishal','Kothari',''),(96,12,'88','3, pradeep niwas (Shipping) ','','mumbai',0,356,'400093','1263905305','1263905305','Vishal','Kothari',''),(97,12,'89','3, pradeep niwas (Shipping) ','','mumbai',71,356,'400093','1264224678','1264224678','Vishal1','K1','2893383011'),(98,12,'90','3, pradeep niwas (Shipping) ','','mumbai',68,356,'400093','1264234581','1264234581','Vishal1','K1','2893383011'),(99,12,'91','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264412854','1264412854','Vishal1','K1','2893383011'),(100,12,'92','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264415024','1264415024','Vishal1','K1','2893383011'),(101,12,'93','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264415258','1264415258','Vishal1','K1','2893383011'),(102,12,'94','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264415374','1264415374','Vishal1','K1','2893383011'),(103,12,'95','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264415586','1264415586','Vishal1','K1','2893383011'),(104,12,'96','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264415715','1264415715','Vishal1','K1','2893383011'),(105,12,'97','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264415820','1264415820','Vishal1','K1','2893383011'),(106,12,'98','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264415936','1264415936','Vishal1','K1','2893383011'),(107,12,'99','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264416016','1264416016','Vishal1','K1','2893383011'),(108,12,'100','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264416120','1264416120','Vishal1','K1','2893383011'),(109,12,'101','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264416237','1264416237','Vishal1','K1','2893383011'),(110,12,'102','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264416407','1264416407','Vishal1','K1','2893383011'),(111,12,'103','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264416476','1264416476','Vishal1','K1','2893383011'),(112,12,'104','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264416530','1264416530','Vishal1','K1','2893383011'),(113,12,'105','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1264416614','1264416614','Vishal1','K1','2893383011'),(114,25,'106',' asdfasd','','sdfasd',20,840,'3242','1264675367','1264675367','Swapna','Narvekar','288888888'),(115,25,'107',' ','','',0,0,'','1264675417','1264675417','Swapna','Narvekar','288888888'),(116,25,'108',' ','','',0,0,'','1264675515','1264675515','Swapna','Narvekar','288888888'),(117,25,'109',' ','','',0,0,'','1264675570','1264675570','Swapna','Narvekar','288888888'),(118,25,'110',' ','','',0,0,'','1264675609','1264675609','Swapna','Narvekar','288888888'),(119,25,'111',' ','','',0,0,'','1264675663','1264675663','Swapna','Narvekar','288888888'),(120,12,'112','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1265031295','1265031295','Vishal1','K1','2893383011'),(121,12,'113','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1265031538','1265031538','Vishal1','K1','2893383011'),(122,12,'114','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1265031671','1265031671','Vishal1','K1','2893383011'),(123,25,'115',' ','','',0,0,'','1265107631','1265107631','Swapna','Narvekar','288888888'),(124,41,'','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1265135128','1265135128','baba','narvekar','564564564564'),(125,25,'116','','','',0,0,'','1265295719','1265295719','','',''),(126,25,'117',' ','','',0,0,'','1265298600','1265298600','Swapna','Narvekar','288888888'),(127,25,'118',' MIDC Cross Road No. 23','','Mumbai',0,356,'40093','1265303985','1265303985','Swapna','Narvekar','288888888'),(128,41,'119','MIDC Cross Rd no 23 ','','mumbai',0,840,'400093','1265651857','1265651857','baba','narvekar','564564564564'),(129,41,'120','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1265651981','1265651981','','','564564564564'),(130,41,'121','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1265652252','1265652252','','','564564564564'),(131,41,'122','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1265652542','1265652542','','','564564564564'),(132,41,'123','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1265652613','1265652613','','','564564564564'),(133,87,'124','','','',0,0,'','1265652952','1265652952','','',''),(134,87,'125','','','',0,0,'','1265652954','1265652954','','',''),(135,41,'126','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1265653003','1265653003','baba','narvekar','564564564564'),(136,25,'127','','','',0,0,'','1265653041','1265653041','','',''),(137,87,'128','','','',0,0,'','1265653232','1265653232','','',''),(138,12,'129','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1265712794','1265712794','Vishal1','K1','2893383011'),(139,25,'130','','','',0,0,'','1265787624','1265787624','','',''),(140,42,'','MIDC Cross Rd No 23','','Mumbai',80,356,'400093','1265798631','1265798631','Swap','N','288888888'),(141,43,'','Ram Mandir Rd','','Mumbai',17,840,'AX1234','1265798970','1265798970','Swaps','P','4400442233333'),(142,44,'','','','',80,356,'400001','1265799163','1265799163','Prikesh','Kothari','9987542459'),(143,45,'','','','',80,356,'400093','1265886480','1265886480','Vishal','Kothari','9819322550'),(144,12,'131','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1266476450','1266476450','Vishal','Kothari','28933830'),(145,12,'132','3, pradeep niwas (Shipping1)1 ','','Mumbai',0,356,'4000931 ','1266477098','1266477098','Vishal','Kothari','28933830'),(146,46,'','','','',80,356,'400004','1266485556','1266485556','jatin','shah','40018900'),(147,46,'133',' ','','',0,356,'400004','1266488192','1266488192','jatin','shah','40018900'),(148,46,'134','','','',80,356,'400004','1266495976','1266495976','','','40018900'),(149,46,'135','','','',80,356,'400004','1266496008','1266496008','','','40018900'),(150,46,'','andheri','','mumbai',80,356,'400093','1266586514','1266586514','baba','n',''),(151,46,'','andheri','','mumbai',80,356,'400093','1266586674','1266586674','baba','n',''),(152,46,'','andheri','','mumbai',80,356,'400093','1266586894','1266586894','baba','n',''),(153,47,'','andheri','','mumbai',80,356,'400093','1266587039','1266587039','baba','n',''),(154,25,'136','','','',0,0,'','1266593869','1266593869','','',''),(155,25,'137','','','',0,0,'','1266594074','1266594074','','',''),(156,25,'138','','','',0,0,'','1266594797','1266594797','','',''),(157,87,'139','','','',0,0,'','1266594911','1266594911','','',''),(158,87,'140','','','',0,0,'','1266594985','1266594985','','',''),(159,25,'141','','','',0,0,'','1266595012','1266595012','','',''),(160,12,'142','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1266648337','1266648337','Vishal','Kothari','28933830'),(161,48,'','andheri','','mumbai',80,356,'400093','1266668314','1266668314','baba','narvekar',''),(162,12,'143','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1266668803','1266668803','Vishal','Kothari','28933830'),(163,49,'','borivali','','mumbai',80,356,'400056','1266668844','1266668844','vishal','kothari',''),(164,12,'144','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1266669304','1266669304','Vishal','Kothari','28933830'),(165,12,'145','3, pradeep niwas (Shipping1)1 ','',' ',0,840,'4000931 ','1266669471','1266669471','Vishal','Kothari','28933830'),(166,50,'','andheri','','mumbai',80,356,'400093','1267079041','1267079041','baba','narvekar',''),(167,51,'','Mahakali Road','','Mumbai',80,356,'400093','1267179014','1267179014','Swapna','Narvekar',''),(169,12,'2','3, pradeep niwas (Shipping1)1','',' ',3,840,'4000931 ','1274699151','1274699151','','','32423423231'),(170,1,'1','3, pradeep niwas (Shipping1)','midc cross road,','mumbai',2,340,'400094','1267005563','1267005563','Vishal1','K1','2830362'),(171,12,'2','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276253913','1276253913','vishal1 ','32423423231','32423423231'),(172,12,'2','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276255046','1276255046','vishal1 ','32423423231','32423423231'),(173,12,'4','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276256010','1276256010','vishal1 ','32423423231','32423423231'),(180,12,'8','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276258756','1276258756','vishal1 ','32423423231','32423423231'),(179,12,'7','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276258670','1276258670','vishal1 ','32423423231','32423423231'),(178,12,'6','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276258442','1276258442','vishal1 ','32423423231','32423423231'),(177,12,'5','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276256925','1276256925','vishal1 ','kothari1','32423423231'),(182,12,'10','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276259840','1276259840','vishal1 ','kothari1','32423423231'),(183,12,'11','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276260101','1276260101','vishal1 ','32423423231','32423423231'),(184,12,'12','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276264733','1276264733','vishal1 ','32423423231','32423423231'),(185,12,'13','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276268556','1276268556','vishal1 ','32423423231','32423423231'),(186,0,'14','','','',0,0,'','1276268765','1276268765','','',''),(187,0,'15','','','',0,0,'','1276268868','1276268868','','',''),(188,12,'16','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276269119','1276269119','vishal1 ','32423423231','32423423231'),(189,0,'17','','','',0,0,'','1276269851','1276269851','','',''),(190,0,'18','','','',0,0,'','1276269994','1276269994','','',''),(191,0,'19','','','',0,0,'','1276270055','1276270055','','',''),(192,0,'20','','','',0,0,'','1276270147','1276270147','','',''),(193,0,'21','','','',0,0,'','1276270381','1276270381','','',''),(194,0,'22','','','',0,0,'','1276270726','1276270726','','',''),(195,0,'23','','','',0,0,'','1276270811','1276270811','','',''),(196,0,'24','','','',0,0,'','1276271009','1276271009','','',''),(197,0,'25','','','',0,0,'','1276271039','1276271039','','',''),(198,41,'26','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276522281','1276522281','vishal1 ','kothari1','32423423231'),(199,0,'27','','','',0,0,'','1276522985','1276522985','','',''),(200,0,'28','','','',0,0,'','1276523038','1276523038','','',''),(201,0,'29','','','',0,0,'','1276523268','1276523268','','',''),(202,0,'30','','','',0,0,'','1276523353','1276523353','','',''),(203,0,'31','','','',0,0,'','1276523825','1276523825','','',''),(204,0,'32','','','',0,0,'','1276523978','1276523978','','',''),(205,0,'33','','','',0,0,'','1276524038','1276524038','','',''),(206,0,'34','','','',0,0,'','1276524132','1276524132','','',''),(207,0,'35','','','',0,0,'','1276524168','1276524168','','',''),(208,0,'36','','','',0,0,'','1276524306','1276524306','','',''),(209,0,'37','MIDC Cross Rd no 23','','mumbai',80,356,'400093','1276524420','1276524420','baba','narvekar','564564564564'),(210,12,'38','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276582157','1276582157','vishal1 ','32423423231','32423423231'),(211,12,'39','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1276586151','1276586151','vishal1 ','32423423231','32423423231'),(212,0,'40','','','',0,0,'','1276876364','1276876364','','',''),(213,0,'41','','','',0,0,'','1276876467','1276876467','','',''),(214,0,'42','','','',0,0,'','1276876900','1276876900','','',''),(215,0,'43','','','',0,0,'','1276955065','1276955065','','',''),(216,12,'44','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1277233812','1277233812','vishal1 ','32423423231','32423423231'),(217,0,'45','','','',0,0,'','1277976950','1277976950','','',''),(218,0,'46','','','',0,0,'','1277982372','1277982372','','',''),(219,12,'47','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1277986266','1277986266','vishal1 ','32423423231','32423423231'),(220,0,'48','','','',0,0,'','1277986481','1277986481','','',''),(221,12,'49','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1277986542','1277986542','vishal1 ','32423423231','32423423231'),(222,12,'50','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1280226928','1280226928','vishal1 ','32423423231','32423423231'),(223,12,'51','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1282119125','1282119125','vishal1 ','32423423231','32423423231'),(224,12,'52','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1283334337','1283334337','vishal1 ','32423423231','32423423231'),(225,12,'53','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1283335562','1283335562','vishal1 ','32423423231','32423423231'),(226,12,'54','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1283460667','1283460667','vishal1 ','32423423231','32423423231'),(227,12,'55','3, pradeep niwas (Shipping1)1','midc , cross road no. 231',' ',3,840,'4000931 ','1283713633','1283713633','vishal1 ','32423423231','32423423231');

--
-- Table structure for table `bstock_customnumbers`
--

CREATE TABLE `bstock_customnumbers` (
  `custom_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `module_id` int(10) NOT NULL COMMENT 'This is the foreign key for the modules & is mapped to primary key of modules table.',
  `increment_number` int(10) NOT NULL COMMENT 'This will be the number from which to start the numbering for specific modules.',
  `prefix` varchar(10) NOT NULL COMMENT 'This will be the prefix that will be attached before the ''increment_number'' field.',
  `is_active` enum('0','1') NOT NULL COMMENT 'This will determine whether this record is to be used for custom numbering or not.',
  `created_date` varchar(50) NOT NULL COMMENT 'This field will contain the created date for this record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This field will contain the last modified date for this record.',
  PRIMARY KEY (`custom_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='For Invoice & Order No. field if we want to set an auto-inc ';

--
-- Dumping data for table `bstock_customnumbers`
--


--
-- Table structure for table `bstock_exporters`
--

CREATE TABLE `bstock_exporters` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This will be the primary key.',
  `exporter_name` varchar(250) NOT NULL,
  `address` text NOT NULL,
  `phone1` varchar(50) NOT NULL,
  `phone2` varchar(50) NOT NULL,
  `fax` varchar(50) NOT NULL,
  `reference_no` varchar(50) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(50) NOT NULL COMMENT 'This is the created date for this record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This is the modified date for this record.',
  `iec_no` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1 COMMENT='Stores exporter related information like Name, Address, etc.';

--
-- Dumping data for table `bstock_exporters`
--

INSERT INTO `bstock_exporters` VALUES (1,'Vishal & Co.','Seepz, Andheri.','1234567','9999999','1111111','2222222','on','','1263212323',''),(2,'Harshad & Co.','PRASAD CHAMBERS,\r\nOPERA HOUSE,MUMBAI 400 004','2224512','1253412','12355312','','on','','1212356342','0388256202'),(3,'Narvekars','Avenue\r\nNew Link Rd\r\nMalad East','77772222243','2222333344','989899999','Website','off','1265801481','1265801481','EIC234111');

--
-- Table structure for table `bstock_fields`
--

CREATE TABLE `bstock_fields` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(100) NOT NULL COMMENT 'This will be the label displayed while displaying the form.',
  `type` varchar(100) NOT NULL COMMENT 'This will be the type of the field, like text, select box, radio button, etc.',
  `column_name` varchar(50) NOT NULL COMMENT 'This will be the name of the field in the table where this field is being used.',
  `maxlength` int(50) NOT NULL COMMENT 'This will contain the number of characters that will be allowed in this field.',
  `name` varchar(50) NOT NULL COMMENT 'This will contain the name of field in the HTML form that is displayed, i.e. the value contained in the ''name'' attribute of the field''s tag.',
  `value` varchar(2000) NOT NULL,
  `sequence` int(5) NOT NULL COMMENT 'This will be the order of the fields for the module. Lower the sequence, that field will be displayed first.',
  `readonly` enum('on','off') NOT NULL COMMENT 'This will determine if this field is to be kept ''readonly''.',
  `presence` enum('on','off') NOT NULL COMMENT 'This means whether the field will  Be present by default on the form  Or not. This will be useful when we  Assign the rights to add / remove  Fields to a sub-admin.',
  `mandatory` enum('on','off') NOT NULL COMMENT 'Mandatory or not mandatory. This  Will be applicable only while  Adding / editing a field. It will only  Check for NOT NULL for that field.',
  `is_active` enum('on','off') NOT NULL DEFAULT 'on' COMMENT 'Active or Deactivated. If deactivated,  It won''t be displayed anywhere.',
  `table_name` varchar(100) NOT NULL COMMENT 'The table to which this field belongs.',
  `user_id` int(10) NOT NULL COMMENT 'The ID of the user who has added  this field.',
  `created_date` varchar(50) NOT NULL COMMENT 'Timestamp when this field was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Timestamp when this field was last modified.',
  `generatedtype` int(19) NOT NULL DEFAULT '0',
  `is_range` int(5) NOT NULL DEFAULT '0',
  `required_msg` varchar(300) NOT NULL,
  `test_field` enum('1','2') NOT NULL,
  `minlength` varchar(10) NOT NULL,
  `validation_type` enum('_AGE_','_NUMBER_','_ALPHA_','_ALPHANUM_','_AGE_','_NUMBER_','_CVVNUMBER_','_CREADITCARDNUMBER_','_USERNAME_','_NAME_','_FIRSTNAME_','_MIDDLENAME_','_LASTNAME_','_TITLE_','_POSITION_','_DESIGNATION_','_MOBILE_','_FAX_','_USPHONE_','_ZIP_','_USZIP_','_UKZIP_','_SSN_','_CURRENCY_','_EMAIL_','_URL_','_IP_','_REGION_','_PRODUCTTITLE_','_COMPANYNAME_','_CATEGORYNAME_','_BLOGTITLE_','_BLOGNAME_','_CITY_','_STATE_','_COUNTRY_','_DATE_') NOT NULL,
  `validation_error_msg` varchar(250) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=219 DEFAULT CHARSET=latin1 COMMENT='This table will store all the custom fields for the modules.';

--
-- Dumping data for table `bstock_fields`
--

INSERT INTO `bstock_fields` VALUES (111,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',13,'on','on','on','on','bstock_products',0,'1261224788','1261224788',0,1,'Is Active is mandatory.','1','','',''),(110,'Location','option','location',0,'location','\'All\',\'Antwerp\',\'Hong Kong\',\'Mumbai\',\'New York\'',10,'on','on','on','on','bstock_products',0,'1261224120','1261224120',0,0,'','1','','',''),(8,'Profile Name','text','profile_name',200,'profile_name','',1,'','on','on','on','bstock_userprofiles',1,'','',1,0,'','','','',''),(9,'Description','textarea','description',255,'description','',2,'','on','on','on','bstock_userprofiles',1,'','',1,0,'','','','',''),(11,'Username','text','username',100,'username','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(12,'Password','password','customer_password',100,'customer_password','',0,'','on','on','off','bstock_customers',1,'','',0,0,'','','','',''),(13,'Email','text','email',255,'email','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(14,'First  name','text','first_name',150,'first_name','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(15,'Last name','text','last_name',150,'last_name','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(16,'company name','text','company_name',150,'company_name','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(17,'Office phone number','text','office_phone_number',11,'office_phone_number','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(18,'Mobile number','text','mobile_number',12,'mobile_number','',0,'','on','','on','bstock_customers',1,'','',0,0,'','','','',''),(19,'is_active','radio','is_active',5,'is_active','\'on\',\'off\'',0,'','on','on','off','bstock_customers',1,'','',0,1,'','','','',''),(20,'User profile','option','customerprofiles',50,'customerprofiles','\'User\',\'Customer\'',0,'','on','on','off','bstock_customers',1,'','',0,0,'','','','',''),(21,'label','text','label',200,'label','',1,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(22,'Type','option','type',200,'type','',2,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(23,'Column name','text','column_name',200,'column_name','',2,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(24,'Max Length','text','maxlength',100,'maxlength','100',4,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(25,'name','text','name',200,'name','',5,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(26,'value','text','value',500,'value','',6,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(27,'sequence','text','sequence',100,'sequence','',7,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(28,'Read Only','radio','readonly',100,'readonly','',8,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(29,'Presence','radio','presence',100,'presence','',9,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(30,'mandatory','radio','mandatory',100,'mandatory','',10,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(31,'Is Active','radio','is_active',100,'is_active','',11,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(32,'Table Name','text','table_name',100,'table_name','',12,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(33,'generated type','text','generatedtype',100,'generatedtype','',13,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(34,'Is Range','text','is_range',100,'is_range','',14,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(35,'order no','text','order_id',100,'order_id','',7,'','on','on','on','bstock_orders',1,'','',0,0,'','','','',''),(36,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761129',1,0,'','','','',''),(37,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761328',1,0,'','','','',''),(38,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761328',1,0,'','','','',''),(39,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761590',1,0,'','','','',''),(40,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761703',1,0,'','','','',''),(41,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761757',1,0,'','','','',''),(42,'Required Msg.','text','required_msg',300,'required_msg','',15,'','on','on','on','bstock_fields',0,'1259848625','1259848625',0,0,'','','','',''),(118,'Color','option','color',0,'color','\'D\',\'E\',\'F\',\'G\',\'H\',\'I\',\'J\',\'K\',\'L\',\'M\',\'N\',\'O\',\'P\',\'Q\',\'R\'',2,'on','on','on','on','bstock_products',0,'1261227132','1261227132',0,1,'','1','','',''),(117,'Clarity','option','clarity',0,'clarity','\'IF\',\'VVS1\',\'VVS2\',\'VS1\',\'VS2\',\'SI1\',\'SI2\',\'I1\',\'I2\',\'I3\'',3,'on','on','on','on','bstock_products',0,'1261227023','1261227023',0,1,'','1','','',''),(116,'Cut','option','cut',0,'cut','\'Excellent\',\'Very Good\',\'Good\',\'Fair\'',5,'on','on','on','on','bstock_products',0,'1261226805','1261226805',0,1,'','1','','',''),(115,'Polish','option','polish',0,'polish','\'Excellent\',\'Very Good\',\'Good\',\'Fair\'',6,'on','on','on','on','bstock_products',0,'1261226062','1261226062',0,1,'','1','','',''),(114,'Symmetry','option','symmetry',0,'symmetry','\'Excellent\',\'Very Good\',\'Good\',\'Fair\'',7,'on','on','on','on','bstock_products',0,'1261225818','1261225818',0,1,'','1','','',''),(89,'Min Length','text','minlength',10,'minlength','',5,'on','on','on','on','bstock_fields',0,'1260185265','1260185265',0,0,'','','','',''),(113,'Lab','option','lab',0,'lab','\'All Labs\',\'GIA\',\'IGI\',\'HRD\',\'AGS\',\'EGL\',\'IGC\'',8,'on','on','on','on','bstock_products',0,'1261225488','1261225488',0,0,'','1','','',''),(112,'Flourescence','option','flourescence',0,'flourescence','\'None\',\'Faint\',\'Medium\',\'Strong\',\'Very Strong\'',9,'on','on','on','on','bstock_products',0,'1261225411','1261225411',0,1,'','1','','',''),(91,'Validation Type','option','validation_type',0,'validation_type','\"_AGE_\", \"_NUMBER_\", \"_ALPHA_\",\"_ALPHANUM_\",\"_AGE_\",\"_NUMBER_\",\"_CVVNUMBER_\",\"_CREADITCARDNUMBER_\",\"_USERNAME_\",\"_NAME_\",\"_FIRSTNAME_\",\"_MIDDLENAME_\",\"_LASTNAME_\",\"_TITLE_\",\"_POSITION_\",\"_DESIGNATION_\",\"_MOBILE_\",\"_FAX_\",\"_USPHONE_\",\"_ZIP_\",\"_USZIP_\",\"_UKZIP_\",\"_SSN_\",\"_CURRENCY_\",\"_EMAIL_\",\"_URL_\",\"_IP_\",\"_REGION_\",\"_PRODUCTTITLE_\",\"_COMPANYNAME_\",\"_CATEGORYNAME_\",\"_BLOGTITLE_\",\"_BLOGNAME_\",\"_CITY_\",\"_STATE_\",\"_COUNTRY_\",\"_DATE_\"',0,'on','on','on','on','bstock_fields',0,'1260186186','1260186186',0,0,'','','','',''),(93,'Validation error msg.','text','validation_error_msg',250,'validation_error_msg','',0,'on','on','on','off','bstock_fields',0,'1260190273','1260190273',0,0,'','','10','',''),(109,'Size','text','size',25,'size','',4,'on','on','on','on','bstock_products',0,'1261221977','1261221977',0,1,'Please enter Size.','1','','',''),(101,'User Type','checkbox','usertype',0,'usertype','\'User\',\'Customer\'',0,'on','on','on','off','bstock_customers',1,'1260792520','1260792520',0,1,'Type is mandatory.','1','','',''),(102,'Base Profile','option','baseprofile',0,'baseprofile','\'Administrator\',\'Sub-Admin\',\'Customer\'',3,'on','on','on','on','bstock_userprofiles',1,'1260879950','1260879950',1,0,'','1','','_AGE_',''),(103,'basepro','checkbox','basepro',0,'basepro','\'Administrator\',\'Sub-Admin\',\'Customer\'',0,'on','on','on','on','bstock_userprofiles',0,'','1260882082',0,2,'','1','','_AGE_',''),(108,'Shape','option','shape',0,'shape','\'None\',\'Round\',\'Princess\',\'Pear\',\'Marquise\',\'Emerald\',\'Heart\',\'Oval\',\'Cushion\',\'Triangle\'',1,'on','on','on','on','bstock_products',0,'1261221691','1261221691',0,0,'Please select Shape.','1','','',''),(107,'Lot No.','text','stoneid',50,'stoneid','',11,'on','on','on','on','bstock_products',0,'1261220658','1261220658',0,0,'Please enter Stone Id.','1','','',''),(119,'Certificate','file','certificate',1,'certificate','\'pdf\',\'doc\'',11,'on','on','on','on','bstock_products',0,'1261391939','1261391939',0,0,'','1','','',''),(120,'Weight','text','weight',100,'weight','',14,'off','on','on','on','bstock_products',0,'','1261551202',0,1,'Please enter Weight','1','','_AGE_',''),(121,'RAP Price ($)','text','price',100,'price','0',15,'on','on','on','on','bstock_products',0,'','1261658120',0,1,'The price field is required!','1','','_AGE_',''),(123,'Customer First Name','text','customer_first_name',100,'customer_first_name','',0,'on','on','on','on','bstock_orders',0,'1262179288','1262179288',0,0,'','1','','_FIRSTNAME_',''),(124,'Customer Last Name','text','customer_last_name',0,'customer_last_name','',0,'on','on','on','on','bstock_orders',0,'1262254685','1262254685',0,0,'','1','','_LASTNAME_',''),(126,'Total Amount','text','total_amount',0,'total_amount','',0,'on','on','on','on','bstock_orders',0,'1262254860','1262254860',0,0,'','1','','_NUMBER_',''),(127,'extra_comments','textarea','extra_comments',0,'extra_comments','',0,'on','on','on','on','bstock_orders',0,'1262255168','1262255168',0,0,'','1','','',''),(128,'Status','text','status_id',0,'status_id','',0,'on','on','on','on','bstock_orders',0,'1262256696','1262256696',0,0,'','1','','',''),(129,'Created Date','text','created_date',0,'created_date','',0,'on','on','on','on','bstock_orders',0,'1262259238','1262259238',0,0,'','1','','',''),(130,'Modified Date','text','modified_date',0,'modified_date','',0,'on','on','on','on','bstock_orders',0,'1262259264','1262259264',0,0,'','1','','',''),(146,'Carrier','option','carrier_id',0,'carrier_id','\'DHL\', \'Fedex\', \'UPS\', \'USPS\', \'Malca-Amit\', \'Brinks\', \'Lemiur\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263042946','1263042946',0,0,'','1','','',''),(147,'Vessel/Flight No.','text','flight_no',50,'flight_no','',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263043035','1263043035',0,0,'','1','','',''),(149,'Port Of Discharge','option','port_of_discharge',50,'port_of_discharge','\'NA\',\'India\',\'Belgium\',\'Hong Kong\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263043240','1263043240',0,0,'','1','','',''),(150,'Place of Receipt','option','place_of_receipt',0,'place_of_receipt','\'NA\',\'Mumbai\',\'Antwerp\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263044185','1263044185',0,0,'','1','','',''),(125,'Customer Id','text','customer_id',0,'customer_id','',0,'','on','','on','bstock_orders',0,'','',0,0,'','','','',''),(136,'Approved','radio','approved',0,'approved','\'Yes\',\'No\'',0,'on','on','on','off','bstock_customers',0,'1262692775','1262692775',0,1,'','1','','',''),(137,'Plugin Label','text','plugin_label',100,'plugin_label','',3,'off','on','on','on','bstock_plugins',0,'','',0,0,'','','','_NAME_','Plugin name is mandatory field!'),(138,'Description','text','plugin_desc',255,'plugin_desc','',2,'off','on','on','on','bstock_plugins',0,'','',0,0,'','','','',''),(140,'is Active','radio','is_active',0,'is_active','\'on\',\'off\'',1,'off','on','off','on','bstock_plugins',0,'','',0,0,'Is Active is mandatory.','1','','',''),(141,'Folder Name of Plugin','text','folder_name',50,'folder_name','',4,'off','on','on','on','bstock_plugins',0,'','',0,0,'Folder name is required','1','','',''),(142,'Class File Name','text','class_file_name',50,'class_file_name','',5,'off','on','on','on','bstock_plugins',0,'','1262952344',0,0,'Class file name field is mandatory','1','','_AGE_',''),(143,'Order Id','text','order_id',10,'order_id','',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263042701','1263042701',0,0,'','1','','_NUMBER_',''),(144,'Airway Bill No.','text','tracking_number',50,'tracking_number','',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263042803','1263042803',0,0,'','1','','',''),(145,'Date','text','sent_date',25,'sent_date','',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263042851','1263042851',0,0,'','1','','_DATE_',''),(151,'Port of Loading','option','port_of_loading',0,'port_of_loading','\'NA\',\'Mumbai\',\'Antwerp\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263044308','1263044308',0,0,'','1','','',''),(152,'City of Final Destination','option','city_of_destination',0,'city_of_destination','\'Mumbai\',\'Antwerp\',\'New York\',\'Hong Kong\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263044479','1263044479',0,0,'','1','','',''),(153,'Exporter Name','text','exporter_name',250,'exporter_name','',1,'on','on','on','on','bstock_exporters',0,'1263079298','1263079298',0,0,'Exporter name is mandatory.','1','','',''),(154,'Address','textarea','address',0,'address','',2,'on','on','on','on','bstock_exporters',0,'1263079930','1263079930',0,0,'','1','','',''),(155,'Phone 1','text','phone1',50,'phone1','',3,'on','on','on','on','bstock_exporters',0,'1263080046','1263080046',0,0,'Phone 1 is mandatory.','1','','',''),(156,'Phone 2','text','phone2',50,'phone2','',4,'on','on','on','on','bstock_exporters',0,'1263080086','1263080086',0,0,'','1','','',''),(157,'Fax','text','fax',50,'fax','',5,'on','on','on','on','bstock_exporters',0,'1263080106','1263080106',0,0,'','1','','',''),(158,'Exporter\'s Ref','text','reference_no',50,'reference_no','',6,'on','on','on','on','bstock_exporters',0,'1263080161','1263080161',0,0,'Exporters Reference is mandatory.','1','','',''),(159,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',0,'on','on','on','on','bstock_exporters',0,'1263186645','1263186645',0,1,'','1','','',''),(160,'IEC Number','text','iec_no',50,'iec_no','',0,'on','on','on','on','bstock_exporters',0,'1263212262','1263212262',0,0,'','1','','',''),(161,'Country of Origin of goods','option','country_of_origin',0,'country_of_origin','\'NA\',\'India\',\'Belgium\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263273123','1263273123',0,0,'','1','','',''),(162,'Country of Final Destination','option','country_of_destination',0,'country_of_destination','\'NA\',\'India\',\'Belgium\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263273314','1263273314',0,0,'','1','','',''),(163,'Payment Terms','option','payment_terms_id',0,'payment_terms_id','\'NA\',\'120 Days D/A\',\'120 Days\',\'90 Days\'',0,'on','on','on','on','bstock_invoices',0,'1263279097','1263279097',0,0,'','1','','',''),(164,'Company Name','text','bank_name',250,'bank_name','',1,'on','on','on','on','bstock_angadia',0,'1263285663','1263285663',0,0,'Company Name is mandatory.','1','','',''),(165,'Address','textarea','bank_address',0,'bank_address','',2,'on','on','on','on','bstock_angadia',0,'1263285730','1263285730',0,0,'','1','','',''),(166,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',0,'on','on','on','off','bstock_angadia',0,'1263286352','1263286352',0,1,'','1','','',''),(167,'Certificate ID','text','certificate_id',50,'certificate_id','',12,'on','on','on','on','bstock_products',0,'1264597094','1264597094',0,0,'','1','','',''),(204,'Price in INR','text','',0,'inr_price','',0,'on','on','on','off','bstock_products',0,'','1283885750',0,0,'','1','','_AGE_',''),(169,'Serial No','text','serial_no',50,'serial_no','',17,'on','on','on','on','bstock_products',0,'1264597423','1264597423',0,0,'','1','','_NUMBER_',''),(170,'Discount','text','discount',50,'discount','',18,'on','on','on','on','bstock_products',0,'1264597484','1264597484',0,0,'','1','','',''),(175,'Measurement','text','measurement',50,'measurement','',21,'on','on','on','on','bstock_products',0,'1264597893','1264597893',0,0,'','1','','',''),(176,'Depth %','text','depth_percent',50,'depth_percent','',22,'on','on','on','on','bstock_products',0,'1264597980','1264597980',0,0,'','1','','',''),(177,'Table %','text','table_percent',50,'table_percent','',23,'on','on','on','on','bstock_products',0,'1264598000','1264598000',0,0,'','1','','_AGE_',''),(178,'Percent','text','percent',250,'percent','',24,'on','on','on','off','bstock_products',0,'1264598208','1264598208',0,0,'','1','','',''),(179,'Country','option','country',0,'country','\'India\', \'Hong Kong\', \'USA\', \'Belgium\'',10,'off','on','off','on','bstock_products',0,'1264598444','1264598444',0,0,'','1','','',''),(180,'Quantity','text','qty',10,'qty','',25,'on','on','on','on','bstock_products',0,'1264679156','1264679156',0,0,'','1','','',''),(181,'Vendor Name','text','vendor_name',250,'vendor_name','',1,'on','on','on','on','bstock_vendors',0,'1263079298','1263079298',0,0,'Vendor name is mandatory.','1','','',''),(182,'Address','textarea','address',0,'address','',2,'on','on','on','on','bstock_vendors',0,'1263079930','1263079930',0,0,'','1','','',''),(183,'Phone 1','text','phone1',50,'phone1','',3,'on','on','on','on','bstock_vendors',0,'1263080046','1263080046',0,0,'Phone 1 is mandatory.','1','','',''),(184,'Phone 2','text','phone2',50,'phone2','',4,'on','on','on','on','bstock_vendors',0,'1263080086','1263080086',0,0,'','1','','',''),(185,'Fax','text','fax',50,'fax','',5,'on','on','on','on','bstock_vendors',0,'1263080106','1263080106',0,0,'','1','','',''),(186,'Vendorss Ref','text','reference_no',50,'reference_no','',6,'on','on','on','on','bstock_vendors',0,'1263080161','1263080161',0,0,'Vendors Reference is mandatory.','1','','',''),(187,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',0,'on','on','on','on','bstock_vendors',0,'1263186645','1263186645',0,1,'','1','','',''),(188,'IEC Number','text','iec_no',50,'iec_no','',0,'on','on','on','on','bstock_vendors',0,'1263212262','1263212262',0,0,'','1','','',''),(189,'Purchase Price','text','purchase_price',10,'purchase_price','',0,'on','on','on','off','bstock_products',0,'1272310192','1272310192',0,0,'','1','','_NUMBER_',''),(190,'Vendor Name','option','vendorname',0,'vendorname','\'None\',\'Bigg Stock\', \'Vendor 1\', \'Vendor 2\'',0,'on','on','on','off','bstock_products',0,'1272312993','1272312993',0,0,'Please select Vendor Name','1','','',''),(191,'orignal_qty','text','orignal_qty',100,'orignal_qty','0',0,'off','on','off','off','bstock_products',0,'1277444806','1277444806',0,0,'','1','','_NUMBER_',''),(192,'Type of Account','option','transaction_types',10,'transaction_types','\'All\',\'White\',\'Black\'',6,'on','on','on','on','bstock_userprofiles',0,'1277554424','1277554424',0,0,'','1','','_AGE_',''),(193,'Type of Account','option','transaction_types',10,'transaction_types','\'All\',\'White\',\'Black\'',6,'on','on','on','off','bstock_userprofiles',0,'1277554572','1277554572',0,0,'','1','','_AGE_',''),(194,'Divisor','text','divisor',0,'divisor','',0,'on','on','on','on','bstock_userprofiles',0,'1277554900','1277554900',0,0,'','1','','_NUMBER_',''),(195,'','','',0,'','',0,'on','on','on','on','',0,'1277557077','1277557077',0,0,'','1','','_AGE_',''),(196,'Broker Name','text','broker_name',255,'broker_name','',0,'on','on','on','on','bstock_brokers',0,'1281531239','1281531239',0,0,'Broker Name is mandatory.','1','','',''),(197,'Address','textarea','address',0,'address','',3,'on','on','on','on','bstock_brokers',0,'1281549714','1281549714',0,0,'','1','','',''),(198,'Phone 1','text','phone1',25,'phone1','',4,'on','on','on','on','bstock_brokers',0,'1281549897','1281549897',0,0,'','1','','',''),(199,'Phone 2','text','phone2',50,'phone2','',5,'on','on','on','on','bstock_brokers',0,'1281598101','1281598101',0,0,'','1','','',''),(200,'Fax','text','fax',50,'fax','',6,'on','on','on','on','bstock_brokers',0,'1281598269','1281598269',0,0,'','1','','',''),(201,'Reference Name','text','reference_name',255,'reference_name','',7,'on','on','on','on','bstock_brokers',0,'1281598379','1281598379',0,0,'','1','','',''),(202,'Reference Number','text','reference_no',50,'reference_no','',8,'on','on','on','on','bstock_brokers',0,'1281598411','1281598411',0,0,'','1','','',''),(203,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',9,'on','on','on','on','bstock_brokers',0,'1281601690','1281601690',0,1,'','1','','',''),(205,'Conversion Rate','text','conversion_rate',10,'conversion_rate','',26,'on','on','on','on','bstock_products',0,'1283886076','1283886076',0,0,'','1','','_AGE_',''),(207,'Cash Back','text','cash_back',10,'cash_back','',27,'on','on','on','on','bstock_products',0,'1283886145','1283886145',0,0,'','1','','_AGE_',''),(208,'Total Purchase Price ($)','text','purchase_price_dollar',10,'purchase_price_dollar','',32,'on','on','on','on','bstock_products',0,'1283886171','1283886171',0,0,'','1','','_AGE_',''),(209,'Total Purchase Price (INR)','text','purchase_price_inr',10,'purchase_price_inr','',33,'on','on','on','on','bstock_products',0,'1283886194','1283886194',0,0,'','1','','_AGE_',''),(210,'Jewelry Category','option','',0,'jwl_category','\'Ring\', \'Bangles\', \'Necklace\', \'Earnings\', \'Bracelet\', \'Nose Ring\', \'Painjan\', \'Bajuband\', \'KamarPata\'',0,'on','on','on','on','bstock_products',0,'','1285164924',0,0,'','1','','_AGE_',''),(213,'Category','option','category',0,'category','\'None\',\'C4\', \'CP\', \'CF\', \'NC\'',29,'on','on','on','on','bstock_products',0,'1285661515','1285661515',0,0,'','1','','',''),(214,'Piece Price (INR)','text','piece_price_inr',10,'piece_price_inr','',30,'on','on','on','on','bstock_products',0,'1285694553','1285694553',0,0,'','1','','',''),(216,'Piece Price (USD)','text','piece_price_dollar',10,'piece_price_dollar','',31,'on','on','on','on','bstock_products',0,'1285694721','1285694721',0,0,'','1','','',''),(217,'Aadat','text','aadat',5,'aadat','',28,'on','on','on','on','bstock_products',0,'1286212567','1286212567',0,0,'','1','','',''),(218,'Account Name','text','account_name',200,'account_name','',0,'on','on','on','on','bstock_angadia',0,'1290689948','1290689948',0,0,'','1','','','');

--
-- Table structure for table `bstock_invoices`
--

CREATE TABLE `bstock_invoices` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `order_id` int(10) NOT NULL COMMENT 'This is the foreign key for the orders table & is mapped to it''s primary key.',
  `invoice_no` varchar(50) NOT NULL COMMENT 'Invoice number. This is generated from the ''customnumbers'' table.',
  `invoice_date` varchar(50) NOT NULL COMMENT 'This is the date that is selected on the form of invoice creation / editing.',
  `other_references` varchar(100) NOT NULL COMMENT 'This is used to store the other reference number found on Invoice.',
  `invoice_status_id` int(10) NOT NULL COMMENT 'This is the foreign key of the invoice status table & mapped to it''s primary key.',
  `exporter_id` int(10) NOT NULL COMMENT 'This is the exporter_id which is the foreign key here. It is the primary key of the bstock_exporters table.',
  `payment_terms_id` int(10) NOT NULL COMMENT 'This will be the foreign key in the payment_terms table, corresponding to the primary key of that table.',
  `banker_id` int(10) NOT NULL COMMENT 'This is the foreign key & it corresponds to the primary key of the bstock_bankers table.',
  `conversion_rate` decimal(10,3) NOT NULL COMMENT 'This field will store the current rate of USD vs INR',
  `created_date` varchar(50) NOT NULL COMMENT 'Date when this invoice was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Date when this invoice was last modified.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1 COMMENT='Stores the invoices for every order.';

--
-- Dumping data for table `bstock_invoices`
--

INSERT INTO `bstock_invoices` VALUES (2,1,'111','1287125381','',0,1,0,0,0.000,'1287470981','1287470981'),(3,8,'1003','1288615399','',0,2,0,0,0.000,'1288442599','1288442599'),(4,9,'INV005','1290592805','',0,1,0,0,0.000,'1290679205','1290679205'),(5,10,'INV006','1291027402','',0,1,0,0,0.000,'1290681802','1290681802'),(6,16,'123','','',0,1,0,0,0.000,'1291731234','1291731234'),(7,19,'INV1015','1291967066','',0,1,0,0,0.000,'1291794266','1291794266');

--
-- Table structure for table `bstock_invoicestatushistory`
--

CREATE TABLE `bstock_invoicestatushistory` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `invoice_id` int(10) NOT NULL COMMENT 'This will be the foreign key of the invoices table & mapped to it''s primary key.',
  `status_id` int(10) NOT NULL COMMENT 'This will be the foreign key of the invoices status table & mapped to it''s primary key. Here we will store the new status id which was there after being updated.',
  `comments` text NOT NULL COMMENT 'This will store the comments entered by the Admin.',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL COMMENT 'This will contain the timestamp of the date when the invoice status was changed.',
  `user_id` int(10) DEFAULT '0' COMMENT 'This is the foreign key of the user who changed the status & is mapped to it''s primary key.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=72 DEFAULT CHARSET=latin1 COMMENT='Here we record all the transactions when the invoices status';

--
-- Dumping data for table `bstock_invoicestatushistory`
--

INSERT INTO `bstock_invoicestatushistory` VALUES (1,7,1,'','1263440468','1263440468',0),(2,8,1,'','1263440541','1263440541',1),(3,9,1,'','1263443448','1263443448',1),(4,10,1,'','1263443740','1263443740',1),(5,11,1,'','1263445264','1263445264',1),(6,12,1,'','1263445367','1263445367',1),(7,13,1,'','1263445384','1263445384',1),(8,14,1,'','1263445426','1263445426',1),(9,15,1,'','1263445460','1263445460',1),(10,16,1,'','1263445608','1263445608',1),(11,17,1,'','1263445638','1263445638',1),(12,18,2,'Fully paid.','1263457744','1263457744',1),(13,19,2,'Fully paid.','1263457831','1263457831',1),(14,1,1,'Enter comments here.','1263496246','1263496246',1),(15,1,1,'Enter comments here.','1263496318','1263496318',1),(16,2,2,'This is paid fully.','1263502864','1263502864',1),(17,3,2,'Enter comments here.','1263505135','1263505135',1),(18,4,2,'Enter comments here.','1263537440','1263537440',1),(19,5,2,'Done. paid.','1263592477','1263592477',1),(20,6,2,'We have received the payment. Thank you.','1263961877','1263961877',1),(21,7,2,'We have received the payment. Thank you.','1263961966','1263961966',1),(22,8,2,'We have received the payment. Thank you.','1263962772','1263962772',1),(23,9,2,'We have received the payment. Thank you.','1263962929','1263962929',1),(24,10,2,'Thank you for the payment.','1263963365','1263963365',1),(25,11,2,'Thank you for the payment.','1263963657','1263963657',1),(26,12,2,'Paid now.','1263963827','1263963827',1),(27,13,2,'Paid now.','1263963939','1263963939',1),(28,14,2,'We received this payment. Thank you.','1263964517','1263964517',1),(29,15,2,'Payment is received. Thanks.','1263965600','1263965600',1),(30,16,1,'Enter comments here.','1263990258','1263990258',1),(31,17,1,'Enter comments here.','1263990766','1263990766',1),(32,18,1,'Enter comments here.','1263990806','1263990806',1),(33,19,1,'Enter comments here.','1263990837','1263990837',1),(34,20,2,'Fully Paid.','1263992419','1263992419',1),(35,21,2,'Thanks for the payment.','1264048879','1264048879',1),(36,22,2,'Recvd. payment. Thanks.','1264049581','1264049581',1),(37,23,1,'Enter comments here.','1264055292','1264055292',1),(38,24,1,'Enter comments here.','1264055837','1264055837',1),(39,25,1,'Enter comments here.','1264056272','1264056272',1),(40,26,1,'Enter comments here.','1264056770','1264056770',1),(41,27,1,'Enter comments here.','1264057208','1264057208',1),(42,28,1,'Enter comments here.','1264057776','1264057776',1),(43,29,1,'Enter comments here.','1264058113','1264058113',1),(44,30,1,'Enter comments here.','1264058730','1264058730',1),(45,31,2,'paid now.','1264058867','1264058867',1),(46,32,2,'paid now.','1264059139','1264059139',1),(47,33,2,'Paid.','1264060692','1264060692',1),(48,34,2,'Paid.','1264060767','1264060767',1),(49,35,2,'This one is paid.','1264421348','1264421348',1),(50,36,2,'100% paid. Thanks.','1264422051','1264422051',1),(51,37,2,'100% paid. Thank you.','1264423686','1264423686',1),(52,38,2,'Payment complete.','1264423991','1264423991',1),(53,39,2,'Payment is made','1265299106','1265299106',1),(54,40,1,'Payment to be recieved','1265304239','1265304239',1),(55,41,1,'This is the proforma invoice.','1265700565','1265700565',1),(56,42,1,'pending.','1265702463','1265702463',1),(57,43,1,'pending.','1265702577','1265702577',1),(58,44,1,'payment pending.','1265702761','1265702761',1),(59,45,1,'Sending the proforma invoice.','1265713901','1265713901',1),(60,46,2,'Fully paid.','1265714827','1265714827',1),(61,47,2,'Paid.','1265716823','1265716823',1),(62,48,1,'Enter comments here.','1265720700','1265720700',1),(63,49,1,'These are the details','1265788591','1265788591',1),(64,50,2,'this is paid.','1266491308','1266491308',1),(65,1,1,'Enter comments here.','1271964825','1271964825',1),(66,2,0,'','1287470981','1287470981',1),(67,3,0,'','1288442599','1288442599',1),(68,4,0,'','1290679205','1290679205',1),(69,5,0,'','1290681802','1290681802',1),(70,6,0,'','1291731234','1291731234',1),(71,7,0,'','1291794266','1291794266',1);

--
-- Table structure for table `bstock_invoicestatustypes`
--

CREATE TABLE `bstock_invoicestatustypes` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `name` varchar(250) NOT NULL COMMENT 'Name of the invoice status type.',
  `description` text NOT NULL COMMENT 'Description for the invoice status type.',
  `is_active` enum('0','1') NOT NULL COMMENT 'Whether this invoice type is active or not.',
  `created_date` varchar(50) NOT NULL COMMENT 'Date when this invoice status type was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Date when this invoice status type was last modified.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COMMENT='This table is used to store the different invoice status typ';

--
-- Dumping data for table `bstock_invoicestatustypes`
--

INSERT INTO `bstock_invoicestatustypes` VALUES (1,'Pending','','1','',''),(2,'Paid','','1','','');

--
-- Table structure for table `bstock_inwardproductdetails`
--

CREATE TABLE `bstock_inwardproductdetails` (
  `inward_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `product_id` int(10) NOT NULL COMMENT 'This is the foreign key for the products & is mapped to primary key of products table.',
  `quantity` int(10) NOT NULL COMMENT 'Quantity of products that were added to the stock.',
  `list_price` varchar(50) NOT NULL COMMENT 'Price at which the products were purchased.',
  `vendor_id` int(10) NOT NULL COMMENT 'This will be the vendor_id from whom the products were purchased.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will contain the created date for this record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will contain the last modified date for this record.',
  PRIMARY KEY (`inward_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Record transactions when products are added in our inventory';

--
-- Dumping data for table `bstock_inwardproductdetails`
--


--
-- Table structure for table `bstock_jwl_dia_info`
--

CREATE TABLE `bstock_jwl_dia_info` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key for the order items.',
  `po_order_id` int(11) NOT NULL,
  `so_order_id` int(11) NOT NULL,
  `order_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to primary key of orders table.',
  `diamond_product_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to primary key of products table.',
  `product_jwl_id` int(11) NOT NULL,
  `quantity` int(10) NOT NULL COMMENT 'Quantity ordered for this particular item.',
  `price` decimal(10,2) NOT NULL COMMENT 'The price for this item after multiplying with quantity.',
  `price_inr` decimal(10,0) NOT NULL,
  `percent_back` decimal(10,0) NOT NULL,
  `aadat` decimal(10,0) NOT NULL,
  `dollar_rate` decimal(10,0) NOT NULL,
  `cash_back` decimal(10,0) NOT NULL,
  `total_in_dollar` decimal(10,0) NOT NULL,
  `total_in_inr` decimal(10,0) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `broker_id_1` int(10) NOT NULL,
  `brokerage_1` decimal(10,2) NOT NULL,
  `broker_id_2` int(10) NOT NULL,
  `brokerage_2` decimal(10,2) NOT NULL,
  `profit_amount` decimal(10,4) NOT NULL,
  `profit_percent` decimal(10,4) NOT NULL,
  `created_date` varchar(50) NOT NULL COMMENT 'This will be the date when this record was inserted i.e. when the order was placed.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will be the last modified date for this order.',
  `discount_percent` varchar(20) NOT NULL COMMENT 'Percentage of discount offered on this order item.',
  `discount_value` varchar(20) NOT NULL COMMENT 'Discount (in value) offered on this order item.',
  `quantity_shipped` int(10) NOT NULL COMMENT 'This will be the quantity of the item that has been shipped so far.',
  `exporter_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=122 DEFAULT CHARSET=latin1 COMMENT='Store the individual product items of an order.';

--
-- Dumping data for table `bstock_jwl_dia_info`
--

INSERT INTO `bstock_jwl_dia_info` VALUES (5,0,0,20,2,0,1,3366.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270147','1276270147','','',0,1),(6,0,0,21,3,0,1,2470.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270381','1276270381','','',0,1),(7,0,0,22,7,0,1,2109.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270732','1276270732','','',0,1),(8,0,0,23,7,0,1,2109.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270812','1276270812','','',0,1),(9,0,0,24,7,0,1,2109.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276271031','1276271031','','',0,1),(10,0,0,25,7,0,2,2109.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276271039','1276271039','','',0,1),(11,0,0,25,7,0,2,2109.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1267005563','1267005563','','',0,1),(12,0,0,26,77,0,1,5112.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276522281','1276522281','','',0,1),(15,0,0,26,0,0,0,0.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1267005563','1267005563','','',0,1),(16,0,0,29,13,0,1,2750.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276523268','1276523268','','',0,1),(18,0,0,31,0,0,0,0.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276523825','1276523825','','',0,1),(19,0,0,33,0,0,0,0.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276524038','1276524038','','',0,1),(20,0,0,34,3,0,1,2470.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276524132','1276524132','','',0,1),(21,0,0,35,4,0,1,3266.00,0,0,0,0,0,0,0,2,12,0,0.00,0,0.00,11000.0000,5.0000,'1276524168','1276524168','','',0,1),(22,0,0,35,0,0,0,0.00,0,0,0,0,0,0,0,3,12,0,0.00,0,0.00,5678.0000,1.0200,'1276524168','1276524168','','',0,1),(23,0,0,36,5,0,1,1188.00,0,0,0,0,0,0,0,2,12,0,0.00,0,0.00,11000.0000,5.0000,'1276524306','1276524306','','',0,1),(52,0,0,44,3,0,1,2470.00,0,0,0,0,0,0,0,2,12,1,2.00,2,3.00,-890.0000,-8.9000,'1277233812','1277233812','','',0,1),(51,0,0,37,2,0,4,3366.00,0,0,0,0,0,0,0,1,41,1,2.00,2,2.00,-50.0000,-0.5000,'1277230461','1277230461','','',0,1),(28,0,0,38,9,0,1,4070.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276582157','1276582157','','',0,1),(43,0,0,38,4,0,2,4444.00,0,0,0,0,0,0,0,1,12,0,0.00,0,0.00,-2238.0000,-22.3800,'1276952739','1276952739','','',0,1),(47,0,0,43,2,0,1,5555.00,0,0,0,0,0,0,0,1,0,0,0.00,0,0.00,-30193.0000,-301.9300,'1276955065','1276955065','','',0,1),(45,0,0,42,2,0,4,3366.00,0,0,0,0,0,0,0,1,0,0,0.00,0,0.00,-42480.0000,-424.8000,'1276953033','1276953033','','',0,1),(46,0,0,41,4,0,2,4444.00,0,0,0,0,0,0,0,1,0,0,0.00,0,0.00,-2238.0000,-22.3800,'1276953062','1276953062','','',0,1),(38,0,0,1,2,0,5,5555.00,0,0,0,0,0,0,0,2,12,0,0.00,0,0.00,2189.0000,21.8900,'1276949635','1276949635','','',0,1),(39,0,0,1,6,0,1,4444.00,0,0,0,0,0,0,0,2,12,0,0.00,0,0.00,2024.0000,20.2400,'1276951188','1276951188','','',0,1),(40,0,55,38,3,0,0,2470.00,0,10,0,45,0,2445,110039,1,12,1,2.00,2,1.00,0.0000,0.0000,'1276951261','1276951261','','',0,1),(41,0,0,38,3,0,1,2470.00,0,0,0,0,0,0,0,1,12,1,1.00,4,2.00,500.0000,2.3000,'1276951512','1276951512','','',0,1),(49,0,0,39,5,0,1,3333.00,0,20,3,45,2,0,0,1,12,4,1.00,0,0.00,1395.0000,13.9500,'1277202736','1277202736','','',0,1),(53,0,0,37,3,0,3,2.47,0,0,0,0,0,0,0,1,41,1,2.00,2,2.00,-4987.5300,-49.8753,'1277972821','1277972821','','',0,1),(54,0,0,37,3,0,4,2.47,0,0,0,0,0,0,0,1,41,1,2.00,2,2.00,-4987.5300,-49.8753,'1277972835','1277972835','','',0,1),(55,0,0,46,6,0,2,5.56,0,0,0,0,0,0,0,1,0,0,0.00,0,0.00,-4834.4445,-48.3444,'1277982373','1277982373','','',0,1),(56,0,0,46,15,0,2,2.53,0,0,0,0,0,0,0,1,0,0,0.00,0,0.00,-2527.4700,-25.2747,'1277982373','1277982373','','',0,1),(57,0,0,47,8,0,2,1.44,0,0,0,0,0,0,0,1,12,2,2.00,2,3.00,-2878.5600,-28.7856,'1277986272','1277986272','','',0,1),(58,0,0,48,14,0,1,2.86,0,0,0,0,0,0,0,1,0,1,2.00,0,0.00,-2857.1400,-28.5714,'1277986481','1277986481','','',0,1),(59,0,0,49,14,0,1,2.86,0,0,0,0,0,0,0,2,12,0,0.00,0,0.00,-2857.1400,-28.5714,'1277986542','1277986542','','',0,1),(60,0,0,37,15,0,3,2530.00,0,0,0,0,0,0,0,1,41,1,2.00,2,2.00,-5110.0000,-51.1000,'1277986781','1277986781','','',0,1),(61,0,0,49,15,0,1,4444.00,0,0,0,0,0,0,0,2,12,0,0.00,0,0.00,1914.0000,19.1400,'1277986828','1277986828','','',0,1),(62,0,0,50,14,0,1,2860.00,0,0,0,0,0,0,0,1,12,1,0.00,0,0.00,0.0000,0.0000,'1280226928','1280226928','','',0,0),(63,0,0,50,10,0,1,2604.00,0,0,0,0,0,0,0,1,12,1,0.00,0,0.00,0.0000,0.0000,'1280226928','1280226928','','',0,0),(64,0,0,1,17,0,1,4620.00,0,0,0,0,0,0,0,0,12,0,0.00,0,0.00,0.0000,0.0000,'1280410056','1280410056','','',0,0),(65,0,0,51,17,0,1,4620.00,0,0,0,0,0,0,0,2,12,1,1.00,2,2.00,-2.0000,-0.0200,'1282119125','1282119125','','',0,0),(66,0,0,52,6,0,4,2420.00,0,0,0,0,0,0,0,1,12,1,1.00,2,1.00,-7260.0000,-72.6000,'1283334337','1283334337','','',0,0),(67,0,0,52,8,0,1,1440.00,0,0,0,0,0,0,0,1,12,1,1.00,2,1.00,0.0000,0.0000,'1283334337','1283334337','','',0,0),(68,0,0,53,15,0,1,2530.00,0,0,0,0,0,0,0,1,12,0,0.00,0,0.00,0.0000,0.0000,'1283335562','1283335562','','',0,0),(69,0,0,53,18,0,1,3150.00,0,0,0,0,0,0,0,1,12,0,0.00,0,0.00,0.0000,0.0000,'1283335562','1283335562','','',0,0),(70,0,0,54,1,0,1,400.00,0,0,0,0,0,0,0,1,12,0,0.00,0,0.00,0.0000,0.0000,'1283460667','1283460667','','',0,0),(71,0,0,39,2,0,4353,4353.00,0,0,0,0,0,6052,272319,1,12,4,1.00,0,0.00,-999999.9999,-189486.0900,'1283710168','1283710168','','',0,0),(72,0,0,39,1,0,1,5500.00,0,10,3,45,2,5694,256213,1,12,4,1.00,0,0.00,-484.0000,-4.8400,'1283710862','1283710862','','',0,0),(73,0,0,55,2,0,1,4353.00,0,10,3,45,2,5996,269816,3,12,2,1.00,0,0.00,-4353.0000,-43.5300,'1283713633','1283713633','','',0,0),(74,0,30,0,2,15,1,6666.00,0,0,0,45,0,10732,482952,1,0,2,0.00,0,0.00,-48455.0000,-484.5500,'1283728038','1283728038','','',0,0),(75,0,30,0,2,15,1,6666.00,0,0,0,45,0,10732,482952,1,0,2,0.00,0,0.00,-48455.0000,-484.5500,'1283728290','1283728290','','',0,0),(76,0,30,0,2,15,1,6666.00,0,0,0,45,0,10732,482952,1,0,2,0.00,0,0.00,-48455.0000,-484.5500,'1283728343','1283728343','','',0,0),(77,0,58,0,2,0,1,5555.00,0,0,0,45,0,8944,402460,1,0,1,0.00,0,0.00,-48455.0000,-484.5500,'1283757521','1283757521','','',0,0),(78,0,59,0,2,0,1,5555.00,0,0,0,45,0,8944,402460,3,0,2,0.00,0,0.00,-48455.0000,-484.5500,'1283759338','1283759338','','',0,0),(79,0,59,0,4,0,1,666.00,0,0,0,45,0,673,30270,3,0,2,0.00,0,0.00,-44102.0000,-441.0200,'','1283759921','','',0,0),(80,0,59,0,4,0,1,5505.00,0,0,0,45,0,5560,250202,3,0,2,0.00,0,0.00,-44102.0000,-441.0200,'','1283776417','','',0,0),(81,0,59,0,6,0,1,5000.00,0,0,0,45,0,5900,265500,3,0,2,0.00,0,0.00,-44102.0000,-441.0200,'','1283776792','','',0,0),(82,0,59,0,6,0,1,500.00,0,0,0,45,0,590,26550,3,0,2,0.00,0,0.00,-44102.0000,-441.0200,'','1283776915','','',0,0),(83,0,60,0,2,0,1,5000.00,0,0,0,45,0,8050,362250,1,0,1,0.00,0,0.00,-48455.0000,-484.5500,'1283777612','1283777612','','',0,0),(84,0,37,0,6,0,1,5000.00,0,0,0,45,0,5900,265500,1,0,1,0.00,2,2.00,-44102.0000,-441.0200,'','1283780164','','',0,0),(85,0,37,0,8,0,1,4000.00,0,0,0,45,0,4840,217800,1,0,1,0.00,2,2.00,-44102.0000,-441.0200,'','1283799741','','',0,0),(86,0,37,0,10,0,1,5000.00,0,0,0,45,0,10050,452250,1,0,1,0.00,2,2.00,-44102.0000,-441.0200,'','1283808087','','',0,0),(87,0,37,0,7,0,1,3000.00,10,3,2,45,0,3090,139050,1,0,1,0.00,2,2.00,-44102.0000,-441.0200,'','1283808363','','',0,0),(92,0,62,0,378,0,1,2000.00,0,33,0,47,0,1348,62682,1,0,0,0.00,0,0.00,-44102.0000,-441.0200,'1283852927','1283852927','','',0,0),(91,0,62,0,382,0,1,850.00,0,0,0,46,0,765,35190,1,0,0,0.00,0,0.00,-44715.7000,-447.1570,'1283852927','1283852927','','',0,0),(95,0,70,0,394,0,1,13000.00,0,20,3,45,2,19772,889762,0,0,0,0.00,0,0.00,-56102.0000,-561.0200,'1283873378','1283873378','','',0,0),(96,0,70,0,388,0,1,4000.00,0,25,3,46,0,2910,133860,0,0,0,0.00,0,0.00,-47702.0000,-477.0200,'1283873378','1283873378','','',0,0),(97,0,71,0,391,0,1,8000.00,0,40,3,45,2,9126,410659,0,0,0,0.00,0,0.00,-51302.0000,-513.0200,'1283873848','1283873848','','',0,0),(98,0,71,0,389,0,1,9000.00,0,12,2,45,1,7684,345779,0,0,0,0.00,0,0.00,-44602.0000,-446.0200,'1283873848','1283873848','','',0,0),(99,0,72,0,386,0,1,5000.00,0,0,0,45,0,10000,450000,0,0,0,0.00,0,0.00,-51302.0000,-513.0200,'1283875146','1283875146','','',0,0),(100,0,72,0,393,0,1,8000.00,0,0,0,45,0,8000,360000,0,0,0,0.00,0,0.00,-49102.0000,-491.0200,'1283875146','1283875146','','',0,0),(101,0,79,0,411,0,1,3900.00,0,0,0,46,0,6630,304980,0,0,0,0.00,0,0.00,-47365.0400,-473.6504,'1285668597','1285668597','','',0,0),(102,0,79,0,409,0,1,3840.43,0,0,0,47,0,7297,342950,0,0,0,0.00,0,0.00,-47442.4300,-474.4243,'1285668597','1285668597','','',0,0),(103,0,80,0,411,0,1,3900.00,0,0,0,46,0,6630,304980,0,0,0,0.00,0,0.00,-47365.0400,-473.6504,'1285668708','1285668708','','',0,0),(104,0,80,0,409,0,1,3840.43,0,0,0,47,0,7297,342950,0,0,0,0.00,0,0.00,-47442.4300,-474.4243,'1285668708','1285668708','','',0,0),(105,0,81,0,364,0,2,1250.00,0,0,0,46,0,1500,69000,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'1285668868','1285668868','','',0,0),(106,0,81,0,381,0,1,1200.00,0,0,0,46,0,1560,71760,0,0,0,0.00,0,0.00,-45070.4500,-450.7045,'1285668868','1285668868','','',0,0),(107,0,84,0,406,0,1,5000.00,0,0,0,45,0,11500,517500,0,0,0,0.00,0,0.00,-48653.2400,-486.5324,'1285676716','1285676716','','',0,0),(108,0,85,0,408,0,1,3200.00,0,0,0,46,0,6400,294400,0,0,0,0.00,0,0.00,-46918.8800,-469.1888,'1285678016','1285678016','','',0,0),(109,0,86,0,403,0,1,5000.00,0,0,0,47,0,9500,441750,0,0,0,0.00,0,0.00,-47771.8700,-477.7187,'1285678155','1285678155','','',0,0),(110,0,87,0,403,0,1,5000.00,0,0,0,47,0,9500,441750,0,0,0,0.00,0,0.00,-47771.8700,-477.7187,'1285678201','1285678201','','',0,0),(111,0,88,0,404,0,1,900.00,0,0,0,47,0,630,29484,0,0,0,0.00,0,0.00,-44883.2000,-448.8320,'1285678485','1285678485','','',0,0),(112,0,89,0,402,0,1,9000.00,0,0,0,45,0,13590,611550,0,0,0,0.00,0,0.00,-52119.3000,-521.1930,'1285680273','1285680273','','',0,0),(113,0,90,0,384,0,1,4000.00,0,0,0,45,0,4000,180000,0,0,0,0.00,0,0.00,-47702.0000,-477.0200,'1285680330','1285680330','','',0,0),(114,0,8,0,368,0,1,2200.00,90000,0,0,45,0,6600,297000,0,0,4,0.00,0,0.00,-49448.0000,-494.4800,'1288436368','1288436368','','',0,0),(115,0,10,0,3,0,1,225.00,9900,17,2,44,1,181,7972,0,0,4,1.00,0,0.00,-44102.0000,-441.0200,'1290681637','1290681637','','',0,0),(116,0,10,0,4,0,1,250.00,11250,0,0,45,0,253,11363,0,0,4,0.00,0,0.00,-44102.0000,-441.0200,'1290681637','1290681637','','',0,0),(117,0,14,0,138,0,1,500.00,22500,19,2,45,1,200,9018,0,0,0,1.00,0,0.00,-44102.0000,-441.0200,'1291641659','1291641659','','',0,0),(118,0,15,0,102,0,1,400.00,17600,0,2,44,1,171,7513,0,0,2,1.00,0,0.00,-44102.0000,-441.0200,'1291725679','1291725679','','',0,0),(119,0,16,0,155,0,1,5555.00,249975,25,1,45,1,8167,367501,0,0,2,3.00,0,0.00,-44102.0000,-441.0200,'1291790598','1291790598','','',0,0),(120,0,19,0,364,0,1,1500.00,66000,22,1,44,1,1720,75683,0,0,2,2.00,0,0.00,-45660.7900,-456.6079,'1291794205','1291794205','','',0,0),(121,0,20,0,367,0,1,6700.00,0,0,0,44,0,20801,915248,0,0,1,0.00,0,0.00,-64903.0900,-649.0309,'1304754457','1304754457','','',0,0);

--
-- Table structure for table `bstock_jwl_dia_info_unused`
--

CREATE TABLE `bstock_jwl_dia_info_unused` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'this is primary key',
  `polish_diamond_id` int(10) NOT NULL,
  `product_jwl_id` int(10) NOT NULL,
  `number_of_pieces` int(10) NOT NULL,
  `location` varchar(255) NOT NULL,
  `price` varchar(10) NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_jwl_dia_info_unused`
--

INSERT INTO `bstock_jwl_dia_info_unused` VALUES (1,673,1,1,'Center','100','',''),(2,674,2,5,'Side','200','',''),(3,675,2,2,'Center','300','',''),(4,673,3,4,'Side','400','',''),(5,674,3,3,'Center','500','',''),(6,675,6,5,'Side','600','',''),(7,673,6,1,'Center','100','',''),(8,673,7,2,'Center','200','',''),(9,673,8,3,'Center','300','',''),(10,673,9,4,'Center','400','',''),(11,673,10,5,'Center','500','',''),(12,673,11,6,'Center','600','',''),(13,673,12,7,'Center','700','',''),(14,673,13,8,'Center','800','',''),(15,673,14,9,'Center','900','',''),(16,673,15,10,'Center','1000','','');

--
-- Table structure for table `bstock_jwl_diamond_items`
--

CREATE TABLE `bstock_jwl_diamond_items` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key for the order items.',
  `po_order_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to primary key of orders table.',
  `so_order_id` int(11) NOT NULL,
  `diamond_product_id` int(11) NOT NULL,
  `product_jwl_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to primary key of products table.',
  `quantity` int(10) NOT NULL COMMENT 'Quantity ordered for this particular item.',
  `price` decimal(10,2) NOT NULL COMMENT 'The price for this item after multiplying with quantity.',
  `vendor_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `broker_id_1` int(10) NOT NULL,
  `brokerage_1` decimal(10,2) NOT NULL,
  `broker_id_2` int(10) NOT NULL,
  `brokerage_2` decimal(10,2) NOT NULL,
  `profit_amount` decimal(10,4) NOT NULL,
  `profit_percent` decimal(10,4) NOT NULL,
  `created_date` varchar(50) NOT NULL COMMENT 'This will be the date when this record was inserted i.e. when the order was placed.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will be the last modified date for this order.',
  `discount_percent` varchar(20) NOT NULL COMMENT 'Percentage of discount offered on this order item.',
  `discount_value` varchar(20) NOT NULL COMMENT 'Discount (in value) offered on this order item.',
  `quantity_shipped` int(10) NOT NULL COMMENT 'This will be the quantity of the item that has been shipped so far.',
  `exporter_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=70 DEFAULT CHARSET=latin1 COMMENT='Store the individual product items of an order.';

--
-- Dumping data for table `bstock_jwl_diamond_items`
--

INSERT INTO `bstock_jwl_diamond_items` VALUES (5,20,0,0,2,1,3366.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270147','1276270147','','',0,1),(6,21,0,0,3,1,2470.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270381','1276270381','','',0,1),(7,22,0,0,7,1,2109.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270732','1276270732','','',0,1),(8,23,0,0,7,1,2109.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276270812','1276270812','','',0,1),(9,24,0,0,7,1,2109.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276271031','1276271031','','',0,1),(10,25,0,0,7,2,2109.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276271039','1276271039','','',0,1),(11,25,0,0,7,2,2109.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1267005563','1267005563','','',0,1),(12,26,0,0,77,1,5112.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276522281','1276522281','','',0,1),(15,26,0,0,0,0,0.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1267005563','1267005563','','',0,1),(16,29,0,0,13,1,2750.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276523268','1276523268','','',0,1),(18,31,0,0,0,0,0.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276523825','1276523825','','',0,1),(19,33,0,0,0,0,0.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276524038','1276524038','','',0,1),(20,34,0,0,3,1,2470.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276524132','1276524132','','',0,1),(21,35,0,0,4,1,3266.00,2,12,0,0.00,0,0.00,11000.0000,5.0000,'1276524168','1276524168','','',0,1),(22,35,0,0,0,0,0.00,3,12,0,0.00,0,0.00,5678.0000,1.0200,'1276524168','1276524168','','',0,1),(23,36,0,6,5,1,1188.00,2,12,0,0.00,0,0.00,11000.0000,5.0000,'1276524306','1276524306','','',0,1),(52,44,0,0,3,1,2470.00,2,12,1,2.00,2,3.00,-890.0000,-8.9000,'1277233812','1277233812','','',0,1),(51,37,0,0,2,4,3366.00,1,41,1,2.00,2,2.00,-50.0000,-0.5000,'1277230461','1277230461','','',0,1),(28,38,0,0,9,1,4070.00,0,0,0,0.00,0,0.00,0.0000,0.0000,'1276582157','1276582157','','',0,1),(43,38,0,0,4,2,4444.00,1,12,0,0.00,0,0.00,-2238.0000,-22.3800,'1276952739','1276952739','','',0,1),(47,43,0,0,2,1,5555.00,1,0,0,0.00,0,0.00,-30193.0000,-301.9300,'1276955065','1276955065','','',0,1),(45,42,0,0,2,4,3366.00,1,0,0,0.00,0,0.00,-42480.0000,-424.8000,'1276953033','1276953033','','',0,1),(46,41,0,0,4,2,4444.00,1,0,0,0.00,0,0.00,-2238.0000,-22.3800,'1276953062','1276953062','','',0,1),(38,1,0,0,2,5,5555.00,2,12,0,0.00,0,0.00,2189.0000,21.8900,'1276949635','1276949635','','',0,1),(39,0,55,2,55,1,4444.00,2,12,0,0.00,0,0.00,2024.0000,20.2400,'1276951188','1276951188','','',0,1),(40,38,0,0,3,0,2470.00,1,12,1,2.00,2,1.00,0.0000,0.0000,'1276951261','1276951261','','',0,1),(41,38,0,0,3,1,2470.00,1,12,1,1.00,4,2.00,500.0000,2.3000,'1276951512','1276951512','','',0,1),(49,39,0,7,5,1,3333.00,1,12,4,1.00,0,0.00,1395.0000,13.9500,'1277202736','1277202736','','',0,1),(53,37,0,0,3,3,2.47,1,41,1,2.00,2,2.00,-4987.5300,-49.8753,'1277972821','1277972821','','',0,1),(54,37,0,0,3,4,2.47,1,41,1,2.00,2,2.00,-4987.5300,-49.8753,'1277972835','1277972835','','',0,1),(55,46,0,0,6,2,5.56,1,0,0,0.00,0,0.00,-4834.4445,-48.3444,'1277982373','1277982373','','',0,1),(56,46,0,0,15,2,2.53,1,0,0,0.00,0,0.00,-2527.4700,-25.2747,'1277982373','1277982373','','',0,1),(57,47,0,0,8,2,1.44,1,12,2,2.00,2,3.00,-2878.5600,-28.7856,'1277986272','1277986272','','',0,1),(58,48,0,0,14,1,2.86,1,0,1,2.00,0,0.00,-2857.1400,-28.5714,'1277986481','1277986481','','',0,1),(59,49,0,0,14,1,2.86,2,12,0,0.00,0,0.00,-2857.1400,-28.5714,'1277986542','1277986542','','',0,1),(60,37,0,0,15,3,2530.00,1,41,1,2.00,2,2.00,-5110.0000,-51.1000,'1277986781','1277986781','','',0,1),(61,49,0,0,15,1,4444.00,2,12,0,0.00,0,0.00,1914.0000,19.1400,'1277986828','1277986828','','',0,1),(62,50,0,0,14,1,2860.00,1,12,1,0.00,0,0.00,0.0000,0.0000,'1280226928','1280226928','','',0,0),(63,50,0,0,10,1,2604.00,1,12,1,0.00,0,0.00,0.0000,0.0000,'1280226928','1280226928','','',0,0),(64,1,0,0,17,1,4620.00,0,12,0,0.00,0,0.00,0.0000,0.0000,'1280410056','1280410056','','',0,0),(65,51,0,0,17,1,4620.00,2,12,1,1.00,2,2.00,-2.0000,-0.0200,'1282119125','1282119125','','',0,0),(66,52,0,0,6,4,2420.00,1,12,1,1.00,2,1.00,-7260.0000,-72.6000,'1283334337','1283334337','','',0,0),(67,52,0,0,8,1,1440.00,1,12,1,1.00,2,1.00,0.0000,0.0000,'1283334337','1283334337','','',0,0),(68,53,0,0,15,1,2530.00,1,12,0,0.00,0,0.00,0.0000,0.0000,'1283335562','1283335562','','',0,0),(69,53,0,0,18,1,3150.00,1,12,0,0.00,0,0.00,0.0000,0.0000,'1283335562','1283335562','','',0,0);

--
-- Table structure for table `bstock_jwl_labour_info`
--

CREATE TABLE `bstock_jwl_labour_info` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'this is primary key',
  `po_order_id` int(11) NOT NULL,
  `so_order_id` int(11) NOT NULL,
  `product_jwl_id` int(10) NOT NULL,
  `karagir_id` int(11) NOT NULL,
  `no_of_hours` decimal(10,0) NOT NULL,
  `metal_id` int(10) NOT NULL,
  `metal_weight` varchar(10) NOT NULL,
  `metal_karat` varchar(10) NOT NULL,
  `color` varchar(255) NOT NULL,
  `price` varchar(10) NOT NULL,
  `balance` decimal(10,2) NOT NULL COMMENT 'Balance payment for this order.',
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  `status` enum('Paid','Unpaid','Partially Paid') NOT NULL COMMENT 'Will store whether the karigar has been paid for this particular job.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=53 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_jwl_labour_info`
--

INSERT INTO `bstock_jwl_labour_info` VALUES (1,0,0,1,1,0,1,'10','24','White Gold','0.00',0.00,'','','Paid'),(2,0,0,2,1,0,2,'20','12','Yellow Gold','0.00',0.00,'','','Paid'),(3,0,0,3,1,0,3,'30','18','White Gold','0.00',0.00,'','','Paid'),(4,0,0,3,1,0,4,'40','20','Silver','0.00',0.00,'','','Paid'),(5,0,0,5,1,0,5,'50','22','Platinum','0.00',0.00,'','','Paid'),(6,0,0,6,1,0,6,'60','16','Silver','0.00',0.00,'','','Paid'),(7,0,0,6,1,0,1,'.1','.1','White Gold','0.00',0.00,'','','Paid'),(8,0,0,7,1,0,1,'.2','.2','Yellow Gold','0.00',0.00,'','','Paid'),(9,0,0,8,1,0,2,'.3','.3','Platinum','0.00',0.00,'','','Paid'),(10,0,0,9,1,0,2,'.4','.4','Platinum','0.00',0.00,'','','Paid'),(11,0,0,10,1,0,3,'.5','.5','Silver','0.00',0.00,'','','Paid'),(12,0,0,11,1,0,3,'.6','.6','Silver','0.00',0.00,'','','Paid'),(13,0,0,12,1,0,4,'.7','.7','Silver','0.00',0.00,'','','Paid'),(14,0,0,13,1,0,4,'.8','.8','Silver','0.00',0.00,'','','Paid'),(15,0,0,14,1,0,5,'.9','.9','Yellow gold','0.00',0.00,'','','Paid'),(16,0,55,15,1,8,5,'1.0','1.0','Yellow gold','0.00',0.00,'','','Paid'),(17,0,30,15,1,0,0,'','','','0.00',0.00,'1283728290','1283728290','Paid'),(18,0,30,15,1,0,0,'','','','222',0.00,'1283728343','1283728343','Paid'),(19,0,30,15,1,0,0,'','','','48',0.00,'1283728343','1283728343','Paid'),(20,0,58,0,1,0,0,'','','','987',0.00,'1283757521','1283757521','Paid'),(21,0,59,0,1,0,0,'','','','600',0.00,'1283759338','1283759338','Paid'),(22,0,59,0,1,0,0,'','','','333',0.00,'1283759921','1283759921','Paid'),(23,0,59,0,1,0,0,'','','','800',0.00,'1283776417','1283776417','Paid'),(24,0,59,0,1,0,0,'','','','500',0.00,'1283776792','1283776792','Paid'),(25,0,59,0,1,0,0,'','','','1000',0.00,'1283776915','1283776915','Paid'),(26,0,60,0,1,0,0,'','','','500',500.00,'1283777612','1283777612','Unpaid'),(29,0,62,0,1,0,0,'','','','500',0.00,'1283852927','1283852927','Paid'),(28,0,37,0,1,0,0,'','','','3000',3000.00,'1283780127','1283780127','Unpaid'),(31,0,63,0,1,0,0,'','','','1000',0.00,'1283854941','1283854941','Paid'),(32,0,68,0,1,0,0,'','','','500',0.00,'1283872805','1283872805','Paid'),(33,0,70,0,1,0,0,'','','','5000',0.00,'1283873378','1283873378','Paid'),(34,0,71,0,1,0,0,'','','','500',0.00,'1283873848','1283873848','Paid'),(35,0,72,0,1,0,0,'','','','5000',5000.00,'1283875146','1283875146','Unpaid'),(36,0,79,0,1,0,0,'','','','200',200.00,'1285668597','1285668597','Unpaid'),(37,0,80,0,1,0,0,'','','','200',200.00,'1285668708','1285668708','Unpaid'),(38,0,81,0,1,0,0,'','','','122',122.00,'1285668868','1285668868','Unpaid'),(39,0,84,0,1,0,0,'','','','122',122.00,'1285676716','1285676716','Unpaid'),(40,0,85,0,1,0,0,'','','','222',222.00,'1285678016','1285678016','Unpaid'),(41,0,86,0,1,0,0,'','','','44',44.00,'1285678155','1285678155','Unpaid'),(42,0,87,0,1,0,0,'','','','44',44.00,'1285678201','1285678201','Unpaid'),(43,0,88,0,2,0,0,'','','','222',222.00,'1285678485','1285678485','Unpaid'),(44,0,89,0,3,0,0,'','','','55',0.00,'1285680273','1285680273','Paid'),(45,0,90,0,3,0,0,'','','','122',0.00,'1285680330','1285680330','Paid'),(46,0,8,0,2,0,0,'','','','250',250.00,'1288436368','1288436368','Unpaid'),(47,0,10,0,4,0,0,'','','','66',0.00,'1290681637','1290681637','Paid'),(48,0,14,0,4,0,0,'','','','250',91.00,'1291641659','1291641659','Partially Paid'),(49,0,15,0,3,0,0,'','','','700',577.00,'1291725679','1291725679','Partially Paid'),(50,0,16,0,2,0,0,'','','','1010.5',1010.50,'1291790598','1291790598','Unpaid'),(51,0,19,0,2,0,0,'','','','1500',1500.00,'1291794205','1291794205','Unpaid'),(52,0,20,0,1,0,0,'','','','222',222.00,'1304754457','1304754457','Unpaid');

--
-- Table structure for table `bstock_jwl_metal_info`
--

CREATE TABLE `bstock_jwl_metal_info` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'this is primary key',
  `po_order_id` int(11) NOT NULL,
  `so_order_id` int(11) NOT NULL,
  `product_jwl_id` int(10) NOT NULL,
  `metal_id` int(10) NOT NULL,
  `karagir_id` int(11) NOT NULL,
  `metal_weight` varchar(10) NOT NULL,
  `metal_karat` varchar(10) NOT NULL,
  `color` varchar(255) NOT NULL,
  `price` varchar(10) NOT NULL,
  `subtotal_inr` decimal(10,2) NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=56 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_jwl_metal_info`
--

INSERT INTO `bstock_jwl_metal_info` VALUES (1,0,0,1,1,0,'10','24','White Gold','10',0.00,'',''),(2,0,0,2,2,0,'20','12','Yellow Gold','20',0.00,'',''),(3,0,0,3,3,0,'30','18','White Gold','30',0.00,'',''),(4,0,0,3,4,0,'40','20','Silver','40',0.00,'',''),(5,0,0,5,5,0,'50','22','Platinum','50',0.00,'',''),(6,0,0,6,6,0,'60','16','Silver','60',0.00,'',''),(7,0,0,6,1,0,'.1','.1','White Gold','100',0.00,'',''),(8,0,0,7,1,0,'.2','.2','Yellow Gold','200',0.00,'',''),(9,0,0,8,2,0,'.3','.3','Platinum','300',0.00,'',''),(10,0,0,9,2,0,'.4','.4','Platinum','400',0.00,'',''),(11,0,0,10,3,0,'.5','.5','Silver','500',0.00,'',''),(12,0,0,11,3,0,'.6','.6','Silver','600',0.00,'',''),(13,0,0,12,4,0,'.7','.7','Silver','700',0.00,'',''),(14,0,0,13,4,0,'.8','.8','Silver','800',0.00,'',''),(15,0,0,14,5,0,'.9','.9','Yellow gold','900',0.00,'',''),(16,0,30,15,5,0,'1.0','1.0','Yellow gold','1000',0.00,'',''),(17,0,55,55,1,0,'3','18','','4990',0.00,'1263281971','1263281971'),(18,0,30,15,2,0,'4','','','4444',0.00,'','1283728290'),(19,0,30,15,2,0,'2','','','3333',0.00,'','1283728343'),(20,0,58,0,2,0,'3','','','18000',0.00,'','1283757521'),(21,0,58,0,2,0,'1','','','18000',0.00,'','1283757521'),(22,0,59,0,2,0,'3','','','18000',0.00,'','1283759338'),(23,0,59,0,2,0,'2','','','18000',0.00,'','1283759921'),(24,0,59,0,2,0,'2','','','1000',0.00,'','1283776417'),(25,0,59,0,2,0,'2','','','1500',0.00,'','1283776792'),(26,0,59,0,2,0,'5','','','1500',0.00,'','1283776915'),(27,0,60,0,2,0,'1','','','100',0.00,'','1283777612'),(28,0,37,0,2,0,'2','','','2500',0.00,'','1283780127'),(30,0,62,0,2,0,'500','','','1800',0.00,'','1283852927'),(31,0,62,0,2,0,'100','','','1800',0.00,'','1283852927'),(32,0,63,0,2,0,'2','','','2000',0.00,'','1283854941'),(33,0,68,0,2,0,'2','','','1000',0.00,'','1283872805'),(34,0,70,0,2,0,'5','','','1500',0.00,'','1283873378'),(35,0,71,0,2,0,'3','','','150',0.00,'','1283873848'),(36,0,72,0,2,0,'3','','','222',0.00,'','1283875146'),(37,0,79,0,2,0,'4','','','19850',0.00,'','1285668597'),(38,0,80,0,2,0,'4','','','19850',0.00,'','1285668708'),(39,0,81,0,2,0,'4','','','19850',0.00,'','1285668868'),(40,0,82,0,2,0,'3','','','19850',0.00,'','1285668956'),(41,0,83,0,2,0,'3','18','','19850',0.00,'','1285669106'),(42,0,84,0,2,0,'5','18','','18000',0.00,'','1285676716'),(43,0,86,0,2,0,'5','18','','19850',0.00,'','1285678155'),(44,0,87,0,2,1,'5','18','','19850',0.00,'','1285678201'),(45,0,88,0,2,2,'10','18','','20000',0.00,'','1285678485'),(46,0,89,0,2,3,'4','12','','14000',0.00,'','1285680273'),(47,0,90,0,2,3,'4','18','','19850',0.00,'','1285680330'),(48,0,8,0,2,2,'10','18','','1900',0.00,'','1288436368'),(49,0,8,0,2,0,'5','18','','1850',0.00,'','1288436368'),(50,0,10,0,2,4,'5','18','','1900',0.00,'','1290681637'),(51,0,14,0,2,4,'10','18','','1800',0.00,'','1291641659'),(52,0,15,0,2,3,'8','14','','1400',0.00,'','1291725679'),(53,0,16,0,2,2,'5','18','','1800',0.00,'','1291790598'),(54,0,19,0,2,2,'6','18','','1900',0.00,'','1291794205'),(55,0,20,0,2,1,'22','8','','22000',0.00,'','1304754457');

--
-- Table structure for table `bstock_karigar`
--

CREATE TABLE `bstock_karigar` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This will be the primary key.',
  `karigar_name` varchar(250) NOT NULL,
  `first_name` varchar(255) NOT NULL,
  `last_name` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `address` text NOT NULL,
  `phone1` varchar(50) NOT NULL,
  `phone2` varchar(50) NOT NULL,
  `fax` varchar(50) NOT NULL,
  `country` varchar(200) NOT NULL,
  `reference_no` varchar(50) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(50) NOT NULL COMMENT 'This is the created date for this record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This is the modified date for this record.',
  `iec_no` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 COMMENT='Stores vendor related information like Name, Address, etc.';

--
-- Dumping data for table `bstock_karigar`
--

INSERT INTO `bstock_karigar` VALUES (1,'Vishal & Co.','','','harshad.narvekar@gmail.com','Seepz, Andheri.','1234567','9999999','1111111','India','2222222','on','','1272312433','12345'),(2,'Harshad & Co.','','','harshad.narvekar@gmail.com','PRASAD CHAMBERS,\r\nOPERA HOUSE,MUMBAI 400 004','2224512','1253412','12355312','India','','on','1265801481','1212356342','0388256202'),(3,'Narvekars','','','harshad.narvekar@gmail.com','Avenue\r\nNew Link Rd\r\nMalad East','77772222243','2222333344','989899999','UK','Website','on','1265801481','1265801481','EIC234111'),(4,'Bigg Stock','','','harshad.narvekar@gmail.com','Bigg Stock,\r\nPradeep Niwas,\r\nAndheri East,\r\n400093','9819322550','9833488539','','','','on','1272312515','1272312515','55555');

--
-- Table structure for table `bstock_karigar_metal_info`
--

CREATE TABLE `bstock_karigar_metal_info` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `karigar_id` int(11) NOT NULL,
  `metal_weight` int(11) NOT NULL,
  `date_given` varchar(15) NOT NULL,
  `date_given_timestamp` int(11) NOT NULL,
  `remarks` varchar(500) NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=latin1 COMMENT='Stores metal given to karigar.';

--
-- Dumping data for table `bstock_karigar_metal_info`
--

INSERT INTO `bstock_karigar_metal_info` VALUES (1,1,200,'09/27/2010',1285587771,'',1285674171,1285674171),(2,2,300,'09/28/2010',1285679303,'',1285679303,1285679303),(3,3,2,'09/28/2010',1285680202,'',1285680202,1285680202),(4,3,10,'09/24/2010',1285334774,'',1285680374,1285680374),(5,1,0,'12/02/2010',1291348074,'',1291348074,1291348074),(6,1,50,'12/02/2010',1291348119,'',1291348119,1291348119),(7,2,50,'12/02/2010',1291348211,'',1291348211,1291348211),(8,4,20,'12/06/2010',1291641068,'',1291641068,1291641068),(9,4,22,'05/07/2011',1304754507,'',1304754507,1304754507);

--
-- Table structure for table `bstock_lastviewedstats`
--

CREATE TABLE `bstock_lastviewedstats` (
  `stat_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `product_id` int(10) NOT NULL COMMENT 'This is the foreign key for the products & is mapped to primary key of products table.',
  `customer_id` int(10) NOT NULL COMMENT 'This is the foreign key for customers & is mapped to primary key of customers table.',
  `viewed_date` varchar(50) NOT NULL COMMENT 'This is the timestamp when the product was viewed by the customer.',
  `customer_ip` varchar(50) NOT NULL COMMENT 'This will be the IP Address of the customer.',
  PRIMARY KEY (`stat_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='This table is used to store the stats of viewed products.';

--
-- Dumping data for table `bstock_lastviewedstats`
--


--
-- Table structure for table `bstock_manuprocess_labour`
--

CREATE TABLE `bstock_manuprocess_labour` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'this is primary key',
  `process_id` int(10) NOT NULL,
  `labour` varchar(50) NOT NULL,
  `hours` varchar(50) NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_manuprocess_labour`
--


--
-- Table structure for table `bstock_manuprocesses_jewel`
--

CREATE TABLE `bstock_manuprocesses_jewel` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'this is primary key',
  `process_name` varchar(255) NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_manuprocesses_jewel`
--


--
-- Table structure for table `bstock_metal_carat_multiplier`
--

CREATE TABLE `bstock_metal_carat_multiplier` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'this is primary key',
  `karat` varchar(10) NOT NULL,
  `24_karat_value` varchar(50) NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_metal_carat_multiplier`
--

INSERT INTO `bstock_metal_carat_multiplier` VALUES (1,'16','66.66','1263281971','1263281971'),(2,'18','75','1263281971','1263281971'),(3,'18','83.33','1263281971','1263281971'),(4,'24','99.99','1263281971','1263281971');

--
-- Table structure for table `bstock_moduleoperationtypes`
--

CREATE TABLE `bstock_moduleoperationtypes` (
  `operation_id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `name` varchar(100) NOT NULL COMMENT 'This will be the name of the operation i.e. Add / Modify, etc.',
  `description` text NOT NULL COMMENT 'This field will contain the description of the operation.',
  `is_active` enum('0','1') NOT NULL COMMENT 'This field will check whether this operation is currently active or not.',
  `created_date` varchar(50) NOT NULL COMMENT 'This field will contain the created date for this record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This field will contain the last modified date for this record.',
  PRIMARY KEY (`operation_id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1 COMMENT='Store the different type of operations that are possible in ';

--
-- Dumping data for table `bstock_moduleoperationtypes`
--

INSERT INTO `bstock_moduleoperationtypes` VALUES (1,'No rights','No rights of view, create/edit or delete\r\n\r\n(000)0','1','',''),(2,'Only view','Only viewing rights\r\n\r\n(001)1','1','',''),(3,'View/Create/Edit','Rights of view, create/edit\r\n(110) 6','','',''),(4,'View/Delete','Rights of viewing and deleting\r\n\r\n(011) 3','1','',''),(5,'View/Create/Edit/Delete','Full rights\r\n\r\n(111) 7','1','','');

--
-- Table structure for table `bstock_modules`
--

CREATE TABLE `bstock_modules` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `name` varchar(100) NOT NULL COMMENT 'This will be the name of the module.',
  `table_name` varchar(100) NOT NULL,
  `sequence` int(10) NOT NULL COMMENT 'This field will contain the order of the modules.',
  `presence` enum('0','1') NOT NULL COMMENT 'Whether this module is to be made visible to the customer or not.',
  `readonly` enum('0','1') NOT NULL COMMENT 'This will contain whether this module can be deleted / disabled.',
  `is_active` enum('on','off') NOT NULL DEFAULT 'on',
  `created_date` varchar(50) NOT NULL COMMENT 'This will contain the created date for this module.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will contain the last modified date for this module.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1 COMMENT='Store the modifiable as well as non-modifiable(prod) modules';

--
-- Dumping data for table `bstock_modules`
--

INSERT INTO `bstock_modules` VALUES (1,'Products','bstock_products',1,'1','1','on','',''),(2,'Customers','bstock_customers',0,'1','0','on','',''),(3,'Profiles','bstock_userprofiles',0,'1','0','off','',''),(4,'Orders','bstock_orders',1,'1','0','off','',''),(5,'Fields','bstock_fields',1,'1','0','off','',''),(6,'Plugins','bstock_plugins',1,'1','0','on','',''),(7,'Invoices','bstock_invoices',0,'1','','on','',''),(8,'Companies','bstock_exporters',0,'1','0','off','',''),(9,'Angadia','bstock_angadia',0,'','','on','',''),(10,'Vendors','bstock_vendors',0,'1','','off','',''),(11,'Brokers','bstock_brokers',0,'1','0','on','','');

--
-- Table structure for table `bstock_notifications`
--

CREATE TABLE `bstock_notifications` (
  `notification_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `name` varchar(250) NOT NULL COMMENT 'This will be the name for the notification, like, ''Order Email'', ''Register Email'', etc.',
  `subject` text NOT NULL COMMENT 'This will contain the subject which is to be sent in the email notification.',
  `body` text NOT NULL COMMENT 'This will be the body of the email that will be sent out.',
  `status` enum('0','1') NOT NULL COMMENT 'This will contain the status for the notification.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will contain the created date for this notification.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will contain the last modified date for this notification.',
  PRIMARY KEY (`notification_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store notifications that are sent out from the system.';

--
-- Dumping data for table `bstock_notifications`
--


--
-- Table structure for table `bstock_options`
--

CREATE TABLE `bstock_options` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `blog_id` int(11) NOT NULL DEFAULT '0',
  `option_name` varchar(64) NOT NULL DEFAULT '',
  `option_value` longtext NOT NULL,
  `autoload` varchar(20) NOT NULL DEFAULT 'yes',
  PRIMARY KEY (`id`,`blog_id`,`option_name`),
  KEY `option_name` (`option_name`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_options`
--

INSERT INTO `bstock_options` VALUES (1,0,'stylesheet','MM','yes'),(2,0,'template','MM','yes'),(3,0,'home_title','This is my home page title','yes'),(4,0,'logo','logo.jpg','yes'),(5,0,'homepage','home.php','yes'),(6,0,'after_login','search.php','yes'),(7,0,'default_from','admin@biggventures.com','yes'),(8,0,'default_admin','admin@biggventures.com','yes'),(9,0,'after_signup','thank-you.php','yes'),(10,0,'company_name','Anurag Enterprise','yes'),(11,0,'company_address','18 PATHARE HOUSE, 1ST FLR, 1ST BHATWADI LANE, GIRGAUM, OPERA HOUSE,         MUMBAI - 400 004.\r\nTEL: 23873231  / 56356259','yes');

--
-- Table structure for table `bstock_orderbilling`
--

CREATE TABLE `bstock_orderbilling` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `order_id` int(10) NOT NULL COMMENT 'This is the foreign key for the orders table & is mapped to it''s primary key.',
  `billing_address_id` int(10) NOT NULL COMMENT 'This is the foriegn key of the billing address(customerbilling) & is mapped to it''s primary key.',
  `created_date` varchar(50) NOT NULL COMMENT 'This is the date when this record was created. Most of the times it will be same as date when order was placed.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This is the last modified date.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=167 DEFAULT CHARSET=latin1 COMMENT='Store the billing address of the customer for an order.';

--
-- Dumping data for table `bstock_orderbilling`
--

INSERT INTO `bstock_orderbilling` VALUES (1,0,1,'1262110181','1262110181'),(2,0,1,'1262110240','1262110240'),(5,3,26,'1262111641','1262111641'),(6,4,27,'1262157798','1262157798'),(7,5,28,'1262179789','1262179789'),(8,6,29,'1262180252','1262180252'),(9,7,30,'1262264490','1262264490'),(10,8,31,'1262264686','1262264686'),(11,9,32,'1262265725','1262265725'),(12,10,33,'1262265922','1262265922'),(13,11,34,'1262266505','1262266505'),(14,12,35,'1262266611','1262266611'),(15,0,35,'1262266659','1262266659'),(16,13,36,'1262343767','1262343767'),(17,14,37,'1262343919','1262343919'),(18,0,37,'1262343970','1262343970'),(19,0,37,'1262344009','1262344009'),(20,0,37,'1262344033','1262344033'),(21,0,37,'1262344068','1262344068'),(22,0,37,'1262344117','1262344117'),(23,0,37,'1262344164','1262344164'),(24,0,37,'1262344214','1262344214'),(25,0,37,'1262344271','1262344271'),(26,0,37,'1262344330','1262344330'),(27,0,37,'1262344389','1262344389'),(28,0,37,'1262344443','1262344443'),(29,0,37,'1262344508','1262344508'),(30,15,38,'1262367422','1262367422'),(31,16,39,'1262367559','1262367559'),(32,17,40,'1262629987','1262629987'),(33,18,41,'1262630113','1262630113'),(34,19,42,'1262631878','1262631878'),(35,20,43,'1262632114','1262632114'),(36,21,44,'1262693035','1262693035'),(37,22,45,'1262693226','1262693226'),(38,0,45,'1262693246','1262693246'),(39,23,46,'1262693351','1262693351'),(40,24,47,'1262693468','1262693468'),(41,25,48,'1262693539','1262693539'),(42,26,49,'1262693803','1262693803'),(43,27,50,'1262693872','1262693872'),(44,28,51,'1262694014','1262694014'),(45,29,52,'1262694087','1262694087'),(46,30,53,'1262694108','1262694108'),(47,31,54,'1262694472','1262694472'),(48,32,55,'1262710721','1262710721'),(49,33,56,'1262716822','1262716822'),(50,34,57,'1262717528','1262717528'),(51,35,58,'1262719518','1262719518'),(52,36,59,'1262719625','1262719625'),(53,37,60,'1262719701','1262719701'),(54,38,61,'1262719744','1262719744'),(55,39,62,'1262719836','1262719836'),(56,40,63,'1262757505','1262757505'),(57,41,64,'1262799020','1262799020'),(58,42,65,'1262799087','1262799087'),(59,43,66,'1262799327','1262799327'),(60,44,67,'1262799450','1262799450'),(61,45,68,'1262799831','1262799831'),(62,46,69,'1262800122','1262800122'),(63,47,70,'1262800379','1262800379'),(64,48,71,'1262800497','1262800497'),(65,49,72,'1262800908','1262800908'),(66,50,73,'1262801270','1262801270'),(67,51,74,'1262801392','1262801392'),(68,52,75,'1262801452','1262801452'),(69,53,76,'1262801536','1262801536'),(70,54,77,'1262801643','1262801643'),(71,55,78,'1262801863','1262801863'),(72,56,79,'1262802073','1262802073'),(73,57,80,'1262802533','1262802533'),(74,58,81,'1262802776','1262802776'),(75,59,82,'1262803192','1262803192'),(76,60,83,'1262803561','1262803561'),(77,61,84,'1262803720','1262803720'),(78,62,85,'1262803801','1262803801'),(79,63,86,'1262803864','1262803864'),(80,64,87,'1263215539','1263215539'),(81,65,88,'1263216890','1263216890'),(82,66,89,'1263491902','1263491902'),(83,67,90,'1263495012','1263495012'),(84,0,88,'1263637450','1263637450'),(85,0,88,'1263637482','1263637482'),(86,68,88,'1263637641','1263637641'),(87,69,88,'1263637671','1263637671'),(88,70,88,'1263637675','1263637675'),(89,71,88,'1263637721','1263637721'),(90,72,88,'1263637786','1263637786'),(91,73,88,'1263637795','1263637795'),(92,74,88,'1263637836','1263637836'),(93,75,88,'1263637873','1263637873'),(94,76,88,'1263638265','1263638265'),(95,77,88,'1263638342','1263638342'),(96,78,88,'1263638369','1263638369'),(97,79,88,'1263638484','1263638484'),(98,80,88,'1263638638','1263638638'),(99,81,88,'1263639344','1263639344'),(100,82,88,'1263639524','1263639524'),(101,83,88,'1263639564','1263639564'),(102,84,91,'1263639823','1263639823'),(103,85,92,'1263643677','1263643677'),(104,86,93,'1263821521','1263821521'),(105,87,94,'1263904720','1263904720'),(106,88,95,'1263905305','1263905305'),(107,89,96,'1264224678','1264224678'),(108,90,97,'1264234581','1264234581'),(109,91,98,'1264412854','1264412854'),(110,92,99,'1264415024','1264415024'),(111,93,100,'1264415258','1264415258'),(112,94,101,'1264415374','1264415374'),(113,95,102,'1264415586','1264415586'),(114,96,103,'1264415715','1264415715'),(115,97,104,'1264415820','1264415820'),(116,98,105,'1264415936','1264415936'),(117,99,106,'1264416016','1264416016'),(118,100,107,'1264416120','1264416120'),(119,101,108,'1264416237','1264416237'),(120,102,109,'1264416407','1264416407'),(121,103,110,'1264416476','1264416476'),(122,104,111,'1264416530','1264416530'),(123,105,112,'1264416614','1264416614'),(124,106,113,'1264675367','1264675367'),(125,107,114,'1264675417','1264675417'),(126,108,115,'1264675515','1264675515'),(127,109,116,'1264675570','1264675570'),(128,110,117,'1264675609','1264675609'),(129,111,118,'1264675663','1264675663'),(130,112,119,'1265031295','1265031295'),(131,113,120,'1265031538','1265031538'),(132,114,121,'1265031671','1265031671'),(133,115,122,'1265107631','1265107631'),(134,116,125,'1265295719','1265295719'),(135,117,126,'1265298600','1265298600'),(136,118,127,'1265303985','1265303985'),(137,119,128,'1265651857','1265651857'),(138,120,129,'1265651981','1265651981'),(139,121,130,'1265652252','1265652252'),(140,122,131,'1265652542','1265652542'),(141,123,132,'1265652613','1265652613'),(142,124,133,'1265652952','1265652952'),(143,125,134,'1265652954','1265652954'),(144,126,135,'1265653003','1265653003'),(145,127,136,'1265653041','1265653041'),(146,128,137,'1265653232','1265653232'),(147,129,138,'1265712794','1265712794'),(148,130,139,'1265787624','1265787624'),(149,131,144,'1266476450','1266476450'),(150,0,144,'1266476818','1266476818'),(151,132,145,'1266477098','1266477098'),(152,133,147,'1266488192','1266488192'),(153,134,148,'1266495976','1266495976'),(154,135,149,'1266496008','1266496008'),(155,136,154,'1266593869','1266593869'),(156,137,155,'1266594074','1266594074'),(157,138,156,'1266594797','1266594797'),(158,139,157,'1266594911','1266594911'),(159,140,158,'1266594985','1266594985'),(160,141,159,'1266595012','1266595012'),(161,142,160,'1266648337','1266648337'),(162,143,162,'1266668803','1266668803'),(163,144,164,'1266669304','1266669304'),(164,145,165,'1266669471','1266669471'),(165,1,168,'1269635676','1269635676'),(166,2,169,'1274699151','1274699151');

--
-- Table structure for table `bstock_orderitems`
--

CREATE TABLE `bstock_orderitems` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key for the order items.',
  `order_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to primary key of orders table.',
  `product_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to primary key of products table.',
  `quantity` int(10) NOT NULL COMMENT 'Quantity ordered for this particular item.',
  `price` decimal(10,2) NOT NULL COMMENT 'The price for this item after multiplying with quantity.',
  `price_inr` decimal(10,0) NOT NULL,
  `percent_back` decimal(10,0) NOT NULL,
  `aadat` decimal(10,0) NOT NULL,
  `dollar_rate` decimal(10,0) NOT NULL,
  `cash_back` decimal(10,0) NOT NULL,
  `total_in_dollar` decimal(10,0) NOT NULL,
  `total_in_inr` decimal(10,0) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `broker_id_1` int(10) NOT NULL,
  `brokerage_1` decimal(10,2) NOT NULL,
  `brokerage_1_amt_inr` decimal(10,2) NOT NULL,
  `broker_id_2` int(10) NOT NULL,
  `brokerage_2` decimal(10,2) NOT NULL,
  `profit_amount` decimal(10,4) NOT NULL,
  `profit_percent` decimal(10,4) NOT NULL,
  `created_date` varchar(50) NOT NULL COMMENT 'This will be the date when this record was inserted i.e. when the order was placed.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will be the last modified date for this order.',
  `discount_percent` varchar(20) NOT NULL COMMENT 'Percentage of discount offered on this order item.',
  `discount_value` varchar(20) NOT NULL COMMENT 'Discount (in value) offered on this order item.',
  `quantity_shipped` int(10) NOT NULL COMMENT 'This will be the quantity of the item that has been shipped so far.',
  `exporter_id` int(11) NOT NULL,
  `piece_price_inr` decimal(10,0) NOT NULL,
  `piece_price_dollar` decimal(10,0) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=25 DEFAULT CHARSET=latin1 COMMENT='Store the individual product items of an order.';

--
-- Dumping data for table `bstock_orderitems`
--

INSERT INTO `bstock_orderitems` VALUES (1,1,363,1,0.00,170000,0,1,0,2,0,296881,0,2,0,0.00,0.00,0,0.00,0.0000,0.0000,'1285735087','1285735087','','',0,0,0,0),(2,2,362,1,2700.00,111119,15,2,47,1,3117,146511,0,2,1,1.00,1465.11,0,0.00,-34696.2300,-346.9623,'1286285494','1286285494','','',0,0,0,0),(4,7,372,1,2200.00,87120,28,2,44,1,2152,94667,0,2,0,1.00,946.67,0,0.00,-2097.7300,-20.9773,'1288346119','1288346119','','',0,0,121968,3080),(5,8,368,1,2200.00,90000,0,0,45,0,6600,297000,0,2,4,0.00,0.00,0,0.00,-5346.0000,-53.4600,'1288436368','1288436368','','',0,0,270000,6600),(6,9,6,1,200.00,9000,10,3,45,2,202,9086,0,1,0,1.00,90.86,0,0.00,0.0000,0.0000,'1290679011','1290679011','','',0,0,10620,236),(7,9,373,1,1600.00,72000,10,3,45,1,1659,74673,0,1,0,0.00,0.00,0,0.00,-1306.7000,-13.0670,'1290679011','1290679011','','',0,0,86400,1920),(8,10,3,1,225.00,9900,17,2,44,1,181,7972,0,2,4,1.00,79.72,0,0.00,0.0000,0.0000,'1290681637','1290681637','','',0,0,9900,225),(9,10,4,1,250.00,11250,0,0,45,0,253,11363,0,2,4,0.00,0.00,0,0.00,0.0000,0.0000,'1290681637','1290681637','','',0,0,11363,253),(10,11,365,1,2000.00,90000,0,0,45,0,3093,139176,0,2,0,0.00,0.00,0,0.00,-3092.8000,-30.9280,'1291298241','1291298241','','',0,0,0,0),(12,12,396,1,3333.00,149985,44,0,45,0,3733,167983,0,1,0,0.00,0.00,0,0.00,-4993.5800,-49.9358,'1291303922','1291303922','','',0,0,299970,6666),(13,12,422,1,2222.00,99990,33,1,45,1,2918,131320,0,1,0,0.00,0.00,0,0.00,-3431.6600,-34.3166,'1291303922','1291303922','','',0,0,199980,4444),(14,12,416,1,3333.00,0,33,1,45,1,4377,196980,0,1,0,45.00,0.00,0,0.00,-4993.5800,-49.9358,'1291304040','1291304040','','',0,0,0,0),(15,13,391,1,3333.00,0,0,0,45,0,5045,227004,0,1,0,0.00,0.00,0,0.00,-5044.5400,-50.4454,'1291317164','1291317164','','',0,0,0,6666),(16,13,370,1,2000.00,4000,0,0,2,0,1921,3841,0,1,0,0.00,0.00,0,0.00,-1920.6000,-19.2060,'1291317164','1291317164','','',0,0,4000,2000),(17,14,138,1,500.00,22500,19,2,45,1,200,9018,0,2,0,1.00,90.18,0,0.00,0.0000,0.0000,'1291641659','1291641659','','',0,0,11475,255),(18,15,102,1,400.00,17600,0,2,44,1,171,7513,0,3,2,1.00,75.13,0,0.00,0.0000,0.0000,'1291725679','1291725679','','',0,0,7744,176),(19,16,362,1,5555.00,249975,25,1,45,1,8167,367501,0,3,1,2.00,7350.02,0,0.00,-15043.0000,-150.4300,'1291730504','1291730504','','',0,0,499950,11110),(20,17,159,1,5555.00,249975,25,1,45,1,8167,367501,0,3,0,2.00,7350.02,0,0.00,0.0000,0.0000,'1291790878','1291790878','','',0,0,499950,11110),(21,18,137,1,5555.00,249975,25,1,45,1,8167,367501,0,3,0,3.00,11025.03,0,0.00,0.0000,0.0000,'1291791210','1291791210','','',0,0,499950,11110),(23,19,364,1,1500.00,66000,22,1,44,1,1720,75683,0,3,2,2.00,1513.66,0,0.00,-1558.7900,-15.5879,'1291794205','1291794205','','',0,0,99000,2250),(24,20,367,1,6700.00,0,0,0,44,0,20801,915248,0,1,1,0.00,0.00,0,0.00,-20801.0900,-208.0109,'1304754457','1304754457','','',0,0,0,26800);

--
-- Table structure for table `bstock_ordernotificationhistory`
--

CREATE TABLE `bstock_ordernotificationhistory` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `order_id` int(10) NOT NULL COMMENT 'This is the foreign key for the orders table & is mapped to it''s primary key.',
  `email_address` varchar(250) NOT NULL COMMENT 'This is kept incase the user wants  to send the notification to another  email address specified by the  customer which is different then the  email address on account.',
  `comments` text NOT NULL COMMENT 'Comments entered by the user for this notification.',
  `sent_date` varchar(50) NOT NULL COMMENT 'This will store the date when the notification was sent.',
  `user_id` int(10) NOT NULL COMMENT 'This is the foreign key of the users table & is mapped to it''s primary key. User who sent the notification is stored.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=525 DEFAULT CHARSET=latin1 COMMENT='Record the notifications sent to each customer by the system';

--
-- Dumping data for table `bstock_ordernotificationhistory`
--

INSERT INTO `bstock_ordernotificationhistory` VALUES (1,8,'harshad.narvekar@gmail.com','I am partially shipping this...','1262351112',1),(2,8,'kothari.vishal@gmail.com','This is being cancelled...make your payment.','1262351255',1),(3,8,'kothari.vishal@gmail.com','This is being cancelled...make your payment immediately.','1262351323',1),(4,8,'kothari.vishal@gmail.com','This is being cancelled...make your payment immediately.','1262351370',1),(5,8,'kothari.vishal@gmail.com','I am cancelling this .','1262351391',1),(6,8,'kothari.vishal@gmail.com','I am cancelling this .','1262351440',1),(7,8,'kothari.vishal@gmail.com','I am cancelling this .','1262351503',1),(8,8,'kothari.vishal@gmail.com','Enter order comments here. adsf ','1262351520',1),(9,8,'kothari.vishal@gmail.com','Enter order comments here. adsf asdf ','1262351544',1),(10,8,'kothari.vishal@gmail.com','Enter order comments here. adsf asdf ','1262351577',1),(11,8,'kothari.vishal@gmail.com','Enter order comments here. adsf asdf ','1262351631',1),(12,8,'kothari.vishal@gmail.com','Enter order comments here. adsf asdf ','1262351658',1),(13,8,'kothari.vishal@gmail.com','Enter order comments here. adsf asdf ','1262351729',1),(14,8,'kothari.vishal@gmail.com','Enter order comments here. adsf asdf ','1262351788',1),(15,8,'kothari.vishal@gmail.com','Enter order comments here. adsf asdf ','1262351850',1),(16,8,'kothari.vishal@gmail.com','Enter order comments here. adsf asdf ','1262351892',1),(17,8,'kothari.vishal@gmail.com','Enter order comments here. adsf asdf ','1262351938',1),(18,8,'kothari.vishal@gmail.com','Enter order comments here. adsf asdf ','1262351995',1),(19,8,'kothari.vishal@gmail.com','Enter order comments here. adsf asdf ','1262352018',1),(20,8,'','Enter order comments here. adsf asdf ','1262352436',1),(21,8,'','Enter order comments here. placed...','1262353477',1),(22,16,'kothari.vishal@gmail.com','partially shipped man.','1262429128',1),(23,16,'kothari.vishal@gmail.com','Enter order comments here.','1262429876',1),(24,16,'kothari.vishal@gmail.com','Enter order comments here.','1262430988',1),(25,16,'kothari.vishal@gmail.com','Enter order comments here.','1262432481',1),(26,16,'kothari.vishal@gmail.com','Enter order comments here.','1262433274',1),(27,0,'','','1262433764',1),(28,0,'','','1262433816',1),(29,0,'','','1262433924',1),(30,0,'','','1262433987',1),(31,0,'','','1262434039',1),(32,16,'kothari.vishal@gmail.com','Enter order comments here.asd ','1262434115',1),(33,16,'kothari.vishal@gmail.com','Completed...','1262436241',1),(34,1,'','let\'s test this man...','1262678961',1),(35,4,'','pending yaar...','1262681775',1),(36,1,'kothari.vishal@gmail.com','','1262682029',1),(37,3,'kothari.vishal@gmail.com','This is being shipped partially.','1262682243',1),(38,3,'kothari.vishal@gmail.com','M cancelling this now.','1262682496',1),(39,4,'kothari.vishal@gmail.com','asdfasdf \n]\n\nadfasdfadf \n\nasdfasdfdasf\n\nasdfadsf','1262682822',1),(40,6,'','This one is fully shipped...','1262682873',1),(41,6,'kothari.vishal@gmail.com','This is fully done now. Thanks for the payment.','1262683269',1),(42,7,'kothari.vishal@gmail.com','I am partially shipping this one. Please confirm by phone once you receive it. Thanks.','1262683442',1),(43,10,'kothari.vishal@gmail.com','Completing this. Thanks for payment.','1262683571',1),(44,10,'kothari.vishal@gmail.com','Finished now.','1262684688',1),(45,10,'kothari.vishal@gmail.com','Please cancel the previous shipment ','1262684836',1),(46,1,'kothari.vishal@gmail.com','Enter order comments here.','1262759323',1),(47,1,'kothari.vishal@gmail.com','I Oam only shipping frist 2 items.','1262760240',1),(48,6,'harshad@biggventures.com','asdfasdfasdf','1263648589',1),(49,6,'kothari.vishal@gmail.com','Great. Ship this one.','1263648808',1),(50,6,'kothari.vishal@gmail.com','Payment received boss.','1263649485',1),(51,3,'','This is shipped partially.','1263886059',1),(52,3,'','This is shipped partially.','1263886801',1),(53,3,'','This is shipped partially.','1263886859',1),(54,3,'','This is shipped partially.','1263887779',1),(55,3,'','This is shipped partially.','1263888094',1),(56,3,'','This is being shipped partially now.','1263888430',1),(57,3,'','This is being shipped partially now.','1263889072',1),(58,3,'','This is being shipped partially now.','1263889133',1),(59,3,'','Enter order comments here.','1263890053',1),(60,3,'','Enter order comments here.','1263890118',1),(61,3,'','Enter order comments here.','1263890186',1),(62,3,'','Enter order comments here.','1263891059',1),(63,3,'','Enter order comments here.','1263891215',1),(64,3,'','Enter order comments here.','1263891284',1),(65,3,'','Enter order comments here.','1263895661',1),(66,3,'','Enter order comments here.','1263896088',1),(67,3,'','Enter order comments here.','1263896170',1),(68,3,'','Enter order comments here.','1263896208',1),(69,3,'','Order is now completed...','1263897636',1),(70,6,'vishal@biggventures.com','This order is pending now...','1263900267',1),(71,6,'vishal@biggventures.com','partially shipped man.','1263901082',1),(72,6,'vishal@biggventures.com','Enter order comments here. adsfafsd ','1263902128',1),(73,6,'vishal@biggventures.com','Enter order comments here. adsf asdf','1263902291',1),(74,33,'','Please find the shipment ','1263961481',1),(75,36,'','Enter order comments here.','1263963773',1),(76,37,'','Enter order comments here.','1263963917',1),(77,38,'','Shipping this order partially right now.','1263964485',1),(78,39,'','This one is shipped. Please confirm once received.','1263965573',1),(79,44,'','Shipped yaar.','1263992280',1),(80,50,'','Shipped last time.','1264048815',1),(81,51,'','sHIPPED.','1264049535',1),(82,3,'vishal@biggventures.com','Pending.','1264059236',1),(83,3,'vishal@biggventures.com','Pending.','1264059300',1),(84,3,'vishal@biggventures.com','shipped now...','1264059363',1),(85,88,'','I have shipped this now.','1264060667',1),(86,3,'','Enter order comments here.','1264405023',1),(87,3,'','Enter order comments here.','1264405770',1),(88,3,'','Enter order comments here.','1264406352',1),(89,3,'','Enter order comments here.','1264406421',1),(90,3,'','Enter order comments here.','1264406537',1),(91,3,'','Enter order comments here.','1264406685',1),(92,3,'','Enter order comments here.','1264406926',1),(93,3,'','Enter order comments here.','1264407077',1),(94,3,'kothari.vishal@gmail.com','Enter order comments here.','1264408695',1),(95,3,'','Enter order comments here.','1264408862',1),(96,3,'','Enter order comments here. asdfasdfasdf','1264408968',1),(97,3,'','Enter order comments here. asdfasdfasdf','1264409127',1),(98,3,'','Enter order comments here. asdfasdfasdf','1264410762',1),(99,3,'','Enter order comments here. asdfasdfasdf','1264410965',1),(100,1,'kothari.vishal@gmail.com','This order is now complete. Please confirm receipt of all items.','1264411023',1),(101,1,'kothari.vishal@gmail.com','This order is now cancelled. Please confirm receipt of all items.','1264411099',1),(102,1,'','Enter order comments here. adsf ','1264420747',1),(103,65,'','I am shipping this one. Please confirm receipt.','1264421970',1),(104,66,'','This one is shipped.','1264423618',1),(105,40,'','Shipped.','1264423932',1),(106,117,'','Enter order comments here.','1265299140',1),(107,118,'swapnapatil2305@gmail.com','Your order is shipped on 4th Feb 2010.\n\nBelow are the shiiping details\nShip no. 123\nConsignment -- AB1234LP','1265304585',1),(108,118,'swapnapatil2305@gmail.com','Your order is shipped on 4th Feb 2010.\n\nBelow are the shiiping details\nShip no. 123\nConsignment -- AB1234LP','1265304593',1),(109,118,'swapnapatil2305@gmail.com','Your order is shipped on 4th Feb 2010.\n\nBelow are the shiiping details\nShip no. 123\nConsignment -- AB1234LP','1265304594',1),(110,118,'swapnapatil2305@gmail.com','Your corder is complete and will be soon shipped','1265304654',1),(111,118,'swapnapatil2305@gmail.com','Your corder is complete and will be soon shipped','1265304663',1),(112,118,'swapnapatil2305@gmail.com','We are very sorry to inform you that your order is cancelled','1265304727',1),(113,118,'swapnapatil2305@gmail.com','We are very sorry to inform you that your order is cancelled','1265304824',1),(114,118,'','Your order has been placed','1265305016',1),(115,127,'','This order is being shipped.','1265700096',1),(116,114,'','SHipping this one. Please check ','1265700409',1),(117,105,'','shipping.','1265702722',1),(118,129,'','This is shipped now...','1265713238',1),(119,129,'vishal@biggventures.com','Order has been shipped. please confirm once you receive shipment.','1265713351',1),(120,130,'swapnapatil2305@gmail.com','Your order is palced successfully','1265788650',1),(121,130,'swapnapatil2305@gmail.com','Your order is palced successfully','1265789238',1),(122,130,'','Enter order comments here.','1265789424',1),(123,133,'shahjatin77@gmail.com','\\this item is out of stock right now...','1266489181',1),(124,133,'','partially shipping as full order is not available.','1266489902',1),(125,145,'vishal@biggventures.com','Shipped dude.','1266671683',1),(126,145,'','SHIPPING IT FULLY.','1266671746',1),(127,1,'vishal@biggventures.com','Enter order comments here.','1269637506',1),(128,1,'','Enter order comments here.','1274260062',1),(129,1,'','Enter order comments here.','1274260063',1),(130,1,'','Enter order comments here.a','1274260064',1),(131,1,'','Enter order comments here.a','1274260065',1),(132,1,'','Enter order comments here.a','1274260066',1),(133,1,'','Enter order comments here.a','1274260067',1),(134,1,'','Enter order comments here.a','1274260085',1),(135,1,'','Enter order comments here.a','1274260086',1),(136,1,'','Enter order comments here.a','1274260086',1),(137,1,'','Enter order comments here.a','1274260087',1),(138,1,'','Enter order comments here.a','1274260088',1),(139,1,'','Enter order comments here.a','1274260089',1),(140,1,'','Enter order comments here.a','1274260090',1),(141,1,'','Enter order comments here.a','1274260091',1),(142,1,'','Enter order comments here.a','1274260093',1),(143,1,'','Enter order comments here.a','1274260094',1),(144,1,'','Enter order comments here.a','1274260095',1),(145,1,'','Enter order comments here.a','1274260097',1),(146,1,'','Enter order comments here.a','1274260098',1),(147,1,'','Enter order comments here.a','1274260101',1),(148,1,'','Enter order comments here.a','1274260105',1),(149,1,'','Enter order comments here.a','1274260108',1),(150,1,'','Enter order comments here.a','1274260109',1),(151,1,'','Enter order comments here.a','1274260111',1),(152,1,'','Enter order comments here.a','1274260111',1),(153,1,'','Enter order comments here.a','1274260112',1),(154,1,'','Enter order comments here.a','1274260113',1),(155,1,'','Enter order comments here.a','1274260114',1),(156,1,'','Enter order comments here.a','1274260115',1),(157,1,'','Enter order comments here.a dfsdfasd ','1274260116',1),(158,1,'','Enter order comments here.a dfsdfasd ','1274260119',1),(159,1,'','Enter order comments here.a','1274260120',1),(160,1,'','Enter order comments here.a dfsdfasd ','1274260121',1),(161,1,'','Enter order comments here.a','1274260123',1),(162,1,'','Enter order comments here.a','1274260124',1),(163,1,'','Enter order comments here.a','1274260125',1),(164,1,'','Enter order comments here.','1274260150',1),(165,1,'','Enter order comments here.','1274260151',1),(166,1,'','Enter order comments here.','1274260152',1),(167,1,'','','1276065647',1),(168,1,'','','1276080480',1),(169,1,'','','1276080758',1),(170,1,'','','1276080906',1),(171,1,'','','1276080946',1),(172,1,'','','1276081008',1),(173,1,'','','1276089195',1),(174,1,'','','1276094343',1),(175,1,'','test','1276094394',1),(176,1,'','','1276094427',1),(177,1,'','','1276094468',1),(178,1,'','','1276094491',1),(179,1,'','','1276094521',1),(180,1,'','test','1276095136',1),(181,1,'','','1276095251',1),(182,1,'','','1276095739',1),(183,1,'','','1276095860',1),(184,1,'','','1276095916',1),(185,1,'','','1276097145',1),(186,1,'','','1276097259',1),(187,1,'','','1276097519',1),(188,1,'','','1276098126',1),(189,1,'','','1276098531',1),(190,1,'','','1276098578',1),(191,1,'','','1276098596',1),(192,1,'','','1276099472',1),(193,1,'','','1276099491',1),(194,1,'','','1276099522',1),(195,1,'','','1276099562',1),(196,1,'','','1276099632',1),(197,1,'','','1276099681',1),(198,1,'','','1276099759',1),(199,1,'','','1276099941',1),(200,1,'','','1276099975',1),(201,1,'','','1276099979',1),(202,1,'','','1276100036',1),(203,1,'','','1276100053',1),(204,1,'','','1276100058',1),(205,1,'','','1276100090',1),(206,1,'','','1276100111',1),(207,1,'','','1276242977',1),(208,1,'','','1276246325',1),(209,1,'','','1276246473',1),(210,1,'','','1276247512',1),(211,1,'','','1276247576',1),(212,1,'','','1276248169',1),(213,2,'','testte et s','1276252253',1),(214,2,'harshad.narvekar@gmail.com','comments','1276253915',1),(215,2,'harshad.narvekar@gmail.com','comments','1276255049',1),(216,4,'','','1276256010',1),(217,4,'','','1276256071',1),(218,5,'harshad.narvekar@gmail.com','test','1276256113',1),(219,5,'','','1276256452',1),(220,5,'','','1276256925',1),(221,5,'','','1276257435',1),(222,6,'harshad.narvekar@gmail.com','tet','1276258446',1),(223,7,'','','1276258670',1),(224,8,'harshad.narvekar@gmail.com','tes','1276258756',1),(225,9,'','','1276259664',1),(226,10,'','','1276259840',1),(227,11,'harshad.narvekar@gmail.com','test','1276260104',1),(228,10,'','','1276260170',1),(229,10,'','','1276260341',1),(230,10,'','','1276260526',1),(231,10,'','','1276260568',1),(232,12,'','','1276264737',1),(233,1,'','','1276265544',1),(234,1,'','','1276265573',1),(235,1,'','','1276265609',1),(236,1,'','','1276265714',1),(237,1,'','','1276266133',1),(238,9,'','','1276267795',1),(239,1,'','','1276267823',1),(240,1,'','','1276268399',1),(241,13,'harshad.narvekar@gmail.com','','1276268556',1),(242,14,'','','1276268765',1),(243,15,'','','1276268868',1),(244,16,'','','1276269119',1),(245,17,'','','1276269852',1),(246,18,'','','1276269994',1),(247,19,'','','1276270055',1),(248,20,'','','1276270147',1),(249,21,'','','1276270383',1),(250,22,'','','1276270733',1),(251,23,'','','1276270812',1),(252,24,'','','1276271037',1),(253,25,'','','1276271039',1),(254,25,'','','1276271149',1),(255,25,'','','1276274715',1),(256,26,'','','1276522282',1),(257,26,'','','1276522502',1),(258,26,'','','1276522685',1),(259,26,'','','1276522707',1),(260,26,'','','1276522884',1),(261,26,'','','1276522906',1),(262,26,'','','1276522915',1),(263,27,'','','1276522985',1),(264,28,'','','1276523038',1),(265,29,'','','1276523268',1),(266,30,'','','1276523353',1),(267,31,'','','1276523825',1),(268,32,'','','1276523978',1),(269,33,'','','1276524040',1),(270,34,'','','1276524132',1),(271,35,'','','1276524168',1),(272,36,'','','1276524306',1),(273,37,'','','1276524420',1),(274,37,'','','1276524438',1),(275,37,'','','1276524559',1),(276,38,'','','1276582157',1),(277,38,'','','1276582173',1),(278,38,'','','1276582223',1),(279,38,'','','1276582233',1),(280,39,'','','1276586154',1),(281,39,'','','1276586171',1),(282,39,'','','1276586193',1),(283,1,'','','1276592324',1),(284,40,'','','1276876364',1),(285,41,'','','1276876467',1),(286,42,'','','1276876900',1),(287,42,'','','1276882672',1),(288,42,'','','1276883172',1),(289,42,'','','1276883253',1),(290,42,'','','1276883345',1),(291,42,'','','1276883473',1),(292,42,'','','1276884595',1),(293,42,'','','1276884810',1),(294,42,'','','1276884926',1),(295,42,'','','1276884991',1),(296,42,'','','1276948836',1),(297,42,'','','1276948907',1),(298,42,'','','1276949354',1),(299,42,'','','1276949419',1),(300,42,'','','1276949450',1),(301,42,'','','1276949523',1),(302,1,'','','1276949635',1),(303,1,'','','1276949733',1),(304,1,'','','1276949860',1),(305,1,'','','1276949890',1),(306,1,'','','1276949918',1),(307,1,'','','1276950162',1),(308,1,'','','1276950232',1),(309,1,'','','1276951188',1),(310,38,'','','1276951261',1),(311,38,'','','1276951512',1),(312,42,'','','1276951552',1),(313,42,'','','1276952327',1),(314,42,'','','1276952371',1),(315,42,'','','1276952460',1),(316,42,'','','1276952499',1),(317,42,'','','1276952536',1),(318,42,'','','1276952642',1),(319,42,'','','1276952661',1),(320,42,'','','1276952696',1),(321,38,'','','1276952724',1),(322,38,'','','1276952739',1),(323,42,'','','1276952941',1),(324,42,'','','1276953033',1),(325,41,'','','1276953062',1),(326,41,'','','1276953090',1),(327,43,'','','1276955065',1),(328,43,'','','1276955096',1),(329,39,'','','1277202657',1),(330,39,'','','1277202700',1),(331,39,'','','1277202736',1),(332,37,'','','1277230246',1),(333,37,'','','1277230268',1),(334,37,'','','1277230434',1),(335,37,'','','1277230461',1),(336,44,'','','1277233812',1),(337,37,'','','1277971372',2),(338,37,'','','1277971551',2),(339,37,'','','1277972822',2),(340,37,'','','1277972835',2),(341,45,'','','1277976955',2),(342,46,'','','1277982374',2),(343,37,'','','1277982948',2),(344,46,'','','1277982993',2),(345,46,'','','1277983169',2),(346,47,'','','1277986274',2),(347,48,'','','1277986481',2),(348,49,'','','1277986542',2),(349,37,'','','1277986781',1),(350,49,'','','1277986828',1),(351,50,'','Test','1280226928',1),(352,1,'','','1280409064',1),(353,1,'','','1280409313',1),(354,1,'','','1280409341',1),(355,1,'','','1280409391',1),(356,1,'','','1280409421',1),(357,1,'','','1280409444',1),(358,1,'','','1280409660',1),(359,1,'','','1280409674',1),(360,1,'','','1280409791',1),(361,1,'','','1280409979',1),(362,1,'','','1280410056',1),(363,1,'','','1280431685',1),(364,1,'','','1280431777',1),(365,1,'','','1280432055',1),(366,1,'','','1280432132',1),(367,1,'','','1280432230',1),(368,1,'','','1280432275',1),(369,1,'','','1280432281',1),(370,1,'','','1280432319',1),(371,1,'','','1280432387',1),(372,1,'','','1280432443',1),(373,1,'','','1280432547',1),(374,1,'','','1280432617',1),(375,1,'','','1280432786',1),(376,1,'','','1280432843',1),(377,1,'','','1280432933',1),(378,1,'','','1280433019',1),(379,1,'','','1280433337',1),(380,1,'','','1280433876',1),(381,1,'','','1280433928',1),(382,1,'','','1280434031',1),(383,1,'','','1280434188',1),(384,1,'','','1280434404',1),(385,1,'','','1280434440',1),(386,1,'','','1280434526',1),(387,1,'','','1280434663',1),(388,1,'','','1280434750',1),(389,1,'','','1280435147',1),(390,1,'','','1280435185',1),(391,1,'','','1280435328',1),(392,1,'','','1280435417',1),(393,1,'','','1280435428',1),(394,1,'','','1280435541',1),(395,1,'','','1280435570',1),(396,1,'','','1280474268',1),(397,1,'','','1280475486',1),(398,1,'','','1280476028',1),(399,1,'','','1280476224',1),(400,1,'','','1280476297',1),(401,1,'','','1280476354',1),(402,1,'','','1280476504',1),(403,1,'','','1280476561',1),(404,1,'','','1280478804',1),(405,1,'','','1280480525',1),(406,1,'','','1280480564',1),(407,1,'','','1280480564',1),(408,1,'','','1280480605',1),(409,1,'','','1280480680',1),(410,1,'','','1280480709',1),(411,1,'','','1280480745',1),(412,1,'','','1280480774',1),(413,1,'','','1280480870',1),(414,1,'','','1280481107',1),(415,1,'','','1280481126',1),(416,1,'','','1280481182',1),(417,1,'','','1280481317',1),(418,1,'','','1280481364',1),(419,1,'','','1280481450',1),(420,1,'','','1280481510',1),(421,1,'','','1280481547',1),(422,1,'','','1280481567',1),(423,1,'','','1280481622',1),(424,1,'','','1280481646',1),(425,1,'','','1280481663',1),(426,1,'','','1280481750',1),(427,1,'','','1280481770',1),(428,1,'','','1280481856',1),(429,1,'','','1280481872',1),(430,1,'','','1280481886',1),(431,1,'','','1280481909',1),(432,1,'','','1280491061',1),(433,1,'','','1280491113',1),(434,1,'','','1280491130',1),(435,1,'','','1280491457',1),(436,1,'','','1280491588',1),(437,1,'','','1280491610',1),(438,20,'','','1280492565',1),(439,20,'','','1280493309',1),(440,20,'','','1280493447',1),(441,50,'','','1280733184',1),(442,50,'','','1280733255',1),(443,50,'','','1280736699',1),(444,6,'','','1280736866',1),(445,51,'','','1282119125',1),(446,51,'','','1282122926',1),(447,51,'','','1282123036',1),(448,52,'','','1283334337',1),(449,53,'','','1283335562',1),(450,54,'','','1283460667',1),(451,7,'','','1283461668',1),(452,55,'','','1283713633',1),(453,55,'','','1283755746',1),(454,56,'','','1283755985',1),(455,57,'','','1283756103',1),(456,58,'','','1283757521',1),(457,59,'','','1283759338',1),(458,60,'','','1283777612',1),(459,61,'','1223','1283851988',1),(460,62,'','','1283852927',1),(461,63,'','','1283853271',1),(462,64,'','','1283857804',1),(463,65,'','','1283858303',1),(464,66,'','','1283858438',1),(465,67,'','','1283859117',1),(466,68,'','test','1283872729',1),(467,69,'','','1283873013',1),(468,70,'','','1283873378',1),(469,71,'','','1283873848',1),(470,72,'','','1283875146',1),(471,73,'','','1283891047',1),(472,73,'','','1285408555',1),(473,74,'','','1285408674',1),(474,75,'','test','1285424527',1),(475,76,'','test','1285427165',1),(476,77,'','','1285657524',1),(477,78,'','','1285657744',1),(478,79,'','','1285668597',1),(479,80,'','','1285668708',1),(480,81,'','','1285668868',1),(481,82,'','','1285668956',1),(482,83,'','','1285669106',1),(483,84,'','','1285676716',1),(484,85,'','','1285678016',1),(485,86,'','','1285678155',1),(486,87,'','','1285678201',1),(487,88,'','','1285678485',1),(488,89,'','','1285680273',1),(489,90,'','','1285680330',1),(490,91,'','','1285700510',1),(491,92,'','','1285732296',1),(492,1,'','','1285735087',1),(493,2,'','test','1286285494',1),(494,8,'','','1287398926',1),(495,9,'','','1287399584',1),(496,10,'','','1287468982',1),(497,11,'','','1287469030',1),(498,2,'','','1288280060',1),(499,2,'','','1288280114',1),(500,2,'','','1288280209',1),(501,2,'','','1288280268',1),(502,4,'','','1288345566',1),(503,6,'','','1288345735',1),(504,7,'','','1288346119',1),(505,8,'','','1288436368',1),(506,12,'','','1290671345',1),(507,12,'','','1290672525',1),(508,12,'','','1290672555',1),(509,12,'','','1290672706',1),(510,13,'','','1290672901',1),(511,13,'','','1290672939',1),(512,13,'','','1290673040',1),(513,9,'','test','1290679012',1),(514,10,'','jewelry order','1290681637',1),(515,11,'','','1291298214',1),(516,12,'','','1291303922',1),(517,13,'','','1291317164',1),(518,14,'','','1291641659',1),(519,15,'','','1291725679',1),(520,16,'','','1291730504',1),(521,17,'','','1291790878',1),(522,18,'','','1291791210',1),(523,19,'','','1291794205',1),(524,20,'','','1304754457',1);

--
-- Table structure for table `bstock_orderpayments`
--

CREATE TABLE `bstock_orderpayments` (
  `payment_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `order_id` int(10) NOT NULL COMMENT 'This is the foreign key for the orders table & is mapped to it''s primary key.',
  `shipping_amount` varchar(20) NOT NULL COMMENT 'Here we will have the total shipping amount for this order.',
  `discount_amount` varchar(20) NOT NULL COMMENT 'This will contain the total discount that has been offered on the order.',
  `discount_type` enum('individual','group') NOT NULL COMMENT 'Type of discount for this order, individual or group. Individual would mean on individual products.',
  `subtotal` varchar(20) NOT NULL COMMENT 'Subtotal i.e. total of the items purchased, excluding tax, shipping.',
  `grand_total` varchar(20) NOT NULL COMMENT 'Product Price plus shipping plus taxes.',
  `total_paid` varchar(20) NOT NULL COMMENT 'Amount paid so far. Useful incase user makes a part payment.',
  `total_refunded` varchar(20) NOT NULL COMMENT 'The amount of money refunded for this order. Used incase order needs to be cancelled or returned back.',
  `total_qty_ordered` int(10) NOT NULL COMMENT 'Total number of items ordered in the whole order.',
  `total_cancelled` int(10) NOT NULL COMMENT 'Total number of items cancelled from the order.',
  `total_invoiced` varchar(20) NOT NULL COMMENT 'Amount invoiced so far for the entire order.',
  `total_online_refunded` varchar(20) NOT NULL COMMENT 'Total money refunded online i.e. through online deposit, etc.',
  `total_offline_refunded` varchar(20) NOT NULL COMMENT 'Total money refunded through offline means i.e. cheque, wire transfer, etc.',
  `created_date` varchar(50) NOT NULL COMMENT 'Date when this record was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Date when this record was last modified.',
  `payment_type_id` int(10) NOT NULL COMMENT 'This will be the payment type from  the payment_types table.',
  `payment_transaction_id` int(10) NOT NULL COMMENT 'This will be the Primary Key of  the table of the corresponding  payment type i.e. PK of googlecheckout_api or  PK of paypal_api, etc.',
  PRIMARY KEY (`payment_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store all the payment related details for the order.';

--
-- Dumping data for table `bstock_orderpayments`
--


--
-- Table structure for table `bstock_orderpaymentstaxes`
--

CREATE TABLE `bstock_orderpaymentstaxes` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `order_id` int(10) NOT NULL COMMENT 'This is the foreign key for the orders table & is mapped to it''s primary key.',
  `tax_amount` varchar(20) NOT NULL COMMENT 'Tax amount.',
  `tax_id` int(10) NOT NULL COMMENT 'This is the foreign key of the tax table & mapped to it''s primary key.',
  `created_date` varchar(50) NOT NULL COMMENT 'Date when this record was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Date when this record was last modified.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=235 DEFAULT CHARSET=latin1 COMMENT='Store the tax related information for every order.';

--
-- Dumping data for table `bstock_orderpaymentstaxes`
--

INSERT INTO `bstock_orderpaymentstaxes` VALUES (14,3,'52',2,'1263592477','1263592477'),(13,3,'52',1,'1263592477','1263592477'),(4,1,'',1,'1263502864','1263502864'),(5,1,'',2,'1263502864','1263502864'),(6,1,'',4,'1263502864','1263502864'),(7,7,'5.84',1,'1263505135','1263505135'),(8,7,'5.84',2,'1263505135','1263505135'),(9,7,'',4,'1263505135','1263505135'),(10,8,'3.34',1,'1263537440','1263537440'),(11,8,'3.34',2,'1263537440','1263537440'),(12,8,'40',4,'1263537440','1263537440'),(15,3,'4',4,'1263592477','1263592477'),(16,33,'8',1,'1263961877','1263961877'),(17,33,'8',2,'1263961877','1263961877'),(18,33,'-16',4,'1263961877','1263961877'),(19,33,'8',1,'1263961966','1263961966'),(20,33,'8',2,'1263961966','1263961966'),(21,33,'-16',4,'1263961966','1263961966'),(22,33,'8',1,'1263962772','1263962772'),(23,33,'8',2,'1263962772','1263962772'),(24,33,'-16',4,'1263962772','1263962772'),(25,33,'8',1,'1263962929','1263962929'),(26,33,'8',2,'1263962929','1263962929'),(27,33,'-16',4,'1263962929','1263962929'),(28,35,'6.96',1,'1263963365','1263963365'),(29,35,'6.96',2,'1263963365','1263963365'),(30,35,'0',4,'1263963365','1263963365'),(31,35,'6.96',1,'1263963657','1263963657'),(32,35,'6.96',2,'1263963657','1263963657'),(33,35,'0',4,'1263963657','1263963657'),(34,36,'6.96',1,'1263963827','1263963827'),(35,36,'6.96',2,'1263963827','1263963827'),(36,36,'0',4,'1263963827','1263963827'),(37,37,'1533.76',1,'1263963939','1263963939'),(38,37,'1993.89',2,'1263963939','1263963939'),(39,37,'1256.15',4,'1263963939','1263963939'),(40,38,'617.12',1,'1263964517','1263964517'),(41,38,'802.26',2,'1263964517','1263964517'),(42,38,'505.42',4,'1263964517','1263964517'),(43,39,'133.32',1,'1263965600','1263965600'),(44,39,'173.32',2,'1263965600','1263965600'),(45,39,'109.19',4,'1263965600','1263965600'),(46,42,'538.56',1,'1263990258','1263990258'),(47,42,'700.13',2,'1263990258','1263990258'),(48,42,'441.08',4,'1263990258','1263990258'),(49,43,'222.2',1,'1263990837','1263990837'),(50,43,'288.86',2,'1263990837','1263990837'),(51,43,'181.98',4,'1263990837','1263990837'),(52,44,'31.02',1,'1263992419','1263992419'),(53,44,'31.02',2,'1263992419','1263992419'),(54,44,'13',4,'1263992419','1263992419'),(55,50,'12.21',1,'1264048879','1264048879'),(56,50,'12.21',2,'1264048879','1264048879'),(57,50,'20',4,'1264048879','1264048879'),(58,51,'184.8',1,'1264049581','1264049581'),(59,51,'240.24',2,'1264049581','1264049581'),(60,51,'151.35',4,'1264049581','1264049581'),(61,45,'15.51',1,'1264055292','1264055292'),(62,45,'15.51',2,'1264055292','1264055292'),(63,45,'1',4,'1264055292','1264055292'),(64,45,'15.51',1,'1264055837','1264055837'),(65,45,'15.51',2,'1264055837','1264055837'),(66,45,'1',4,'1264055837','1264055837'),(67,45,'15.51',1,'1264056272','1264056272'),(68,45,'15.51',2,'1264056272','1264056272'),(69,45,'1',4,'1264056272','1264056272'),(70,45,'15.51',1,'1264056770','1264056770'),(71,45,'15.51',2,'1264056770','1264056770'),(72,45,'1',4,'1264056770','1264056770'),(73,45,'15.51',1,'1264057208','1264057208'),(74,45,'15.51',2,'1264057208','1264057208'),(75,45,'1',4,'1264057208','1264057208'),(76,45,'15.51',1,'1264057776','1264057776'),(77,45,'15.51',2,'1264057776','1264057776'),(78,45,'1',4,'1264057776','1264057776'),(79,45,'15.51',1,'1264058113','1264058113'),(80,45,'15.51',2,'1264058113','1264058113'),(81,45,'1',4,'1264058113','1264058113'),(82,45,'15.51',1,'1264058730','1264058730'),(83,45,'15.51',2,'1264058730','1264058730'),(84,45,'1',4,'1264058730','1264058730'),(85,45,'31.02',1,'1264058867','1264058867'),(86,45,'31.02',2,'1264058867','1264058867'),(87,45,'10',4,'1264058867','1264058867'),(88,45,'31.02',1,'1264059139','1264059139'),(89,45,'31.02',2,'1264059139','1264059139'),(90,45,'10',4,'1264059139','1264059139'),(91,88,'3.34',1,'1264060692','1264060692'),(92,88,'6.68',2,'1264060692','1264060692'),(93,88,'5',4,'1264060692','1264060692'),(94,88,'3.34',1,'1264060767','1264060767'),(95,88,'6.68',2,'1264060767','1264060767'),(96,88,'5',4,'1264060767','1264060767'),(97,41,'355.52',1,'1264421348','1264421348'),(98,41,'462.18',2,'1264421348','1264421348'),(99,41,'291.17',4,'1264421348','1264421348'),(100,65,'-8.55',1,'1264422051','1264422051'),(101,65,'0',2,'1264422051','1264422051'),(102,65,'0',4,'1264422051','1264422051'),(103,66,'0',1,'1264423686','1264423686'),(104,66,'',2,'1264423686','1264423686'),(105,66,'5',4,'1264423686','1264423686'),(106,40,'0',1,'1264423991','1264423991'),(107,40,'0',2,'1264423991','1264423991'),(108,40,'6',4,'1264423991','1264423991'),(109,117,'0',1,'1265299106','1265299106'),(110,117,'-9.24',2,'1265299106','1265299106'),(111,117,'-3',4,'1265299106','1265299106'),(112,118,'15.12',1,'1265304239','1265304239'),(113,118,'15.12',2,'1265304239','1265304239'),(114,118,'1',4,'1265304239','1265304239'),(115,114,'16.43',1,'1265700565','1265700565'),(116,114,'16.43',2,'1265700565','1265700565'),(117,114,'0',4,'1265700565','1265700565'),(118,114,'16.43',1,'1265702463','1265702463'),(119,114,'16.43',2,'1265702463','1265702463'),(120,114,'10',4,'1265702463','1265702463'),(121,114,'16.43',1,'1265702577','1265702577'),(122,114,'16.43',2,'1265702577','1265702577'),(123,114,'10',4,'1265702577','1265702577'),(124,105,'30.24',1,'1265702761','1265702761'),(125,105,'30.24',2,'1265702761','1265702761'),(126,105,'20',4,'1265702761','1265702761'),(127,129,'0',1,'1265713901','1265713901'),(128,129,'',2,'1265713901','1265713901'),(129,129,'6',4,'1265713901','1265713901'),(130,129,'70.06',1,'1265714827','1265714827'),(131,129,'70.06',2,'1265714827','1265714827'),(132,129,'6',4,'1265714827','1265714827'),(133,129,'140.12',1,'1265716823','1265716823'),(134,129,'140.12',2,'1265716823','1265716823'),(135,129,'6.21',4,'1265716823','1265716823'),(136,129,'',1,'1265720700','1265720700'),(137,129,'',2,'1265720700','1265720700'),(138,129,'',4,'1265720700','1265720700'),(139,130,'-19.249999999999996',1,'1265788591','1265788591'),(140,130,'0',2,'1265788591','1265788591'),(141,130,'1',4,'1265788591','1265788591'),(142,133,'62.44',1,'1266491308','1266491308'),(143,133,'62.44',2,'1266491308','1266491308'),(144,133,'10',4,'1266491308','1266491308'),(151,24,'84.36',1,'1276271025','1276271025'),(152,24,'109.67',2,'1276271027','1276271027'),(153,24,'69.09',4,'1276271031','1276271031'),(154,25,'337.44',1,'1276271039','1276271039'),(155,25,'438.67',2,'1276271039','1276271039'),(156,25,'276.36',4,'1276271039','1276271039'),(157,26,'204.48',1,'1276522281','1276522281'),(158,26,'265.82',2,'1276522281','1276522281'),(159,26,'167.47',4,'1276522281','1276522281'),(160,27,'673.2',1,'1276522985','1276522985'),(161,27,'875.16',2,'1276522985','1276522985'),(162,27,'551.35',4,'1276522985','1276522985'),(163,28,'673.2',1,'1276523038','1276523038'),(164,28,'875.16',2,'1276523038','1276523038'),(165,28,'551.35',4,'1276523038','1276523038'),(166,29,'110',1,'1276523268','1276523268'),(167,29,'143',2,'1276523268','1276523268'),(168,29,'90.09',4,'1276523268','1276523268'),(169,30,'114.4',1,'1276523353','1276523353'),(170,30,'148.72',2,'1276523353','1276523353'),(171,30,'93.69',4,'1276523353','1276523353'),(172,31,'162.8',1,'1276523825','1276523825'),(173,31,'211.64',2,'1276523825','1276523825'),(174,31,'133.33',4,'1276523825','1276523825'),(175,32,'98.8',1,'1276523978','1276523978'),(176,32,'128.44',2,'1276523978','1276523978'),(177,32,'80.92',4,'1276523978','1276523978'),(178,33,'98.8',1,'1276524038','1276524038'),(179,33,'128.44',2,'1276524038','1276524038'),(180,33,'80.92',4,'1276524038','1276524038'),(181,34,'98.8',1,'1276524132','1276524132'),(182,34,'128.44',2,'1276524132','1276524132'),(183,34,'80.92',4,'1276524132','1276524132'),(184,35,'130.64',1,'1276524168','1276524168'),(185,35,'169.83',2,'1276524168','1276524168'),(186,35,'106.99',4,'1276524168','1276524168'),(187,36,'47.52',1,'1276524306','1276524306'),(188,36,'61.78',2,'1276524306','1276524306'),(189,36,'38.92',4,'1276524306','1276524306'),(190,37,'1533.76',1,'1276524420','1276524420'),(191,37,'1993.89',2,'1276524420','1276524420'),(192,37,'1256.15',4,'1276524420','1276524420'),(193,38,'617.12',1,'1276582157','1276582157'),(194,38,'802.26',2,'1276582157','1276582157'),(195,38,'505.42',4,'1276582157','1276582157'),(196,39,'133.32',1,'1276586153','1276586153'),(197,39,'173.32',2,'1276586153','1276586153'),(198,39,'109.19',4,'1276586153','1276586153'),(199,40,'120',1,'1276876364','1276876364'),(200,40,'156',2,'1276876364','1276876364'),(201,40,'98.28',4,'1276876364','1276876364'),(202,41,'355.52',1,'1276876467','1276876467'),(203,41,'462.18',2,'1276876467','1276876467'),(204,41,'291.17',4,'1276876467','1276876467'),(205,42,'538.56',1,'1276876900','1276876900'),(206,42,'700.13',2,'1276876900','1276876900'),(207,42,'441.08',4,'1276876900','1276876900'),(208,43,'222.2',1,'1276955065','1276955065'),(209,43,'288.86',2,'1276955065','1276955065'),(210,43,'181.98',4,'1276955065','1276955065'),(211,44,'98.8',1,'1277233812','1277233812'),(212,44,'128.44',2,'1277233812','1277233812'),(213,44,'80.92',4,'1277233812','1277233812'),(215,45,'',2,'1277976955','1277976955'),(214,45,'',1,'1277976955','1277976955'),(216,45,'',4,'1277976955','1277976955'),(217,46,'396',1,'1277982372','1277982372'),(218,46,'514.8',2,'1277982372','1277982372'),(219,46,'324.32',4,'1277982373','1277982373'),(220,47,'NaN',1,'1277986270','1277986270'),(221,47,'NaN',2,'1277986271','1277986271'),(222,47,'NaN',4,'1277986272','1277986272'),(223,48,'80',1,'1277986481','1277986481'),(224,48,'104',2,'1277986481','1277986481'),(225,48,'65.52',4,'1277986481','1277986481'),(226,49,'292.16',1,'1277986542','1277986542'),(227,49,'379.81',2,'1277986542','1277986542'),(228,49,'239.28',4,'1277986542','1277986542'),(229,50,'218.56',1,'1280226928','1280226928'),(230,50,'284.13',2,'1280226928','1280226928'),(231,50,'179',4,'1280226928','1280226928'),(232,51,'184.8',1,'1282119125','1282119125'),(233,51,'240.24',2,'1282119125','1282119125'),(234,51,'151.35',4,'1282119125','1282119125');

--
-- Table structure for table `bstock_orders`
--

CREATE TABLE `bstock_orders` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `so_number` varchar(255) NOT NULL,
  `contact_person` varchar(500) NOT NULL,
  `customer_first_name` varchar(100) NOT NULL COMMENT 'This will contain the first name of the customer who placed this order.',
  `customer_last_name` varchar(100) NOT NULL COMMENT 'This will contain the last name of the customer who placed this order.',
  `customer_id` int(10) NOT NULL COMMENT 'This is the foreign key for the customers & is mapped to primary key of customers table.',
  `carrier_id` int(10) NOT NULL,
  `assigned_to_id` int(10) NOT NULL,
  `vendor_id` int(10) NOT NULL,
  `broker_id` int(10) NOT NULL,
  `tracking_no` int(10) NOT NULL,
  `payment_terms_id` int(10) NOT NULL,
  `payment_mode` varchar(25) NOT NULL COMMENT 'Whether payment is in Cash or Angadia mode.',
  `type_of_tax` enum('individual','group') NOT NULL,
  `brokerage` decimal(10,2) NOT NULL,
  `packaging` decimal(10,0) NOT NULL,
  `octroi` decimal(10,0) NOT NULL,
  `exciseduty` decimal(10,0) NOT NULL,
  `subtotal` varchar(10) NOT NULL COMMENT 'Total amount of the order.',
  `net_total` decimal(10,2) NOT NULL,
  `adjustment` decimal(10,2) NOT NULL,
  `balance` decimal(10,2) NOT NULL COMMENT 'Balance payment for this order.',
  `status_id` int(10) NOT NULL COMMENT 'This field will be the foreign key from the order status table & mapped to it''s primary key.',
  `dollar_rate` decimal(10,2) NOT NULL,
  `so_comments` text,
  `transaction_type_id` int(10) NOT NULL DEFAULT '1',
  `terms_condition` varchar(1000) NOT NULL,
  `due_date` int(10) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `transaction_date` int(11) NOT NULL COMMENT 'Date when the transaction took place.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will be the created date for this order.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will be the last modified date for this order.',
  `affiliate_id` int(10) NOT NULL,
  `type` enum('so') NOT NULL,
  `exporter_id` int(11) NOT NULL,
  `angadia_id` int(11) NOT NULL COMMENT 'ID of the Angadia company.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=latin1 COMMENT='Store order related information. Order items are stored in s';

--
-- Dumping data for table `bstock_orders`
--

INSERT INTO `bstock_orders` VALUES (1,'AN/SO/201011/01','Chotu','','',2,0,0,0,0,0,1,'Cash','individual',0.00,0,0,0,'296881',296881.00,0.00,0.00,9,0.00,'',1,'terms and conditions comments',1285562287,'on',1285562287,'1285735087','1285735087',0,'so',0,1),(2,'so1212','','','',2,0,0,0,1,0,1,'Cash','individual',0.00,0,0,0,'146510',146510.00,0.00,0.00,9,0.00,'test',1,'terms and conditions comments',1286199094,'on',1286199094,'1286285494','1286285494',0,'so',0,1),(7,'1001','Vishal','','',2,0,0,0,0,0,2,'Angadia','individual',0.00,0,0,0,'94666',94666.00,0.00,0.00,9,0.00,'',1,'terms and conditions comments',1290768919,'on',1288173319,'1288346119','1288346119',0,'so',0,4),(8,'1002','vishal','','',2,0,0,0,4,0,1,'Angadia','individual',0.00,0,0,0,'325500',325500.00,0.00,0.00,9,0.00,'',1,'terms and conditions comments',1288349968,'on',1288349968,'1288436368','1288436368',0,'so',0,4),(9,'1005','vishal','','',1,0,3,0,2,0,3,'Cash','individual',0.00,0,0,0,'83757',83671.00,43.00,3671.00,11,0.00,'',1,'test test',1295603932,'on',1290419932,'1290679011','1290679132',0,'so',0,1),(10,'1006','harshad','','',2,0,0,0,4,0,2,'Cash','individual',0.00,0,0,0,'28900',28900.00,0.00,0.00,9,0.00,'jewelry order',1,'terms and conditions comments',1292582437,'on',1289990437,'1290681637','1290681637',0,'so',0,1),(11,'test222','baba','','',2,0,2,0,0,0,1,'Cash','individual',0.00,0,0,0,'0',0.00,0.00,0.00,9,0.00,'',1,'test test',1290520641,'on',1290520641,'1291298214','1291298241',0,'so',0,1),(12,'','','','',1,0,1,0,0,0,1,'Cash','individual',0.00,0,0,0,'496283',496166.00,117.00,496166.00,10,0.00,'',1,'test test',-30360,'on',-30360,'1291303922','1291304040',0,'so',0,1),(13,'','','','',1,0,0,0,0,0,1,'Cash','individual',0.00,0,0,0,'230845',230000.00,845.00,230000.00,10,0.00,'',1,'terms and conditions comments',0,'on',0,'1291317164','1291317164',0,'so',0,1),(14,'S1010','','','',2,0,0,0,0,0,2,'Cash','individual',0.00,0,0,0,'27267',27267.00,0.00,0.00,9,0.00,'',1,'terms and conditions comments',1294233659,'on',1291641659,'1291641659','1291641659',0,'so',0,1),(15,'S1011','','','',3,0,0,0,2,0,1,'Angadia','individual',0.00,0,0,0,'19413',19413.00,0.00,0.00,9,0.00,'',1,'terms and conditions comments',1291639279,'on',1291639279,'1291725679','1291725679',0,'so',0,4),(16,'so88888','baba','','',3,0,0,0,1,0,3,'Cash','individual',0.00,0,0,0,'367500',367500.00,0.00,360000.00,11,0.00,'',1,'terms and conditions comments',1296396104,'on',1291212104,'1291730504','1291730504',0,'so',0,1),(17,'S1013','','','',3,0,0,0,0,0,1,'Cash','individual',0.00,0,0,0,'367500.75',367500.75,0.00,367500.75,10,0.00,'',1,'terms and conditions comments',1291790878,'on',1291790878,'1291790878','1291790878',0,'so',0,1),(18,'S1014','','','',3,0,3,0,0,0,1,'Cash','individual',0.00,0,0,0,'367501',367501.00,0.00,367501.00,10,0.00,'',1,'test test',1291705376,'on',1291705376,'1291791210','1291791776',0,'so',0,1),(19,'S1015','Vishal','','',3,0,0,0,2,0,1,'Cash','individual',0.00,0,0,0,'88583.32',88583.00,0.00,88583.00,10,0.00,'',1,'terms and conditions comments',1291707805,'on',1291707805,'1291794205','1291794205',0,'so',0,1),(20,'234233','baba','','',1,0,0,0,1,0,1,'Cash','individual',0.00,0,0,0,'484222',484222.00,0.00,484222.00,10,0.00,'',1,'terms and conditions comments',1304668057,'on',1304668057,'1304754457','1304754457',0,'so',0,1);

--
-- Table structure for table `bstock_orderscf`
--

CREATE TABLE `bstock_orderscf` (
  `order_id` int(10) NOT NULL COMMENT 'This field will be the foreign key of the orders table & mapped to it''s primary key.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will store the created date for this record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will store the last modified date for this record.'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Custom fields of orders will be inserted in this table.';

--
-- Dumping data for table `bstock_orderscf`
--


--
-- Table structure for table `bstock_ordershipping`
--

CREATE TABLE `bstock_ordershipping` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `order_id` int(10) NOT NULL COMMENT 'This is the foreign key for the orders table & is mapped to it''s primary key.',
  `shipping_address_id` int(10) NOT NULL COMMENT 'This is the foriegn key of the shipping address(customershipping) & is mapped to it''s primary key.',
  `created_date` varchar(50) NOT NULL COMMENT 'This is the date when this record was created. Most of the times it will be same as date when order was placed.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This is the last modified date.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COMMENT='Store the shipping address of the customer for an order.';

--
-- Dumping data for table `bstock_ordershipping`
--

INSERT INTO `bstock_ordershipping` VALUES (1,1,168,'1269635676','1269635676'),(2,2,169,'1274699151','1274699151'),(3,8,169,'','');

--
-- Table structure for table `bstock_ordershippinginfo`
--

CREATE TABLE `bstock_ordershippinginfo` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `order_id` int(10) NOT NULL COMMENT 'This is the foreign key, it''s the Primary key of orders table & will contain the order id.',
  `tracking_number` varchar(50) NOT NULL COMMENT 'This will be the tracking number of the shipment.',
  `sent_date` varchar(50) NOT NULL COMMENT 'This will be the timestamp. It will contain the date when the shipment has been delivered.',
  `carrier_id` enum('DHL','Fedex','UPS','USPS','Malca-Amit','Brinks','Lemiur') NOT NULL,
  `flight_no` varchar(50) NOT NULL,
  `port_of_discharge` enum('NA','India','Belgium','Hong Kong') NOT NULL,
  `place_of_receipt` enum('NA','Mumbai','Antwerp') NOT NULL,
  `port_of_loading` enum('NA','Mumbai','Antwerp') NOT NULL,
  `city_of_destination` enum('Mumbai','Antwerp','New York','Hong Kong') NOT NULL,
  `user_id` int(10) NOT NULL COMMENT 'This will be the foreign key. It corresponds to Primary key of users table. It will store the id of the user who created this shipment record.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will be the timestamp. It will contain the date when this entry is created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will be the timestamp. It will contain the date when this entry is modified.',
  `country_of_origin` enum('NA','India','Belgium') NOT NULL,
  `country_of_destination` enum('NA','India','Belgium') NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=40 DEFAULT CHARSET=latin1 COMMENT='This table is used to store the shipping details of every or';

--
-- Dumping data for table `bstock_ordershippinginfo`
--

INSERT INTO `bstock_ordershippinginfo` VALUES (1,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260059','1274260059','NA','NA'),(2,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260063','1274260063','NA','NA'),(3,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260063','1274260063','NA','NA'),(4,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260064','1274260064','NA','NA'),(5,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260065','1274260065','NA','NA'),(6,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260066','1274260066','NA','NA'),(7,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260083','1274260083','NA','NA'),(8,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260085','1274260085','NA','NA'),(9,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260086','1274260086','NA','NA'),(10,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260087','1274260087','NA','NA'),(11,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260087','1274260087','NA','NA'),(12,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260088','1274260088','NA','NA'),(13,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260089','1274260089','NA','NA'),(14,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260090','1274260090','NA','NA'),(15,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260091','1274260091','NA','NA'),(16,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260093','1274260093','NA','NA'),(17,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260094','1274260094','NA','NA'),(18,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260095','1274260095','NA','NA'),(19,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260097','1274260097','NA','NA'),(20,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260098','1274260098','NA','NA'),(21,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260101','1274260101','NA','NA'),(22,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260106','1274260106','NA','NA'),(23,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260108','1274260108','NA','NA'),(24,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260109','1274260109','NA','NA'),(25,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260111','1274260111','NA','NA'),(26,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260111','1274260111','NA','NA'),(27,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260112','1274260112','NA','NA'),(28,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260113','1274260113','NA','NA'),(29,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260114','1274260114','NA','NA'),(30,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260115','1274260115','NA','NA'),(31,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260117','1274260117','NA','NA'),(32,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260119','1274260119','NA','NA'),(33,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260120','1274260120','NA','NA'),(34,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260122','1274260122','NA','NA'),(35,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260123','1274260123','NA','NA'),(36,1,'','','DHL','','NA','NA','NA','Mumbai',1,'1274260124','1274260124','NA','NA'),(37,1,'42343','1272445749','DHL','','NA','NA','NA','Mumbai',1,'1274260149','1274260149','NA','NA'),(38,1,'42343','1272445750','DHL','','NA','NA','NA','Mumbai',1,'1274260150','1274260150','NA','NA'),(39,1,'42343','1272445751','DHL','','NA','NA','NA','Mumbai',1,'1274260151','1274260151','NA','NA');

--
-- Table structure for table `bstock_orderstatushistory`
--

CREATE TABLE `bstock_orderstatushistory` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `order_id` int(10) NOT NULL COMMENT 'This will be the foreign key of the orders table & mapped to it''s primary key.',
  `status_id` int(10) NOT NULL COMMENT 'This will be the foreign key of the order status table & mapped to it''s primary key. Here we will store the new status id which was there after being updated.',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL COMMENT 'This will contain the timestamp of the date when the order status was changed.',
  `user_id` int(10) DEFAULT '0' COMMENT 'This is the foreign key of the user who changed the status & is mapped to it''s primary key.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=691 DEFAULT CHARSET=latin1 COMMENT='Here we record all the transactions when the order status is';

--
-- Dumping data for table `bstock_orderstatushistory`
--

INSERT INTO `bstock_orderstatushistory` VALUES (1,1,0,'1262110289','1262110289',0),(2,2,0,'1262110311','1262110311',0),(3,3,0,'1262111641','1262111641',0),(4,4,0,'1262157798','1262157798',0),(5,5,0,'1262179789','1262179789',0),(6,6,0,'1262180252','1262180252',0),(7,7,0,'1262264490','1262264490',0),(8,8,0,'1262264686','1262264686',0),(9,9,0,'1262265725','1262265725',0),(10,10,0,'1262265922','1262265922',0),(11,11,0,'1262266505','1262266505',0),(12,12,0,'1262266611','1262266611',0),(28,12,8,'1262346037','1262346037',0),(29,12,4,'1262346065','1262346065',0),(30,12,5,'1262346266','1262346266',0),(31,13,4,'1262346487','1262346487',0),(32,13,4,'1262346633','1262346633',0),(33,13,4,'1262346733','1262346733',0),(34,13,4,'1262346755','1262346755',0),(35,13,4,'1262346775','1262346775',0),(36,13,4,'1262346820','1262346820',0),(37,13,5,'1262346861','1262346861',0),(38,8,6,'1262347163','1262347163',0),(39,8,6,'1262347248','1262347248',1),(42,8,4,'1262350942','1262350942',1),(43,8,6,'1262351017','1262351017',1),(44,8,8,'1262351112','1262351112',1),(45,8,6,'1262351255','1262351255',1),(46,8,6,'1262351323','1262351323',1),(47,8,6,'1262351370','1262351370',1),(48,8,6,'1262351391','1262351391',1),(49,8,6,'1262351440','1262351440',1),(50,8,6,'1262351503','1262351503',1),(51,8,6,'1262351520','1262351520',1),(52,8,6,'1262351544','1262351544',1),(53,8,6,'1262351577','1262351577',1),(54,8,6,'1262351631','1262351631',1),(55,8,6,'1262351658','1262351658',1),(56,8,6,'1262351729','1262351729',1),(57,8,6,'1262351788','1262351788',1),(58,8,6,'1262351850','1262351850',1),(59,8,6,'1262351892','1262351892',1),(60,8,6,'1262351938','1262351938',1),(61,8,6,'1262351995','1262351995',1),(62,8,6,'1262352018','1262352018',1),(63,8,5,'1262352436','1262352436',1),(64,8,2,'1262353477','1262353477',1),(65,16,8,'1262429128','1262429128',1),(66,16,7,'1262429876','1262429876',1),(67,16,6,'1262430988','1262430988',1),(68,16,5,'1262432481','1262432481',1),(69,16,2,'1262433274','1262433274',1),(70,0,0,'1262433764','1262433764',1),(71,0,0,'1262433816','1262433816',1),(72,0,0,'1262433924','1262433924',1),(73,0,0,'1262433987','1262433987',1),(74,0,0,'1262434039','1262434039',1),(75,16,4,'1262434115','1262434115',1),(76,16,5,'1262436241','1262436241',1),(77,17,1,'1262629987','1262629987',0),(78,18,1,'1262630113','1262630113',0),(79,19,1,'1262631878','1262631878',0),(80,20,1,'1262632114','1262632114',0),(81,1,8,'1262678961','1262678961',1),(82,4,7,'1262681775','1262681775',1),(83,1,0,'1262682029','1262682029',1),(84,3,8,'1262682243','1262682243',1),(85,3,6,'1262682496','1262682496',1),(86,4,8,'1262682821','1262682821',1),(87,6,4,'1262682873','1262682873',1),(88,6,5,'1262683269','1262683269',1),(89,7,8,'1262683442','1262683442',1),(90,10,5,'1262683571','1262683571',1),(91,10,5,'1262684688','1262684688',1),(92,10,6,'1262684836','1262684836',1),(93,21,1,'1262693035','1262693035',0),(94,22,1,'1262693226','1262693226',0),(95,23,1,'1262693351','1262693351',0),(96,24,1,'1262693469','1262693469',0),(97,25,1,'1262693539','1262693539',0),(98,26,1,'1262693803','1262693803',0),(99,27,1,'1262693872','1262693872',0),(100,28,1,'1262694014','1262694014',0),(101,29,1,'1262694087','1262694087',0),(102,30,1,'1262694109','1262694109',0),(103,31,1,'1262694472','1262694472',0),(104,32,1,'1262710721','1262710721',0),(105,33,1,'1262716822','1262716822',0),(106,34,1,'1262717528','1262717528',0),(107,35,1,'1262719518','1262719518',0),(108,36,1,'1262719625','1262719625',0),(109,37,1,'1262719701','1262719701',0),(110,38,1,'1262719744','1262719744',0),(111,39,1,'1262719836','1262719836',0),(112,40,1,'1262757505','1262757505',0),(113,1,5,'1262759323','1262759323',1),(114,1,8,'1262760240','1262760240',1),(115,41,1,'1262799020','1262799020',0),(116,42,1,'1262799087','1262799087',0),(117,43,1,'1262799327','1262799327',0),(118,44,1,'1262799450','1262799450',0),(119,45,1,'1262799831','1262799831',0),(120,46,1,'1262800122','1262800122',0),(121,47,1,'1262800379','1262800379',0),(122,48,1,'1262800497','1262800497',0),(123,49,1,'1262800908','1262800908',0),(124,50,1,'1262801270','1262801270',0),(125,51,1,'1262801392','1262801392',0),(126,52,1,'1262801452','1262801452',0),(127,53,1,'1262801536','1262801536',0),(128,54,1,'1262801643','1262801643',0),(129,55,1,'1262801863','1262801863',0),(130,56,1,'1262802073','1262802073',0),(131,57,1,'1262802533','1262802533',0),(132,58,1,'1262802776','1262802776',0),(133,59,1,'1262803192','1262803192',0),(134,60,1,'1262803561','1262803561',0),(135,61,1,'1262803720','1262803720',0),(136,62,1,'1262803801','1262803801',0),(137,63,1,'1262803864','1262803864',0),(138,64,1,'1263215541','1263215541',0),(139,65,1,'1263216890','1263216890',0),(140,66,1,'1263491903','1263491903',0),(141,67,1,'1263495012','1263495012',0),(142,79,1,'1263638484','1263638484',0),(143,80,1,'1263638638','1263638638',0),(144,81,1,'1263639344','1263639344',0),(145,82,1,'1263639524','1263639524',0),(146,83,1,'1263639564','1263639564',0),(147,84,1,'1263639823','1263639823',0),(148,85,1,'1263643677','1263643677',0),(149,6,4,'1263648589','1263648589',1),(150,6,4,'1263648808','1263648808',1),(151,6,5,'1263649485','1263649485',1),(152,86,1,'1263821521','1263821521',0),(153,3,8,'1263886059','1263886059',1),(154,3,8,'1263886801','1263886801',1),(155,3,8,'1263886859','1263886859',1),(156,3,8,'1263887779','1263887779',1),(157,3,8,'1263888094','1263888094',1),(158,3,8,'1263888430','1263888430',1),(159,3,8,'1263889071','1263889071',1),(160,3,8,'1263889133','1263889133',1),(161,3,8,'1263890053','1263890053',1),(162,3,8,'1263890118','1263890118',1),(163,3,8,'1263890186','1263890186',1),(164,3,8,'1263891059','1263891059',1),(165,3,8,'1263891215','1263891215',1),(166,3,8,'1263891284','1263891284',1),(167,3,8,'1263895660','1263895660',1),(168,3,8,'1263896088','1263896088',1),(169,3,8,'1263896170','1263896170',1),(170,3,8,'1263896208','1263896208',1),(171,3,5,'1263897636','1263897636',1),(172,6,7,'1263900267','1263900267',1),(173,6,8,'1263901082','1263901082',1),(174,6,5,'1263902128','1263902128',1),(175,6,7,'1263902291','1263902291',1),(176,87,1,'1263904720','1263904720',0),(177,88,1,'1263905305','1263905305',0),(178,33,4,'1263961481','1263961481',1),(179,36,4,'1263963773','1263963773',1),(180,37,4,'1263963917','1263963917',1),(181,38,8,'1263964485','1263964485',1),(182,39,4,'1263965573','1263965573',1),(183,44,4,'1263992280','1263992280',1),(184,50,4,'1264048815','1264048815',1),(185,51,4,'1264049535','1264049535',1),(186,3,7,'1264059235','1264059235',1),(187,3,7,'1264059300','1264059300',1),(188,3,4,'1264059363','1264059363',1),(189,88,4,'1264060667','1264060667',1),(190,89,1,'1264224679','1264224679',0),(191,90,1,'1264234581','1264234581',0),(192,3,4,'1264405023','1264405023',1),(193,3,4,'1264405770','1264405770',1),(194,3,4,'1264406352','1264406352',1),(195,3,4,'1264406421','1264406421',1),(196,3,8,'1264406537','1264406537',1),(197,3,8,'1264406685','1264406685',1),(198,3,8,'1264406926','1264406926',1),(199,3,8,'1264407077','1264407077',1),(200,3,8,'1264408695','1264408695',1),(201,3,8,'1264408861','1264408861',1),(202,3,8,'1264408968','1264408968',1),(203,3,8,'1264409127','1264409127',1),(204,3,8,'1264410762','1264410762',1),(205,3,8,'1264410965','1264410965',1),(206,1,5,'1264411023','1264411023',1),(207,1,6,'1264411099','1264411099',1),(208,91,1,'1264412854','1264412854',0),(209,92,1,'1264415024','1264415024',0),(210,93,1,'1264415258','1264415258',0),(211,94,1,'1264415374','1264415374',0),(212,95,1,'1264415586','1264415586',0),(213,96,1,'1264415715','1264415715',0),(214,97,1,'1264415820','1264415820',0),(215,98,1,'1264415936','1264415936',0),(216,99,1,'1264416016','1264416016',0),(217,100,1,'1264416120','1264416120',0),(218,101,1,'1264416237','1264416237',0),(219,102,1,'1264416407','1264416407',0),(220,103,1,'1264416476','1264416476',0),(221,104,1,'1264416530','1264416530',0),(222,105,1,'1264416614','1264416614',0),(223,1,8,'1264420747','1264420747',1),(224,65,4,'1264421970','1264421970',1),(225,66,4,'1264423618','1264423618',1),(226,40,4,'1264423932','1264423932',1),(227,106,1,'1264675367','1264675367',0),(228,107,1,'1264675417','1264675417',0),(229,108,1,'1264675515','1264675515',0),(230,109,1,'1264675570','1264675570',0),(231,110,1,'1264675609','1264675609',0),(232,111,1,'1264675663','1264675663',0),(233,112,1,'1265031295','1265031295',0),(234,113,1,'1265031538','1265031538',0),(235,114,1,'1265031671','1265031671',0),(236,115,1,'1265107632','1265107632',0),(237,116,1,'1265295719','1265295719',0),(238,117,1,'1265298600','1265298600',0),(239,117,1,'1265299140','1265299140',1),(240,118,1,'1265303985','1265303985',0),(241,118,4,'1265304585','1265304585',1),(242,118,4,'1265304593','1265304593',1),(243,118,4,'1265304594','1265304594',1),(244,118,5,'1265304654','1265304654',1),(245,118,5,'1265304663','1265304663',1),(246,118,6,'1265304727','1265304727',1),(247,118,8,'1265304824','1265304824',1),(248,118,1,'1265305016','1265305016',1),(249,119,1,'1265651857','1265651857',0),(250,120,1,'1265651981','1265651981',0),(251,121,1,'1265652252','1265652252',0),(252,122,1,'1265652542','1265652542',0),(253,123,1,'1265652614','1265652614',0),(254,124,1,'1265652952','1265652952',0),(255,125,1,'1265652954','1265652954',0),(256,126,1,'1265653003','1265653003',0),(257,127,1,'1265653041','1265653041',0),(258,128,1,'1265653232','1265653232',0),(259,127,4,'1265700096','1265700096',1),(260,114,4,'1265700409','1265700409',1),(261,105,4,'1265702722','1265702722',1),(262,129,1,'1265712795','1265712795',0),(263,129,4,'1265713238','1265713238',1),(264,129,8,'1265713351','1265713351',1),(265,130,1,'1265787624','1265787624',0),(266,130,1,'1265788650','1265788650',1),(267,130,8,'1265789238','1265789238',1),(268,130,8,'1265789424','1265789424',1),(269,131,1,'1266476450','1266476450',0),(270,132,1,'1266477098','1266477098',0),(271,133,1,'1266488195','1266488195',0),(272,133,7,'1266489181','1266489181',1),(273,133,8,'1266489902','1266489902',1),(274,134,1,'1266495976','1266495976',0),(275,135,1,'1266496008','1266496008',0),(276,136,1,'1266593869','1266593869',0),(277,137,1,'1266594074','1266594074',0),(278,138,1,'1266594798','1266594798',0),(279,139,1,'1266594911','1266594911',0),(280,140,1,'1266594985','1266594985',0),(281,141,1,'1266595012','1266595012',0),(282,142,1,'1266648337','1266648337',0),(283,143,1,'1266668803','1266668803',0),(284,144,1,'1266669304','1266669304',0),(285,145,1,'1266669471','1266669471',0),(286,145,4,'1266671683','1266671683',1),(287,145,4,'1266671746','1266671746',1),(288,1,1,'1269635677','1269635677',0),(289,1,1,'1269637506','1269637506',1),(290,1,1,'1274260061','1274260061',1),(291,1,1,'1274260063','1274260063',1),(292,1,1,'1274260064','1274260064',1),(293,1,1,'1274260065','1274260065',1),(294,1,1,'1274260066','1274260066',1),(295,1,1,'1274260067','1274260067',1),(296,1,1,'1274260085','1274260085',1),(297,1,1,'1274260086','1274260086',1),(298,1,1,'1274260086','1274260086',1),(299,1,1,'1274260087','1274260087',1),(300,1,1,'1274260088','1274260088',1),(301,1,1,'1274260088','1274260088',1),(302,1,1,'1274260090','1274260090',1),(303,1,1,'1274260091','1274260091',1),(304,1,1,'1274260093','1274260093',1),(305,1,1,'1274260094','1274260094',1),(306,1,1,'1274260095','1274260095',1),(307,1,1,'1274260097','1274260097',1),(308,1,1,'1274260098','1274260098',1),(309,1,1,'1274260100','1274260100',1),(310,1,1,'1274260104','1274260104',1),(311,1,1,'1274260108','1274260108',1),(312,1,1,'1274260109','1274260109',1),(313,1,1,'1274260111','1274260111',1),(314,1,1,'1274260111','1274260111',1),(315,1,1,'1274260112','1274260112',1),(316,1,1,'1274260113','1274260113',1),(317,1,1,'1274260114','1274260114',1),(318,1,1,'1274260115','1274260115',1),(319,1,1,'1274260116','1274260116',1),(320,1,1,'1274260119','1274260119',1),(321,1,1,'1274260120','1274260120',1),(322,1,1,'1274260121','1274260121',1),(323,1,1,'1274260123','1274260123',1),(324,1,1,'1274260123','1274260123',1),(325,1,1,'1274260125','1274260125',1),(326,1,1,'1274260150','1274260150',1),(327,1,1,'1274260151','1274260151',1),(328,1,1,'1274260152','1274260152',1),(329,2,1,'1274699152','1274699152',0),(330,1,1,'1276065647','1276065647',1),(331,1,1,'1276080479','1276080479',1),(332,1,1,'1276080758','1276080758',1),(333,1,1,'1276080906','1276080906',1),(334,1,1,'1276080946','1276080946',1),(335,1,1,'1276081008','1276081008',1),(336,1,1,'1276089193','1276089193',1),(337,1,1,'1276094343','1276094343',1),(338,1,1,'1276094394','1276094394',1),(339,1,1,'1276094427','1276094427',1),(340,1,1,'1276094468','1276094468',1),(341,1,4,'1276094491','1276094491',1),(342,1,2,'1276094521','1276094521',1),(343,1,1,'1276095136','1276095136',1),(344,1,1,'1276095251','1276095251',1),(345,1,1,'1276095739','1276095739',1),(346,1,1,'1276095860','1276095860',1),(347,1,1,'1276095916','1276095916',1),(348,1,1,'1276097145','1276097145',1),(349,1,1,'1276097258','1276097258',1),(350,1,1,'1276097519','1276097519',1),(351,1,1,'1276098126','1276098126',1),(352,1,1,'1276098530','1276098530',1),(353,1,1,'1276098578','1276098578',1),(354,1,1,'1276098596','1276098596',1),(355,1,1,'1276099472','1276099472',1),(356,1,1,'1276099491','1276099491',1),(357,1,1,'1276099522','1276099522',1),(358,1,1,'1276099562','1276099562',1),(359,1,1,'1276099632','1276099632',1),(360,1,1,'1276099681','1276099681',1),(361,1,1,'1276099759','1276099759',1),(362,1,1,'1276099940','1276099940',1),(363,1,1,'1276099975','1276099975',1),(364,1,1,'1276099979','1276099979',1),(365,1,1,'1276100036','1276100036',1),(366,1,1,'1276100053','1276100053',1),(367,1,1,'1276100058','1276100058',1),(368,1,1,'1276100090','1276100090',1),(369,1,1,'1276100111','1276100111',1),(370,1,1,'1276242975','1276242975',1),(371,1,1,'1276246325','1276246325',1),(372,1,1,'1276246473','1276246473',1),(373,1,1,'1276247512','1276247512',1),(374,1,1,'1276247576','1276247576',1),(375,1,1,'1276248169','1276248169',1),(376,2,2,'1276252252','1276252252',1),(377,2,2,'1276253914','1276253914',1),(378,2,2,'1276255049','1276255049',1),(379,4,1,'1276256010','1276256010',1),(380,4,1,'1276256071','1276256071',1),(381,5,2,'1276256113','1276256113',1),(382,5,2,'1276256451','1276256451',1),(383,5,2,'1276256925','1276256925',1),(384,5,1,'1276257435','1276257435',1),(385,6,2,'1276258446','1276258446',1),(386,7,1,'1276258670','1276258670',1),(387,8,2,'1276258756','1276258756',1),(388,9,1,'1276259664','1276259664',1),(389,10,1,'1276259840','1276259840',1),(390,11,2,'1276260104','1276260104',1),(391,10,2,'1276260170','1276260170',1),(392,10,2,'1276260341','1276260341',1),(393,10,2,'1276260526','1276260526',1),(394,10,1,'1276260568','1276260568',1),(395,12,2,'1276264736','1276264736',1),(396,1,2,'1276265544','1276265544',1),(397,1,2,'1276265573','1276265573',1),(398,1,2,'1276265609','1276265609',1),(399,1,2,'1276265714','1276265714',1),(400,1,2,'1276266133','1276266133',1),(401,9,1,'1276267794','1276267794',1),(402,1,2,'1276267823','1276267823',1),(403,1,2,'1276268399','1276268399',1),(404,13,2,'1276268556','1276268556',1),(405,14,2,'1276268765','1276268765',1),(406,15,2,'1276268868','1276268868',1),(407,16,2,'1276269119','1276269119',1),(408,17,2,'1276269852','1276269852',1),(409,18,2,'1276269994','1276269994',1),(410,19,2,'1276270055','1276270055',1),(411,20,2,'1276270147','1276270147',1),(412,21,2,'1276270383','1276270383',1),(413,22,1,'1276270733','1276270733',1),(414,23,1,'1276270812','1276270812',1),(415,24,1,'1276271036','1276271036',1),(416,25,1,'1276271039','1276271039',1),(417,25,1,'1276271149','1276271149',1),(418,25,2,'1276274715','1276274715',1),(419,26,1,'1276522282','1276522282',1),(420,26,2,'1276522502','1276522502',1),(421,26,1,'1276522685','1276522685',1),(422,26,2,'1276522707','1276522707',1),(423,26,1,'1276522884','1276522884',1),(424,26,1,'1276522906','1276522906',1),(425,26,1,'1276522915','1276522915',1),(426,27,1,'1276522985','1276522985',1),(427,28,1,'1276523038','1276523038',1),(428,29,1,'1276523268','1276523268',1),(429,30,1,'1276523353','1276523353',1),(430,31,1,'1276523825','1276523825',1),(431,32,1,'1276523978','1276523978',1),(432,33,1,'1276524040','1276524040',1),(433,34,1,'1276524132','1276524132',1),(434,35,1,'1276524168','1276524168',1),(435,36,1,'1276524306','1276524306',1),(436,37,1,'1276524420','1276524420',1),(437,37,1,'1276524438','1276524438',1),(438,37,1,'1276524559','1276524559',1),(439,38,2,'1276582157','1276582157',1),(440,38,1,'1276582173','1276582173',1),(441,38,1,'1276582223','1276582223',1),(442,38,1,'1276582233','1276582233',1),(443,39,1,'1276586154','1276586154',1),(444,39,1,'1276586171','1276586171',1),(445,39,1,'1276586193','1276586193',1),(446,1,6,'1276592324','1276592324',1),(447,40,1,'1276876364','1276876364',1),(448,41,4,'1276876467','1276876467',1),(449,42,1,'1276876900','1276876900',1),(450,42,1,'1276882672','1276882672',1),(451,42,1,'1276883172','1276883172',1),(452,42,1,'1276883253','1276883253',1),(453,42,1,'1276883345','1276883345',1),(454,42,1,'1276883473','1276883473',1),(455,42,1,'1276884595','1276884595',1),(456,42,5,'1276884810','1276884810',1),(457,42,5,'1276884926','1276884926',1),(458,42,5,'1276884991','1276884991',1),(459,42,5,'1276948836','1276948836',1),(460,42,5,'1276948907','1276948907',1),(461,42,5,'1276949354','1276949354',1),(462,42,5,'1276949419','1276949419',1),(463,42,5,'1276949450','1276949450',1),(464,42,5,'1276949523','1276949523',1),(465,1,6,'1276949635','1276949635',1),(466,1,6,'1276949733','1276949733',1),(467,1,6,'1276949860','1276949860',1),(468,1,6,'1276949890','1276949890',1),(469,1,6,'1276949918','1276949918',1),(470,1,6,'1276950162','1276950162',1),(471,1,6,'1276950232','1276950232',1),(472,1,6,'1276951188','1276951188',1),(473,38,1,'1276951261','1276951261',1),(474,38,1,'1276951512','1276951512',1),(475,42,5,'1276951552','1276951552',1),(476,42,5,'1276952327','1276952327',1),(477,42,5,'1276952371','1276952371',1),(478,42,5,'1276952460','1276952460',1),(479,42,5,'1276952499','1276952499',1),(480,42,5,'1276952536','1276952536',1),(481,42,5,'1276952642','1276952642',1),(482,42,5,'1276952661','1276952661',1),(483,42,5,'1276952696','1276952696',1),(484,38,1,'1276952724','1276952724',1),(485,38,1,'1276952739','1276952739',1),(486,42,2,'1276952941','1276952941',1),(487,42,2,'1276953033','1276953033',1),(488,41,4,'1276953062','1276953062',1),(489,41,2,'1276953090','1276953090',1),(490,43,1,'1276955065','1276955065',1),(491,43,2,'1276955096','1276955096',1),(492,39,1,'1277202657','1277202657',1),(493,39,1,'1277202700','1277202700',1),(494,39,1,'1277202736','1277202736',1),(495,37,1,'1277230246','1277230246',1),(496,37,1,'1277230268','1277230268',1),(497,37,1,'1277230434','1277230434',1),(498,37,1,'1277230461','1277230461',1),(499,44,1,'1277233812','1277233812',1),(500,37,1,'1277971371','1277971371',2),(501,37,1,'1277971551','1277971551',2),(502,37,1,'1277972821','1277972821',2),(503,37,1,'1277972835','1277972835',2),(504,45,1,'1277976955','1277976955',2),(505,46,1,'1277982374','1277982374',2),(506,37,1,'1277982948','1277982948',2),(507,46,1,'1277982993','1277982993',2),(508,46,1,'1277983169','1277983169',2),(509,47,1,'1277986273','1277986273',2),(510,48,1,'1277986481','1277986481',2),(511,49,1,'1277986542','1277986542',2),(512,37,1,'1277986781','1277986781',1),(513,49,1,'1277986828','1277986828',1),(514,50,2,'1280226928','1280226928',1),(515,1,0,'1280409064','1280409064',1),(516,1,0,'1280409313','1280409313',1),(517,1,0,'1280409341','1280409341',1),(518,1,0,'1280409391','1280409391',1),(519,1,0,'1280409421','1280409421',1),(520,1,0,'1280409444','1280409444',1),(521,1,0,'1280409660','1280409660',1),(522,1,0,'1280409674','1280409674',1),(523,1,0,'1280409791','1280409791',1),(524,1,0,'1280409979','1280409979',1),(525,1,0,'1280410056','1280410056',1),(526,1,1,'1280431685','1280431685',1),(527,1,3,'1280431777','1280431777',1),(528,1,1,'1280432055','1280432055',1),(529,1,2,'1280432132','1280432132',1),(530,1,3,'1280432230','1280432230',1),(531,1,3,'1280432275','1280432275',1),(532,1,3,'1280432281','1280432281',1),(533,1,2,'1280432319','1280432319',1),(534,1,2,'1280432387','1280432387',1),(535,1,2,'1280432443','1280432443',1),(536,1,2,'1280432547','1280432547',1),(537,1,1,'1280432617','1280432617',1),(538,1,1,'1280432786','1280432786',1),(539,1,1,'1280432843','1280432843',1),(540,1,1,'1280432933','1280432933',1),(541,1,1,'1280433019','1280433019',1),(542,1,1,'1280433337','1280433337',1),(543,1,1,'1280433876','1280433876',1),(544,1,1,'1280433928','1280433928',1),(545,1,1,'1280434031','1280434031',1),(546,1,1,'1280434188','1280434188',1),(547,1,1,'1280434404','1280434404',1),(548,1,1,'1280434440','1280434440',1),(549,1,1,'1280434526','1280434526',1),(550,1,1,'1280434663','1280434663',1),(551,1,1,'1280434750','1280434750',1),(552,1,1,'1280435147','1280435147',1),(553,1,1,'1280435185','1280435185',1),(554,1,1,'1280435328','1280435328',1),(555,1,1,'1280435417','1280435417',1),(556,1,1,'1280435428','1280435428',1),(557,1,1,'1280435541','1280435541',1),(558,1,1,'1280435570','1280435570',1),(559,1,1,'1280474268','1280474268',1),(560,1,1,'1280475486','1280475486',1),(561,1,1,'1280476028','1280476028',1),(562,1,1,'1280476224','1280476224',1),(563,1,1,'1280476297','1280476297',1),(564,1,1,'1280476354','1280476354',1),(565,1,1,'1280476504','1280476504',1),(566,1,1,'1280476561','1280476561',1),(567,1,1,'1280478804','1280478804',1),(568,1,1,'1280480525','1280480525',1),(569,1,1,'1280480563','1280480563',1),(570,1,1,'1280480564','1280480564',1),(571,1,1,'1280480605','1280480605',1),(572,1,1,'1280480680','1280480680',1),(573,1,1,'1280480709','1280480709',1),(574,1,1,'1280480745','1280480745',1),(575,1,1,'1280480774','1280480774',1),(576,1,1,'1280480870','1280480870',1),(577,1,1,'1280481107','1280481107',1),(578,1,1,'1280481126','1280481126',1),(579,1,1,'1280481182','1280481182',1),(580,1,1,'1280481317','1280481317',1),(581,1,1,'1280481364','1280481364',1),(582,1,1,'1280481450','1280481450',1),(583,1,1,'1280481510','1280481510',1),(584,1,1,'1280481547','1280481547',1),(585,1,1,'1280481567','1280481567',1),(586,1,1,'1280481622','1280481622',1),(587,1,1,'1280481646','1280481646',1),(588,1,1,'1280481663','1280481663',1),(589,1,1,'1280481750','1280481750',1),(590,1,1,'1280481770','1280481770',1),(591,1,1,'1280481856','1280481856',1),(592,1,1,'1280481872','1280481872',1),(593,1,1,'1280481886','1280481886',1),(594,1,1,'1280481909','1280481909',1),(595,1,1,'1280491060','1280491060',1),(596,1,1,'1280491113','1280491113',1),(597,1,2,'1280491130','1280491130',1),(598,1,3,'1280491457','1280491457',1),(599,1,2,'1280491588','1280491588',1),(600,1,2,'1280491610','1280491610',1),(601,20,2,'1280492565','1280492565',1),(602,20,1,'1280493309','1280493309',1),(603,20,1,'1280493447','1280493447',1),(604,50,2,'1280733184','1280733184',1),(605,50,2,'1280733255','1280733255',1),(606,50,2,'1280736699','1280736699',1),(607,6,2,'1280736866','1280736866',1),(608,51,1,'1282119125','1282119125',1),(609,51,1,'1282122926','1282122926',1),(610,51,1,'1282123036','1282123036',1),(611,52,1,'1283334337','1283334337',1),(612,53,1,'1283335562','1283335562',1),(613,54,1,'1283460667','1283460667',1),(614,7,1,'1283461668','1283461668',1),(615,55,1,'1283713633','1283713633',1),(616,55,1,'1283755746','1283755746',1),(617,56,1,'1283755985','1283755985',1),(618,57,1,'1283756103','1283756103',1),(619,58,1,'1283757521','1283757521',1),(620,59,1,'1283759338','1283759338',1),(621,60,9,'1283777612','1283777612',1),(622,61,10,'1283851988','1283851988',1),(623,62,10,'1283852927','1283852927',1),(624,63,10,'1283853271','1283853271',1),(625,64,10,'1283857804','1283857804',1),(626,65,10,'1283858303','1283858303',1),(627,66,10,'1283858438','1283858438',1),(628,67,10,'1283859117','1283859117',1),(629,68,0,'1283872729','1283872729',1),(630,69,0,'1283873013','1283873013',1),(631,70,0,'1283873378','1283873378',1),(632,71,0,'1283873848','1283873848',1),(633,72,0,'1283875146','1283875146',1),(634,73,0,'1283891047','1283891047',1),(635,73,0,'1285408555','1285408555',1),(636,74,0,'1285408674','1285408674',1),(637,75,0,'1285424527','1285424527',1),(638,76,0,'1285427165','1285427165',1),(639,77,0,'1285657524','1285657524',1),(640,78,0,'1285657744','1285657744',1),(641,79,0,'1285668597','1285668597',1),(642,80,0,'1285668708','1285668708',1),(643,81,0,'1285668868','1285668868',1),(644,82,0,'1285668956','1285668956',1),(645,83,0,'1285669106','1285669106',1),(646,84,0,'1285676716','1285676716',1),(647,85,0,'1285678016','1285678016',1),(648,86,0,'1285678155','1285678155',1),(649,87,0,'1285678201','1285678201',1),(650,88,0,'1285678485','1285678485',1),(651,89,0,'1285680273','1285680273',1),(652,90,0,'1285680330','1285680330',1),(653,91,0,'1285700510','1285700510',1),(654,92,0,'1285732296','1285732296',1),(655,1,0,'1285735087','1285735087',1),(656,2,0,'1286285494','1286285494',1),(657,8,2,'1287398926','1287398926',1),(658,9,2,'1287399584','1287399584',1),(659,10,1,'1287468982','1287468982',1),(660,11,1,'1287469030','1287469030',1),(661,2,0,'1288280060','1288280060',1),(662,2,0,'1288280114','1288280114',1),(663,2,0,'1288280209','1288280209',1),(664,2,0,'1288280268','1288280268',1),(665,4,0,'1288345566','1288345566',1),(666,6,0,'1288345735','1288345735',1),(667,7,0,'1288346119','1288346119',1),(668,8,0,'1288436368','1288436368',1),(669,12,2,'1290671345','1290671345',1),(670,12,3,'1290672525','1290672525',1),(671,12,2,'1290672555','1290672555',1),(672,12,3,'1290672706','1290672706',1),(673,13,2,'1290672901','1290672901',1),(674,13,2,'1290672939','1290672939',1),(675,13,3,'1290673040','1290673040',1),(676,9,0,'1290679012','1290679012',1),(677,10,0,'1290681637','1290681637',1),(678,13,3,'1291019118','1291019118',1),(679,13,3,'1291019196','1291019196',1),(680,13,3,'1291019234','1291019234',1),(681,11,0,'1291298214','1291298214',1),(682,12,0,'1291303922','1291303922',1),(683,13,0,'1291317164','1291317164',1),(684,14,0,'1291641659','1291641659',1),(685,15,0,'1291725679','1291725679',1),(686,16,0,'1291730504','1291730504',1),(687,17,0,'1291790878','1291790878',1),(688,18,0,'1291791210','1291791210',1),(689,19,0,'1291794205','1291794205',1),(690,20,0,'1304754457','1304754457',1);

--
-- Table structure for table `bstock_orderstatustypes`
--

CREATE TABLE `bstock_orderstatustypes` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `status` varchar(250) NOT NULL COMMENT 'Name of the order status type.',
  `description` text NOT NULL COMMENT 'Description for the order status type.',
  `is_active` enum('0','1') NOT NULL COMMENT 'Whether this order type is active or not.',
  `created_date` varchar(50) NOT NULL COMMENT 'Date when this order status type was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Date when this order status type was last modified.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1 COMMENT='This table is used to store the different order status types';

--
-- Dumping data for table `bstock_orderstatustypes`
--

INSERT INTO `bstock_orderstatustypes` VALUES (1,'Order Placed','Order Placed','0','',''),(10,'Unpaid','Order Unpaid','1','',''),(9,'Paid','Order Paid','1','',''),(4,'Order shipped','Order shipped','0','',''),(5,'Order Completed','Order Completed','0','',''),(6,'Order Cancelled','Order Cancelled','0','',''),(7,'Order Pending','Order Pending','0','',''),(8,'Partially Shipped','Partially Shipped','0','',''),(11,'Partially Paid','Order Partially Paid','1','','');

--
-- Table structure for table `bstock_pages`
--

CREATE TABLE `bstock_pages` (
  `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `page_author` bigint(20) unsigned NOT NULL DEFAULT '0',
  `page_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `page_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `page_content` longtext NOT NULL,
  `page_title` text NOT NULL,
  `page_hyper_link` varchar(255) NOT NULL,
  `menu_display` enum('yes','no') NOT NULL DEFAULT 'no',
  `header_menu` enum('yes','no') NOT NULL DEFAULT 'no',
  `page_category` int(4) NOT NULL DEFAULT '0',
  `page_excerpt` text NOT NULL,
  `page_status` varchar(20) NOT NULL DEFAULT 'publish',
  `comment_status` varchar(20) NOT NULL DEFAULT 'open',
  `ping_status` varchar(20) NOT NULL DEFAULT 'open',
  `page_password` varchar(20) NOT NULL DEFAULT '',
  `page_name` varchar(200) NOT NULL DEFAULT '',
  `to_ping` text NOT NULL,
  `pinged` text NOT NULL,
  `page_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `page_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `page_content_filtered` text NOT NULL,
  `page_parent` bigint(20) unsigned NOT NULL DEFAULT '0',
  `guid` varchar(255) NOT NULL DEFAULT '',
  `menu_order` int(11) NOT NULL DEFAULT '0',
  `page_type` varchar(20) NOT NULL DEFAULT 'post',
  `page_mime_type` varchar(100) NOT NULL DEFAULT '',
  `comment_count` bigint(20) NOT NULL DEFAULT '0',
  `user-voice_username` varchar(128) NOT NULL DEFAULT '',
  `user-voice_slug` varchar(128) NOT NULL DEFAULT 'general',
  `user-voice_active` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `user-voice_alignment` enum('left','right') NOT NULL DEFAULT 'right',
  `user-voice_color` char(6) NOT NULL DEFAULT '00BCBA',
  PRIMARY KEY (`ID`),
  KEY `page_name` (`page_name`),
  KEY `type_status_date` (`page_type`,`page_status`,`page_date`,`ID`),
  KEY `page_parent` (`page_parent`)
) ENGINE=MyISAM AUTO_INCREMENT=525 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pages`
--

INSERT INTO `bstock_pages` VALUES (1,1,'2008-06-17 11:35:57','2008-06-17 11:35:57','<h1>Demo Company</h1>\r\n\r\n<h3>Diamond Importers, Manufacturers and Exporters</h3>\r\n\r\nThe business consists of both rough and polished diamonds. It manufactures diamonds of all sizes.<br/>\r\n\r\nBesides being manufacturers, the company ranks among the top-most dealers (traders) in the market in both polished and rough diamonds.<br/>\r\n\r\n<h2>We believe in quality, consistency and relationship.</h2>','Demo Company - Diamond Importers, Manufacturers and Exporters','Home','yes','no',0,'','publish','open','open','','home','','','2009-10-14 19:16:00','2009-10-14 19:16:00','',0,'http://narvekar.co.in/?p=1',1,'page','',0,'','general',0,'right','00BCBA'),(2,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','<div class=\"education\">\r\n<h1>About Us <br><br>\r\nDiamond & Jewelry Manufacturers and Exporters\r\n</h1>\r\n\r\n<p>Ever since the incorporation of the company, all its partners have had diversified operations. Each partner handles his own department to his utmost potential and strives for the overall advancement of the firm.</p>\r\n\r\n<p>The company prides itself on the loyalty of its customers. This loyalty arises from the service provided and also the preparation of the goods. That is the core reason why most of the customers that work with it, work solely with it.</p>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n</div>','About Demo Company','About Us','yes','no',0,'','publish','open','open','','about-us','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',3,'page','',0,'','general',0,'right','00BCBA'),(3,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is Buy Online or can be called search page','Demo Company - Search Stock','Buy Online','yes','no',0,'','publish','open','open','','search','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',2,'page','',0,'','general',0,'right','00BCBA'),(4,1,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is contact us. ','Demo Company - Contact Us','Contact Us','yes','no',0,'','publish','open','open','','contact-us','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',4,'page','',0,'','general',0,'right','00BCBA'),(5,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is career page','Demo Company - Career Opportunities','Career','yes','no',0,'','publish','open','open','','career','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',5,'page','',0,'','general',0,'right','00BCBA'),(6,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is the login page','Demo Company - Login','Login','no','no',0,'','publish','open','open','','login','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',6,'page','',0,'','general',0,'right','00BCBA'),(7,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is the password page','Demo Company - Forgot Password','Forgot Password','no','no',0,'','publish','open','open','','forgot-password','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',7,'page','',0,'','general',0,'right','00BCBA'),(8,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is the new user sign up page','Demo Company - Create Account','Sign Up','no','no',0,'','publish','open','open','','sign-up','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',8,'page','',0,'','general',0,'right','00BCBA'),(9,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is orders page.','View Orders','Orders','no','yes',0,'','publish','open','open','','orders','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',9,'page','',0,'','general',0,'right','00BCBA'),(10,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is Wishlist page','View Wishlist','Wishlist','no','no',0,'','publish','open','open','','wishlist','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',10,'page','',0,'','general',0,'right','00BCBA'),(11,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is Offers page.','View Offers','Offers','no','no',0,'','publish','open','open','','offers','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',11,'page','',0,'','general',0,'right','00BCBA'),(12,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is demands page.','View Demands','Demands','no','no',0,'','publish','open','open','','demands','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',12,'page','',0,'','general',0,'right','00BCBA'),(13,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is my account page.','Demo Company - View & Edit your Account Information','My Account','yes','no',0,'','publish','open','open','','my-account','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',13,'page','',0,'','general',0,'right','00BCBA'),(522,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is the search result page.','Search Results','Search Result','no','no',0,'','publish','open','open','','searchresult','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',14,'page','',0,'','general',0,'right','00BCBA'),(523,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is the checkout page.','Demo Company - Checkout','Check out','no','no',0,'','publish','open','open','','check-out','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',15,'page','',0,'','general',0,'right','00BCBA'),(524,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is Thank you page.','Demo Company - Thank you for placing your order.','Thank you page','no','no',0,'','publish','open','open','','thank-you','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',16,'page','',0,'','general',0,'right','00BCBA'),(17,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','This is the order detail page.','View Order Details','Order Detail Page','no','no',0,'','publish','open','open','','order-details','','','0000-00-00 00:00:00','0000-00-00 00:00:00','',0,'',17,'page','',0,'','general',0,'right','00BCBA');

--
-- Table structure for table `bstock_paymenttypes`
--

CREATE TABLE `bstock_paymenttypes` (
  `payment_type_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `name` varchar(250) NOT NULL COMMENT 'Name of the payment type.',
  `description` text NOT NULL COMMENT 'Description about the payment type.',
  `is_active` enum('0','1') NOT NULL COMMENT 'If the payment type is active, then it will be available for use.',
  `has_api` enum('0','1') NOT NULL COMMENT 'Indicates whether this payment gateway has an API or not.',
  `api_key` varchar(250) NOT NULL COMMENT 'API Key for the payment gateway.',
  `created_date` varchar(50) NOT NULL COMMENT 'Date when this particular payment type was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Date when this payment type was last modified.',
  PRIMARY KEY (`payment_type_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores the different payment types.';

--
-- Dumping data for table `bstock_paymenttypes`
--


--
-- Table structure for table `bstock_pl_categories`
--

CREATE TABLE `bstock_pl_categories` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This will be the primiary key',
  `parent_category_id` int(10) NOT NULL COMMENT 'this is will store the parent id of the category. if zero then that is the parent category',
  `name` varchar(255) NOT NULL COMMENT 'this will store the name of the category',
  `desc` varchar(255) NOT NULL COMMENT 'this will store the desc of the category',
  `created_by_id` int(10) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `is_featured` enum('off','on') NOT NULL COMMENT 'This will be field to mark if this is a feature category or not',
  `image_filename` varchar(50) NOT NULL COMMENT 'this field will save the image path',
  `filename_cover_image` varchar(50) NOT NULL,
  `is_default` enum('0','1') NOT NULL COMMENT 'this is created to get the default categorty when product is not selected',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=88 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_categories`
--

INSERT INTO `bstock_pl_categories` VALUES (1,11,'Engagement & Wedding','Engagement & Wedding ',87,'on','off','','Engagement & Wedding.jpeg','1','1274611761','1274611761'),(2,1,'Engagement','Engagement ',87,'on','off','','Enagement.jpeg','1','1274611842','1274611842'),(3,2,'Pave','Pave ',87,'on','off','','Pave.jpg','1','1274611888','1274611888'),(4,2,'Solitaire','Solitaire ',87,'on','off','','solitaire.jpg','0','1274611918','1274611918'),(5,2,'Sidestone','Sidestone ',87,'on','off','','sidestone.jpg','0','1274611945','1274611945'),(6,1,'Weddings','Weddings ',87,'on','off','','Weddings.png','0','1274611989','1275127369'),(7,6,'Men\'s Wedding Rings','Men\'s Wedding Rings ',87,'on','off','','Men\'s Wedding Rings.jpeg','0','1274612021','1274612021'),(8,6,'Plain Bands','Plain Bands ',87,'on','off','','Plain Bands.jpeg','1','1274612166','1274612166'),(9,6,'Diamond Wedding Rings','Diamond Wedding Rings ',87,'on','off','','Diamond Wedding Rings.jpeg','0','1274612319','1274612319'),(10,6,'Wedding Ring Sets','Wedding Ring Sets ',87,'on','off','','Wedding Ring Sets.jpeg','0','1274612485','1274612485'),(11,0,'parent','parent',87,'on','off','','','0','',''),(12,11,'Fine Jewelry','Fine Jewelry ',87,'on','off','','Fine Jewelry.jpeg','0','1274613691','1274613691'),(13,12,'Diamond Jewelry','Diamond Jewelry ',87,'on','off','','Diamond Jewelry.jpeg','1','1274613817','1274613817'),(14,13,'Studs','Studs ',87,'on','off','','diamond jewelry Studs.jpeg','0','1274613899','1274613899'),(15,13,'Rings','Rings ',87,'on','off','','diamond jewelary Rings.jpeg','1','1274613978','1274613978'),(16,12,'Gold Jewelry','Gold Jewelry ',87,'on','off','','Gold Jewelry.jpeg','0','1274614094','1274614094'),(17,16,'Studs','Studs ',87,'on','off','','gold jewelry Studs.jpeg','1','1274614164','1274614164'),(18,16,'Rings','Rings ',87,'on','off','','gold jewelry rings.jpeg','0','1274614251','1274614251'),(19,11,'Loose Diamonds','Loose Diamonds ',87,'on','off','','Loose Diamonds.jpeg','0','1274614844','1274614844'),(20,19,'Rough','Rough ',87,'on','off','','loose diamonds Rough.jpeg','0','1274614967','1274614967'),(21,19,'Polish','Polish ',87,'on','off','','loose diamonds Polish.jpeg','1','1274615114','1274615114'),(22,13,'Bracelets','Bracelets ',87,'on','off','','diamond jewelry Bracelets.jpg','1','1274953401','1274953401'),(23,13,'Pendants','Pendants ',87,'on','off','','diamond jewelry Pendants.jpg','0','1274953708','1274953708'),(24,13,'Necklace','Necklace ',87,'on','off','','diamond jewelry Necklace.jpg','0','1274953850','1274953850'),(25,13,'Earings','Earings ',87,'on','off','','diamond jewelry Earings.jpg','0','1274954035','1274954035'),(26,16,'Bracelets','Bracelets ',87,'on','off','','gold jewelry Bracelets.jpg','0','1274954405','1274954405'),(27,16,'Pendants','Pendants ',87,'on','off','','gold jewelry Pendants.jpg','1','1274954521','1274954521'),(28,16,'Necklace','Necklace ',87,'on','off','','gemstone jewelry Necklace.jpg','0','1274954573','1279346956'),(29,16,'Earings','Earings ',87,'on','off','','gold jewelry Earings.jpg','0','1274954891','1274954891'),(30,12,'Gemstone Jewelry','Gemstone Jewelry ',87,'on','off','','gemstone jewelry.jpg','0','1274955193','1274955193'),(31,30,'Studs','Studs ',87,'on','off','','gemstone jewelry Studs.jpg','0','1274955420','1274955420'),(32,30,'Rings','Rings ',87,'on','off','','gemstone jewelry Rings.jpg','0','1274955477','1274955477'),(33,30,'Bracelets','Bracelets ',87,'on','off','','gemstone jewelry Bracelets.jpg','0','1274955801','1274955801'),(34,30,'Pendants','Pendants ',87,'on','off','','gemstone jewelry Pendants.jpg','0','1274956019','1274956019'),(35,30,'Necklace','Necklace ',87,'on','off','','gemstone jewelry Necklace.jpg','1','1274956294','1274956294'),(36,30,'Earings','Earings ',87,'on','off','','gemstone jewelry Rings.jpg','0','1274956480','1274956480'),(37,12,'Pearl Jewelry','Pearl Jewelry ',87,'on','off','','Pearl Jewelry.jpg','0','1274956772','1274956772'),(38,37,'Studs','Studs ',87,'on','off','','Pearl Jewelry studs.jpg','0','1274957670','1274957670'),(39,37,'Rings','Rings ',87,'on','off','','Pearl Jewelry Rings.jpg','0','1274957837','1274957837'),(40,37,'Bracelets','Bracelets ',87,'on','off','','Pearl Jewelry Bracelate.jpg','0','1274957859','1274957859'),(41,37,'Pendants','Pendants ',87,'on','off','','Pearl Jewelry Pendants.jpg','0','1274957995','1274957995'),(42,37,'Necklace','Necklace ',87,'on','off','','Pearl Jewelry Necklace.jpg','0','1274958053','1274958053'),(43,37,'Earings','Earings ',87,'on','off','','Pearl Jewelry Earing.jpg','1','1274958073','1274958073'),(44,12,'Silver Jewelry','Silver Jewelry ',87,'on','off','','Silver Jewelry.jpg','0','1274958675','1274958675'),(45,44,'Studs','Studs ',87,'on','off','','Silver Jewelry Studs.jpeg','1','1274959121','1274959121'),(46,44,'Rings','Rings ',87,'on','off','','Silver Jewelry Rings.jpg','0','1274959207','1274959207'),(47,44,'Bracelets','Bracelets ',87,'on','off','','Silver Jewelry bracelet.jpg','0','1274959308','1274959308'),(48,44,'Pendants','Pendants ',87,'on','off','','Silver Jewelry Pendants.jpg','0','1274959887','1274959887'),(49,44,'Necklace','Necklace ',87,'on','off','','Silver Jewelry Necklace.jpg','0','1274959996','1274959996'),(50,44,'Earings','Earings ',87,'on','off','','Silver Jewelry Earings.jpg','0','1274960170','1274960170'),(51,12,'Designer Jewelry','Designer Jewelry ',87,'on','off','','designer-jewelry.png','0','1274960511','1275127654'),(52,51,'Studs','Studs ',87,'on','off','','Designer Jewelry Studs.jpeg','0','1274960588','1274960588'),(53,51,'Rings','Rings ',87,'on','off','','Designer Jewelry Rings.jpeg','1','1274960708','1274960708'),(54,51,'Bracelets','Bracelets ',87,'on','off','','Designer Jewelry Bracelets.jpeg','0','1274960838','1274960838'),(55,51,'Pendants','Pendants ',87,'on','off','','Designer Jewelry Pendants.jpeg','0','1274960939','1274960939'),(56,51,'Necklace','Necklace ',87,'on','off','','Designer Jewelry Necklace.jpeg','0','1274960981','1274960981'),(57,51,'Earings','Earings ',87,'on','off','','Designer Jewelry Earings.jpeg','0','1274961081','1274961081'),(58,12,'Gift Ideas','Gift Ideas ',87,'on','off','','gift-idea.png','0','1274961234','1274961234'),(59,58,'Studs','Studs ',87,'on','off','','gift idea Studs.jpeg','0','1274961482','1274961482'),(60,58,'Rings','Rings ',87,'on','off','','gift idea Rings.jpeg','0','1274961517','1274961517'),(61,58,'Bracelets','Bracelets ',87,'on','off','','gift idea Bracelets.jpeg','0','1274961568','1274961568'),(62,58,'Pendants','Pendants ',87,'on','off','','gift idea Pendants.jpeg','1','1274961618','1274961618'),(63,58,'Necklace','Necklace ',87,'on','off','','gift idea Necklace.jpeg','0','1274961668','1274961668'),(64,58,'Earings','Earings ',87,'on','off','','gift idea Earings.jpeg','0','1274961734','1274961734'),(87,2,'Mone','Mone ',87,'on','off','','diamond jewelry Bracelets.jpg','0','1279346253','1279346253'),(79,2,'Tension','Tension ',87,'on','off','','designer-jewelry.png','0','1279304378','1279346526'),(70,6,'Eternity Rings','Eternity Rings ',87,'on','off','','diamond jewelary Rings.jpeg','0','1279299992','1279346744'),(72,6,'Three-Stone Diamond Rings','Three-Stone Diamond Rings ',87,'on','off','','gift idea Rings.jpeg','0','1279300607','1279300607'),(86,2,'Gemstone','Gemstone ',87,'on','off','','Diamond Wedding Rings.jpeg','0','1279346207','1279346207');

--
-- Table structure for table `bstock_pl_dailycashentries`
--

CREATE TABLE `bstock_pl_dailycashentries` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `party_id` int(10) NOT NULL COMMENT 'Customer ID or Vendor ID or Karigar ID',
  `party_type` varchar(50) NOT NULL COMMENT 'Table name for each party id i.e. bstock_customers, bstock_vendors, _jwl_labour_info',
  `payment_mode` varchar(25) NOT NULL COMMENT 'Cash or Angadia',
  `angadia_id` int(10) NOT NULL COMMENT 'ID of Angadia company',
  `from_account` varchar(100) NOT NULL COMMENT 'Name on Angadia account of party transferring funds.',
  `to_account` varchar(100) NOT NULL COMMENT 'Name on Angadia account of party receiving funds.',
  `entry_type` enum('Debit','Credit') NOT NULL COMMENT 'Debit or Credit',
  `amount` decimal(10,2) NOT NULL COMMENT 'Amount to be debited or credit.',
  `closing_balance` decimal(10,2) NOT NULL COMMENT 'This is to store the closing balance after every transaction.',
  `date` varchar(15) NOT NULL COMMENT 'Timestamp of date for this entry.',
  `date_timestamp` int(10) NOT NULL COMMENT 'Timestamp format of date for the entry.',
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  `remarks` varchar(500) NOT NULL COMMENT 'Remarks or comments for a cash entry.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=29 DEFAULT CHARSET=latin1 COMMENT='Stores daily cashbook entries.';

--
-- Dumping data for table `bstock_pl_dailycashentries`
--

INSERT INTO `bstock_pl_dailycashentries` VALUES (1,0,'Self','Cash',0,'','','Credit',500000.00,500000.00,'12/04/2010',1291465942,1291465942,1291465942,''),(2,1,'bstock_customers','Cash',0,'','','Debit',90000.00,410000.00,'12/04/2010',1291465979,1291465979,1291465979,''),(3,0,'Self','Angadia',1,'','','Credit',10000.00,10000.00,'12/04/2010',1291466023,1291466023,1291466023,''),(4,0,'Self','Angadia',1,'','','Credit',90000.00,100000.00,'12/04/2010',1291466049,1291466049,1291466049,''),(5,1,'bstock_customers','Angadia',1,'','','Debit',2536.00,97464.00,'12/04/2010',1291466072,1291466072,1291466072,''),(6,2,'bstock_customers','Cash',0,'','','Credit',18000.00,428000.00,'12/04/2010',1291467408,1291467408,1291467408,''),(7,2,'bstock_customers','Angadia',4,'','','Credit',72000.00,72000.00,'12/04/2010',1291467476,1291467476,1291467476,''),(8,2,'bstock_customers','Cash',0,'','','Credit',20000.00,448000.00,'12/04/2010',1291467497,1291467497,1291467497,''),(9,4,'bstock_karigar','Cash',0,'','','Debit',125.00,447875.00,'12/06/2010',1291654678,1291654678,1291654678,''),(10,4,'bstock_karigar','Cash',0,'','','Debit',100.00,447775.00,'12/06/2010',1291654899,1291654899,1291654899,''),(11,3,'bstock_karigar','Cash',0,'','','Debit',300.00,447475.00,'12/07/2010',1291726513,1291726513,1291726513,'karigari'),(12,2,'bstock_customers','Cash',1,'','','Credit',200000.00,647475.00,'12/07/2010',1291729407,1291729407,1291729407,'test'),(13,2,'bstock_customers','Angadia',8,'','','Debit',200000.00,-200000.00,'12/07/2010',1291729572,1291729572,1291729572,''),(14,2,'bstock_customers','Angadia',8,'','','Debit',400000.00,-600000.00,'12/07/2010',1291729672,1291729672,1291729672,''),(15,2,'bstock_customers','Angadia',4,'','','Debit',200000.00,-128000.00,'12/07/2010',1291729737,1291729737,1291729737,'t'),(16,2,'bstock_customers','Angadia',1,'','','Debit',223297.00,-125833.00,'12/07/2010',1291729781,1291729781,1291729781,''),(17,0,'Self','Angadia',1,'','','Credit',125833.00,0.00,'12/07/2010',1291729910,1291729910,1291729910,''),(18,0,'Self','Cash',4,'','','Credit',128000.00,775475.00,'12/07/2010',1291729922,1291729922,1291729922,''),(19,0,'Self','Angadia',8,'','','Credit',600000.00,0.00,'12/07/2010',1291730108,1291730108,1291730108,''),(20,3,'bstock_customers','Angadia',4,'','','Debit',19413.00,-147413.00,'12/07/2010',1291730761,1291730761,1291730761,''),(21,3,'bstock_customers','Angadia',4,'','','Credit',19413.00,-128000.00,'12/07/2010',1291730790,1291730790,1291730790,''),(22,0,'bstock_karigar','Angadia',4,'','','Credit',700.00,-127300.00,'12/07/2010',1291730820,1291730820,1291730820,''),(23,3,'bstock_customers','Angadia',4,'','','Credit',500.00,-126800.00,'12/07/2010',1291730855,1291730855,1291730855,''),(24,3,'bstock_customers','Angadia',4,'','','Credit',7000.00,-119800.00,'12/06/2010',1291644684,1291731084,1291731084,''),(25,0,'Self','Cash',0,'','','Credit',50000.00,825475.00,'12/07/2010',1291743576,1291743576,1291743576,''),(26,0,'Self','Cash',0,'','','Credit',100000.00,925475.00,'01/26/2011',1296041766,1296041766,1296041766,''),(27,3,'bstock_customers','Cash',0,'','','Debit',125000.00,800475.00,'01/26/2011',1296042028,1296042028,1296042028,'po # 45'),(28,2,'bstock_customers','Angadia',1,'','','Debit',5000.00,-5000.00,'01/26/2011',1296042069,1296042069,1296042069,'');

--
-- Table structure for table `bstock_pl_dailycashentries_logs`
--

CREATE TABLE `bstock_pl_dailycashentries_logs` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `dce_id` int(10) NOT NULL COMMENT 'Primary key of bstock_dailycashentries table',
  `order_id` int(10) NOT NULL COMMENT 'Purchase order id or Sale order id.',
  `amount_paid` decimal(10,2) NOT NULL COMMENT 'Actual amount paid by the customer.',
  `previous_balance` decimal(10,2) NOT NULL COMMENT 'Balance payment for this order before this payment.',
  `new_balance` decimal(10,2) NOT NULL COMMENT 'Balance payment for this order after this payment.',
  `payment_date` varchar(15) NOT NULL COMMENT 'Timestamp when the payment was made.',
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=31 DEFAULT CHARSET=latin1 COMMENT='Stores orders affected by each cashbook entry.';

--
-- Dumping data for table `bstock_pl_dailycashentries_logs`
--

INSERT INTO `bstock_pl_dailycashentries_logs` VALUES (1,2,4,90000.00,92536.00,2536.00,'1291465979',1291465979,1291465979),(2,5,4,2536.00,2536.00,0.00,'1291466072',1291466072,1291466072),(3,6,8,18000.00,90000.00,72000.00,'1291467408',1291467408,1291467408),(4,7,8,72000.00,72000.00,0.00,'1291467476',1291467476,1291467476),(5,8,10,20000.00,28900.00,8900.00,'1291467497',1291467497,1291467497),(6,9,47,125.00,66.00,0.00,'1291654678',1291654678,1291654678),(7,9,48,125.00,250.00,191.00,'1291654678',1291654678,1291654678),(8,10,48,100.00,191.00,91.00,'1291654899',1291654899,1291654899),(9,11,44,300.00,55.00,0.00,'1291726513',1291726513,1291726513),(10,11,45,300.00,122.00,0.00,'1291726513',1291726513,1291726513),(11,11,49,300.00,700.00,577.00,'1291726513',1291726513,1291726513),(12,12,10,200000.00,8900.00,0.00,'1291729407',1291729407,1291729407),(13,12,11,200000.00,0.00,0.00,'1291729407',1291729407,1291729407),(14,12,14,200000.00,27267.00,0.00,'1291729407',1291729407,1291729407),(15,13,6,200000.00,92300.00,0.00,'1291729572',1291729572,1291729572),(16,13,13,200000.00,224711.00,117011.00,'1291729572',1291729572,1291729572),(17,14,13,400000.00,117011.00,0.00,'1291729672',1291729672,1291729672),(18,14,14,400000.00,224711.00,0.00,'1291729672',1291729672,1291729672),(19,14,15,400000.00,224711.00,166433.00,'1291729672',1291729672,1291729672),(20,15,15,200000.00,166433.00,0.00,'1291729737',1291729737,1291729737),(21,15,18,200000.00,256864.00,223297.00,'1291729737',1291729737,1291729737),(22,16,18,223297.00,223297.00,0.00,'1291729781',1291729781,1291729781),(23,20,7,19413.00,22503.00,3090.00,'1291730761',1291730761,1291730761),(24,21,15,19413.00,19413.00,0.00,'1291730790',1291730790,1291730790),(25,23,16,500.00,367500.00,367000.00,'1291730855',1291730855,1291730855),(26,24,16,7000.00,367000.00,360000.00,'1291644684',1291731084,1291731084),(27,27,7,125000.00,3090.00,0.00,'1296042028',1296042028,1296042028),(28,27,8,125000.00,88753.00,0.00,'1296042028',1296042028,1296042028),(29,27,9,125000.00,144629.00,111472.00,'1296042028',1296042028,1296042028),(30,28,19,5000.00,272201.00,267201.00,'1296042069',1296042069,1296042069);

--
-- Table structure for table `bstock_pl_demands`
--

CREATE TABLE `bstock_pl_demands` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `customer_id` int(50) NOT NULL,
  `demand_date_to` varchar(50) NOT NULL,
  `demand_date_from` varchar(50) NOT NULL,
  `status` enum('Active','Temporary deactive','Permanently Deactive') NOT NULL,
  `shape` varchar(50) NOT NULL,
  `size_to` varchar(25) NOT NULL,
  `size_from` varchar(25) NOT NULL,
  `color_to` enum('D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R') NOT NULL,
  `color_from` enum('D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R') NOT NULL,
  `clarity_to` enum('IF','VVS1','VVS2','VS1','VS2','SI1','SI2','I1','I2','I3') NOT NULL,
  `clarity_from` enum('IF','VVS1','VVS2','VS1','VS2','SI1','SI2','I1','I2','I3') NOT NULL,
  `cut_to` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `cut_from` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `polish_to` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `polish_from` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `symm_to` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `symm_from` enum('EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `flour_to` enum('NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY SLIGHT') NOT NULL,
  `flour_from` enum('NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY SLIGHT') NOT NULL,
  `lab` varchar(25) NOT NULL,
  `location` varchar(25) NOT NULL,
  `price_to` int(50) NOT NULL,
  `price_from` int(50) NOT NULL,
  `discount_from` varchar(50) NOT NULL,
  `discount_to` varchar(50) NOT NULL,
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(59) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
