--
-- Host: localhost    Database: reenakak_nishil
-- ------------------------------------------------------


--
-- Current Database: `reenakak_nishil`
--

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

USE `reenakak_nishil`;

--
-- 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=13 DEFAULT CHARSET=latin1;

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

INSERT INTO `bstock_angadia` VALUES (1,'Amba Hargovind','Mumbai - 400 004','on',0,'','1309364713','Bigg Stock - AH'),(4,'Jayanti Amba','Marol Maroshi\r\nAdheri East\r\nMumbai 400093','on',0,'','1309364723','Bigg Stock - JA'),(8,'MM','Opera house','on',0,'','1309364732','Bigg Stock - MM'),(12,'Dummy','','on',0,'1312282560','1312282560','Nishil AH');

--
-- 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_bank`
--

CREATE TABLE `bstock_bank` (
  `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_number` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_bank`
--

INSERT INTO `bstock_bank` VALUES (1,'ICICI Bank','Opera house, Mumbai 400004','on',0,'','1306847046','001800180018'),(2,'HDFC Bank','Opera House, Opp. Sukh Sagar, Mumbai','on',0,'1307088364','1307088364','29180018');

--
-- Table structure for table `bstock_brokerage_rates`
--

CREATE TABLE `bstock_brokerage_rates` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `amount_from` decimal(10,2) NOT NULL,
  `amount_to` decimal(10,2) NOT NULL COMMENT 'If this is blank or 0, it means any amount greater than amount_from falls in this slab.',
  `brokerage_percent` decimal(10,2) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(20) NOT NULL,
  `modified_date` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 COMMENT='Store the brokerage slabs from which brokerage for every ord';

--
-- Dumping data for table `bstock_brokerage_rates`
--

INSERT INTO `bstock_brokerage_rates` VALUES (1,0.00,1000000.00,1.00,'on','0','0'),(2,1000001.00,0.00,0.50,'on','0','0'),(3,1500001.00,2000000.00,0.25,'on','',''),(4,2000001.00,0.00,0.10,'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 DEFAULT CHARSET=latin1;

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


--
-- 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('on','off') NOT NULL DEFAULT 'on',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=843 DEFAULT CHARSET=latin1;

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

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

--
-- 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 DEFAULT CHARSET=latin1 COMMENT='Store the shipping address details of the customer.';

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


--
-- 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.',
  `address` varchar(2500) NOT NULL,
  `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',
  `payment_terms_id` enum('COD','30 Days','60 Days','90 Days','120 Days') NOT NULL,
  `credit_amount` varchar(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store details of customers. They are not system users.';

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


--
-- 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 DEFAULT CHARSET=latin1 COMMENT='Store the shipping address details of the customer.';

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


--
-- 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,'Sankalp','Seepz, Andheri.','1234567','9999999','1111111','2222222','on','','1263212323',''),(2,'Star Asia','PRASAD CHAMBERS,\r\nOPERA HOUSE,MUMBAI 400 004','2224512','1253412','12355312','','on','','1212356342','0388256202'),(3,'Narvekar exporter','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=256 DEFAULT CHARSET=latin1 COMMENT='This table will store all the custom fields for the modules.';

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



--
-- Table structure for table `bstock_importers`
--

CREATE TABLE `bstock_importers` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This will be the primary key.',
  `importer_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=4 DEFAULT CHARSET=latin1 COMMENT='Stores exporter related information like Name, Address, etc.';

--
-- Dumping data for table `bstock_importers`
--

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

--
-- 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 DEFAULT CHARSET=latin1 COMMENT='Stores the invoices for every order.';

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


--
-- 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 DEFAULT CHARSET=latin1 COMMENT='Here we record all the transactions when the invoices status';

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


--
-- 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_jhangadshipping`
--

CREATE TABLE `bstock_jhangadshipping` (
  `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.',
  `remarks` varchar(1000) NOT NULL,
  `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=29 DEFAULT CHARSET=latin1 COMMENT='Store the shipping address of the customer for an order.';

--
-- Dumping data for table `bstock_jhangadshipping`
--

INSERT INTO `bstock_jhangadshipping` VALUES (1,1,168,'','1269635676','1269635676'),(2,2,169,'','1274699151','1274699151'),(3,8,169,'','',''),(4,2,228,'','1287440192','1287440192'),(5,2,228,'','1287469249','1287469249'),(6,3,229,'','1287470320','1287470320'),(7,3,231,'','1287484925','1287484925'),(8,3,232,'','1287485044','1287485044'),(9,3,233,'','1287486252','1287486252'),(10,3,234,'','1287486379','1287486379'),(11,4,235,'','1287487210','1287487210'),(12,4,236,'','1287488972','1287488972'),(13,6,237,'','1287489071','1287489071'),(14,7,238,'','1287490367','1287490367'),(15,18,249,'','1287836434','1287836434'),(16,21,252,'','1287999740','1287999740'),(17,22,253,'','1288000212','1288000212'),(18,23,254,'','1288007248','1288007248'),(19,24,255,'','1288033322','1288033322'),(20,25,256,'','1288034161','1288034161'),(21,26,258,'','1288092542','1288092542'),(22,27,259,'','1288092995','1288092995'),(23,28,260,'','1288094472','1288094472'),(24,29,261,'','1288095139','1288095139'),(25,30,262,'','1288095673','1288095673'),(26,31,263,'','1288095939','1288095939'),(27,32,264,'','1288095943','1288095943'),(28,33,265,'','1288414966','1288414966');

--
-- Table structure for table `bstock_jhangadshippinginfo`
--

CREATE TABLE `bstock_jhangadshippinginfo` (
  `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('NA','Drop off','Platinium Express Post','Express Post','Courier') 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.',
  `remarks` varchar(1000) NOT NULL,
  `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 DEFAULT CHARSET=latin1 COMMENT='This table is used to store the shipping details of every or';

--
-- Dumping data for table `bstock_jhangadshippinginfo`
--


--
-- 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=151 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),(136,0,58,0,0,0,1,3744.90,2700,0,1,794,3745,0,0,0,0,0,3793.58,0,0.00,-44102.0000,-441.0200,'','1290427543','','',0,0),(135,0,58,0,0,0,1,599.40,222,10,1,384,659,0,0,0,0,0,667.91,0,0.00,-44102.0000,-441.0200,'','1290427210','','',0,0),(134,0,58,0,0,0,1,400.00,400,10,1,369,440,450,0,0,0,0,445.72,0,0.00,-44102.0000,-441.0200,'','1290426263','','',0,0),(133,0,58,0,0,0,1,599.40,222,10,1,392,659,0,0,0,0,0,667.91,0,0.00,-44102.0000,-441.0200,'','1290425333','','',0,0),(137,0,58,0,0,0,1,3744.90,2700,0,1,794,3745,0,0,0,0,0,3793.58,0,0.00,-44102.0000,-441.0200,'','1290427936','','',0,0),(138,0,58,0,0,0,1,3744.90,2700,0,1,794,3745,0,0,0,0,0,3793.58,0,0.00,-44102.0000,-441.0200,'','1290428043','','',0,0),(139,0,58,0,0,0,1,400.00,400,10,1,369,440,450,0,0,0,0,445.72,0,0.00,-44102.0000,-441.0200,'','1290428110','','',0,0),(140,0,58,0,0,0,1,3744.90,2700,0,1,794,3745,0,0,0,0,0,3793.58,0,0.00,-44102.0000,-441.0200,'','1290428480','','',0,0),(141,0,58,0,0,0,1,3744.90,2700,0,1,794,3745,0,0,0,0,0,3793.58,0,0.00,-44102.0000,-441.0200,'','1290429021','','',0,0),(142,0,58,0,0,0,1,3744.90,2700,0,1,794,3745,0,0,0,0,0,3793.58,0,0.00,-44102.0000,-441.0200,'','1290448077','','',0,0),(143,0,58,0,0,0,1,599.40,222,10,1,386,659,0,0,0,0,0,667.91,0,0.00,-44102.0000,-441.0200,'','1290448077','','',0,0),(144,0,59,0,0,0,0,0.00,0,0,0,0,0,0,0,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1290488678','','',0,0),(145,0,59,0,0,0,1,599.40,222,10,1,384,659,0,0,0,0,0,667.91,0,0.00,-44102.0000,-441.0200,'','1290488678','','',0,0),(146,0,59,0,0,0,1,2199.78,2222,10,1,374,2420,0,0,0,0,0,2451.21,0,0.00,-44102.0000,-441.0200,'','1290488678','','',0,0),(147,0,59,0,0,0,1,599.40,222,10,1,392,659,0,0,0,0,0,667.91,0,0.00,-44102.0000,-441.0200,'','1290489224','','',0,0),(148,0,59,0,0,0,1,400.00,400,10,1,369,440,450,0,0,0,0,445.72,0,0.00,-44102.0000,-441.0200,'','1290489380','','',0,0),(149,0,59,0,0,0,1,599.40,222,10,1,392,659,0,0,0,0,0,667.91,0,0.00,-44102.0000,-441.0200,'','1290489636','','',0,0),(150,0,59,0,0,0,1,2199.78,2222,10,1,374,2420,0,0,0,0,0,2451.21,0,0.00,-44102.0000,-441.0200,'','1290493804','','',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=47 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',55.00,'1285680273','1285680273','Unpaid'),(45,0,90,0,3,0,0,'','','','122',122.00,'1285680330','1285680330','Unpaid'),(46,0,2,0,1,0,0,'','','','22',22.00,'1286604952','1286604952','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=49 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,2,0,2,0,'','8','','',0.00,'','1286604952');

--
-- 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 & Co1.','','','harshad.narvekar@gmail.com','Seepz, Andheri.','1234567','9999999','1111111','India','2222222','on','','1272312433','12345'),(2,'Harshad & Co2.','','','harshad.narvekar@gmail.com','PRASAD CHAMBERS,\r\nOPERA HOUSE,MUMBAI 400 004','2224512','1253412','12355312','India','','on','1265801481','1212356342','0388256202'),(3,'Narvekars3','','','harshad.narvekar@gmail.com','Avenue\r\nNew Link Rd\r\nMalad East','77772222243','2222333344','989899999','UK','Website','on','1265801481','1265801481','EIC234111'),(4,'Bigg Stock4','','','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=5 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);

--
-- 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=15 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','on','',''),(4,'Orders','bstock_orders',1,'1','0','off','',''),(5,'Fields','bstock_fields',1,'1','0','on','',''),(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,'1','','on','',''),(10,'Vendors','bstock_vendors',0,'1','','off','',''),(11,'Brokers','bstock_brokers',0,'1','0','on','',''),(12,'SystemUsers','bstock_systemusers',0,'1','','on','',''),(13,'HomePage','bstock_homepage',0,'1','','on','',''),(14,'Bank','bstock_bank',0,'1','','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=21 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','searchresult.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','NISHIL DIAMONDS','yes'),(11,0,'company_address','Suite 12, Level 4 Dymocks Building,\r\n428 George Street Sydney, \r\nNSW 2000 Australia','yes'),(12,0,'ABN','ABN 24 686 583 176','yes'),(13,0,'gst','10','yes'),(14,0,'usd_aud_rate','45','yes'),(15,0,'margin','0','yes'),(16,0,'default_so_id','9','yes'),(17,0,'default_po_id','1','yes'),(18,0,'default_jhangad_id','9','yes'),(19,0,'default_stone_id','1','yes'),(20,0,'default_po_parcel_no','A','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=313 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'),(167,2,226,'1287440192','1287440192'),(168,2,226,'1287469249','1287469249'),(169,3,227,'1287470320','1287470320'),(170,3,229,'1287484925','1287484925'),(171,3,230,'1287485044','1287485044'),(172,0,230,'1287485177','1287485177'),(173,3,231,'1287486252','1287486252'),(174,3,232,'1287486379','1287486379'),(175,4,233,'1287487210','1287487210'),(176,4,234,'1287488972','1287488972'),(177,6,235,'1287489071','1287489071'),(178,7,236,'1287490367','1287490367'),(179,0,236,'1287491788','1287491788'),(180,0,236,'1287492007','1287492007'),(181,0,236,'1287492115','1287492115'),(182,18,247,'1287836434','1287836434'),(183,21,250,'1287999740','1287999740'),(184,22,251,'1288000212','1288000212'),(185,23,252,'1288007248','1288007248'),(186,24,253,'1288033322','1288033322'),(187,25,254,'1288034161','1288034161'),(188,26,256,'1288092542','1288092542'),(189,27,257,'1288092995','1288092995'),(190,28,258,'1288094472','1288094472'),(191,29,259,'1288095139','1288095139'),(192,30,260,'1288095673','1288095673'),(193,31,261,'1288095939','1288095939'),(194,32,262,'1288095943','1288095943'),(195,33,263,'1288414966','1288414966'),(196,51,283,'1290243844','1290243844'),(197,52,284,'1290244447','1290244447'),(198,53,285,'1290244661','1290244661'),(199,0,285,'1290245457','1290245457'),(200,54,286,'1290245503','1290245503'),(201,55,287,'1290246366','1290246366'),(202,56,288,'1290247462','1290247462'),(203,62,294,'1291169752','1291169752'),(204,72,303,'1291898826','1291898826'),(205,73,304,'1291902181','1291902181'),(206,74,311,'1291983626','1291983626'),(207,75,312,'1292044596','1292044596'),(208,0,312,'1292045595','1292045595'),(209,76,313,'1292045678','1292045678'),(210,77,314,'1292048166','1292048166'),(211,78,315,'1292049171','1292049171'),(212,79,316,'1292049538','1292049538'),(213,80,317,'1292049867','1292049867'),(214,81,318,'1292050040','1292050040'),(215,82,319,'1292050390','1292050390'),(216,83,320,'1292050568','1292050568'),(217,84,321,'1292125964','1292125964'),(218,85,322,'1292675716','1292675716'),(219,86,323,'1292827867','1292827867'),(220,87,324,'1292827925','1292827925'),(221,88,325,'1292828068','1292828068'),(222,89,326,'1292828103','1292828103'),(223,90,327,'1292830562','1292830562'),(224,91,328,'1292830930','1292830930'),(225,0,328,'1292831743','1292831743'),(226,92,329,'1292831872','1292831872'),(227,128,361,'1293431611','1293431611'),(228,129,362,'1293520185','1293520185'),(229,0,362,'1293520238','1293520238'),(230,0,362,'1293520972','1293520972'),(231,0,362,'1293521302','1293521302'),(232,0,362,'1293521663','1293521663'),(233,0,362,'1293521709','1293521709'),(234,0,362,'1293522958','1293522958'),(235,0,362,'1293522979','1293522979'),(236,0,362,'1293523622','1293523622'),(237,0,362,'1293525142','1293525142'),(238,0,218,'1293532045','1293532045'),(239,130,363,'1293620438','1293620438'),(240,131,364,'1293626412','1293626412'),(241,132,365,'1293626491','1293626491'),(242,133,366,'1293626565','1293626565'),(243,134,367,'1293627261','1293627261'),(244,135,368,'1293627691','1293627691'),(245,136,369,'1293627749','1293627749'),(246,137,370,'1293627836','1293627836'),(247,138,371,'1293628036','1293628036'),(248,139,372,'1293628931','1293628931'),(249,140,373,'1293779677','1293779677'),(250,141,374,'1293781696','1293781696'),(251,0,374,'1293781736','1293781736'),(252,142,375,'1293781762','1293781762'),(253,143,376,'1293783071','1293783071'),(254,144,377,'1293783143','1293783143'),(255,145,378,'1293783238','1293783238'),(256,146,379,'1293784165','1293784165'),(257,147,380,'1293784246','1293784246'),(258,148,381,'1293784319','1293784319'),(259,149,382,'1293784417','1293784417'),(260,150,383,'1293796544','1293796544'),(261,0,383,'1293796575','1293796575'),(262,151,384,'1293796629','1293796629'),(263,0,384,'1293796633','1293796633'),(264,152,385,'1293796762','1293796762'),(265,153,386,'1293796839','1293796839'),(266,0,386,'1293796845','1293796845'),(267,154,387,'1293796958','1293796958'),(268,155,388,'1293797059','1293797059'),(269,0,388,'1293797065','1293797065'),(270,156,389,'1293797144','1293797144'),(271,0,389,'1293797150','1293797150'),(272,157,390,'1293797231','1293797231'),(273,158,391,'1293797317','1293797317'),(274,0,391,'1293797322','1293797322'),(275,159,392,'1293797501','1293797501'),(276,0,392,'1293797507','1293797507'),(277,160,393,'1293797649','1293797649'),(278,161,394,'1293797785','1293797785'),(279,0,394,'1293797794','1293797794'),(280,162,395,'1293798203','1293798203'),(281,0,395,'1293798207','1293798207'),(282,163,396,'1293798268','1293798268'),(283,0,396,'1293798272','1293798272'),(284,164,397,'1293799261','1293799261'),(285,165,398,'1293799384','1293799384'),(286,166,399,'1293799605','1293799605'),(287,0,399,'1293799610','1293799610'),(288,167,400,'1293799800','1293799800'),(289,0,400,'1293799807','1293799807'),(290,168,401,'1293799972','1293799972'),(291,0,401,'1293799978','1293799978'),(292,169,402,'1293800306','1293800306'),(293,0,402,'1293800314','1293800314'),(294,170,403,'1293800471','1293800471'),(295,171,404,'1293800800','1293800800'),(296,172,405,'1294051168','1294051168'),(297,0,405,'1294051190','1294051190'),(298,173,406,'1294053440','1294053440'),(299,174,407,'1294054010','1294054010'),(300,175,408,'1294054428','1294054428'),(301,176,409,'1294056274','1294056274'),(302,177,410,'1294056728','1294056728'),(303,178,411,'1294057947','1294057947'),(304,179,412,'1294060148','1294060148'),(305,180,413,'1294060850','1294060850'),(306,181,414,'1294061080','1294061080'),(307,182,415,'1294061203','1294061203'),(308,4,4,'1294223395','1294223395'),(309,5,5,'1294225065','1294225065'),(310,9,6,'1294294922','1294294922'),(311,10,7,'1294294971','1294294971'),(312,11,8,'1294295086','1294295086');

--
-- Table structure for table `bstock_orderdeliverystatus`
--

CREATE TABLE `bstock_orderdeliverystatus` (
  `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('on','off') 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=8 DEFAULT CHARSET=latin1 COMMENT='This table is used to store the different order status types';

--
-- Dumping data for table `bstock_orderdeliverystatus`
--

INSERT INTO `bstock_orderdeliverystatus` VALUES (1,'Order Placed','Placed','on','',''),(2,'Order Issued','Issued','on','',''),(3,'Order Issued Partial','Issued Partial','on','',''),(4,'Order Couriered Full','Fully Couriered','on','',''),(5,'Order Couriered Partial','Partial Couriered ','on','',''),(6,'Order Partially Returned','Partially Returned','on','',''),(7,'Order Returned Full','Fully Returned','on','','');

--
-- 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(8) unsigned zerofill 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,2) NOT NULL,
  `product_status_in_this_order` enum('Order Placed','Order Partially Returned','Order Returned Full') NOT NULL DEFAULT 'Order Placed' COMMENT 'This field will store the product item status belonging to particular order',
  `quantity_returned` float(10,3) NOT NULL COMMENT 'The quanity returned from the order',
  `percent_back` decimal(10,2) NOT NULL,
  `aadat` decimal(10,2) NOT NULL,
  `dollar_rate` decimal(10,2) NOT NULL,
  `cash_back` decimal(10,2) NOT NULL,
  `total_in_dollar` decimal(10,2) NOT NULL,
  `total_in_inr` decimal(10,2) NOT NULL,
  `margin` decimal(10,2) NOT NULL,
  `interest_rate` decimal(10,2) NOT NULL COMMENT 'Interest rate to be applied if payment is overdue for this order.',
  `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,
  `carat_selling_price_usd` decimal(10,2) NOT NULL COMMENT 'Carat selling price in USD',
  `carat_selling_price` decimal(10,2) NOT NULL COMMENT 'Selling price in carats in AUD',
  `size` decimal(10,3) NOT NULL COMMENT 'Size sold (incase of loose parcels)',
  `invoice_note` varchar(500) NOT NULL COMMENT 'Note that appears besides each product on the invoice.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the individual product items of an order.';

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


--
-- 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 DEFAULT CHARSET=latin1 COMMENT='Record the notifications sent to each customer by the system';

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


--
-- 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=238 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'),(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'),(235,2,'',1,'1286562371','1286562371'),(236,2,'',2,'1286562371','1286562371'),(237,2,'',4,'1286562371','1286562371');

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

CREATE TABLE `bstock_orders` (
  `id` int(8) unsigned zerofill NOT NULL AUTO_INCREMENT,
  `so_number` varchar(255) NOT NULL,
  `contact_person` varchar(500) NOT NULL,
  `reference_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,
  `brokerage_total` decimal(10,2) NOT NULL COMMENT 'Total brokerage amount to be paid.',
  `brokerage_balance` decimal(10,2) NOT NULL COMMENT 'Balance remaining to be paid to broker.',
  `broker_id_1` int(11) NOT NULL,
  `brokerage_1` decimal(10,2) NOT NULL,
  `tracking_no` int(10) NOT NULL,
  `payment_terms_id` int(10) NOT NULL,
  `payment_mode` enum('Credit Card','Paypal','Cash','Cheque','Bank Transfer') 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,
  `gst` decimal(10,3) NOT NULL,
  `subtotal` decimal(10,2) NOT NULL COMMENT 'Total amount of the order.',
  `net_total` decimal(10,2) NOT NULL,
  `subtotal_usd` decimal(10,2) NOT NULL COMMENT 'Order subtotal in USD',
  `net_total_usd` decimal(10,2) NOT NULL COMMENT 'Order Net total in USD (including taxes)',
  `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.',
  `delivery_status_id` int(10) NOT NULL,
  `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.',
  `local_or_export` enum('Local','Export') NOT NULL DEFAULT 'Local',
  `source` enum('Web','Admin') NOT NULL,
  `include_gst` enum('on','off') NOT NULL DEFAULT 'off' COMMENT 'This field indicates whether prices of product in this Appro are inclusive of GST or not',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store order related information. Order items are stored in s';

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


--
-- 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.',
  `remarks` varchar(1000) NOT NULL,
  `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=117 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,'','',''),(4,2,228,'','1287440192','1287440192'),(5,2,228,'','1287469249','1287469249'),(6,3,229,'','1287470320','1287470320'),(7,3,231,'','1287484925','1287484925'),(8,3,232,'','1287485044','1287485044'),(9,3,233,'','1287486252','1287486252'),(10,3,234,'','1287486379','1287486379'),(11,4,235,'','1287487210','1287487210'),(12,4,236,'','1287488972','1287488972'),(13,6,237,'','1287489071','1287489071'),(14,7,238,'','1287490367','1287490367'),(15,18,249,'','1287836434','1287836434'),(16,21,252,'','1287999740','1287999740'),(17,22,253,'','1288000212','1288000212'),(18,23,254,'','1288007248','1288007248'),(19,24,255,'','1288033322','1288033322'),(20,25,256,'','1288034161','1288034161'),(21,26,258,'','1288092542','1288092542'),(22,27,259,'','1288092995','1288092995'),(23,28,260,'','1288094472','1288094472'),(24,29,261,'','1288095139','1288095139'),(25,30,262,'','1288095673','1288095673'),(26,31,263,'','1288095939','1288095939'),(27,32,264,'','1288095943','1288095943'),(28,33,265,'','1288414966','1288414966'),(29,51,285,'','1290243844','1290243844'),(30,52,286,'','1290244447','1290244447'),(31,53,287,'','1290244661','1290244661'),(32,54,288,'','1290245503','1290245503'),(33,55,289,'','1290246366','1290246366'),(34,56,290,'','1290247462','1290247462'),(35,62,296,'','1291169752','1291169752'),(36,72,305,'','1291898826','1291898826'),(37,73,306,'','1291902181','1291902181'),(38,74,313,'','1291983626','1291983626'),(39,75,314,'','1292044596','1292044596'),(40,76,315,'','1292045678','1292045678'),(41,77,316,'','1292048166','1292048166'),(42,78,317,'','1292049171','1292049171'),(43,79,318,'','1292049538','1292049538'),(44,80,319,'','1292049867','1292049867'),(45,81,320,'','1292050040','1292050040'),(46,82,321,'','1292050390','1292050390'),(47,83,322,'','1292050568','1292050568'),(48,84,323,'','1292125964','1292125964'),(49,85,324,'','1292675716','1292675716'),(50,86,325,'','1292827867','1292827867'),(51,87,326,'','1292827925','1292827925'),(52,88,327,'','1292828068','1292828068'),(53,89,328,'','1292828103','1292828103'),(54,90,329,'','1292830562','1292830562'),(55,91,330,'','1292830930','1292830930'),(56,92,331,'','1292831872','1292831872'),(57,128,363,'','1293431611','1293431611'),(58,129,364,'','1293520185','1293520185'),(59,130,365,'','1293620438','1293620438'),(60,131,366,'','1293626412','1293626412'),(61,132,367,'','1293626491','1293626491'),(62,133,368,'','1293626565','1293626565'),(63,134,369,'','1293627261','1293627261'),(64,135,370,'','1293627691','1293627691'),(65,136,371,'','1293627749','1293627749'),(66,137,372,'','1293627836','1293627836'),(67,138,373,'','1293628036','1293628036'),(68,139,374,'','1293628931','1293628931'),(69,140,375,'','1293779677','1293779677'),(70,141,376,'','1293781696','1293781696'),(71,142,377,'','1293781762','1293781762'),(72,143,378,'','1293783071','1293783071'),(73,144,379,'','1293783143','1293783143'),(74,145,380,'','1293783238','1293783238'),(75,146,381,'','1293784165','1293784165'),(76,147,382,'','1293784246','1293784246'),(77,148,383,'','1293784319','1293784319'),(78,149,384,'','1293784417','1293784417'),(79,150,385,'','1293796544','1293796544'),(80,151,386,'','1293796629','1293796629'),(81,152,387,'','1293796762','1293796762'),(82,153,388,'','1293796839','1293796839'),(83,154,389,'','1293796958','1293796958'),(84,155,390,'','1293797059','1293797059'),(85,156,391,'','1293797144','1293797144'),(86,157,392,'','1293797231','1293797231'),(87,158,393,'','1293797317','1293797317'),(88,159,394,'','1293797501','1293797501'),(89,160,395,'','1293797649','1293797649'),(90,161,396,'','1293797785','1293797785'),(91,162,397,'','1293798203','1293798203'),(92,163,398,'','1293798268','1293798268'),(93,164,399,'','1293799261','1293799261'),(94,165,400,'','1293799384','1293799384'),(95,166,401,'','1293799605','1293799605'),(96,167,402,'','1293799800','1293799800'),(97,168,403,'','1293799972','1293799972'),(98,169,404,'','1293800306','1293800306'),(99,170,405,'','1293800471','1293800471'),(100,171,406,'','1293800800','1293800800'),(101,172,407,'','1294051168','1294051168'),(102,173,408,'','1294053440','1294053440'),(103,174,409,'','1294054010','1294054010'),(104,175,410,'','1294054428','1294054428'),(105,176,411,'','1294056274','1294056274'),(106,177,412,'','1294056728','1294056728'),(107,178,413,'','1294057947','1294057947'),(108,179,414,'','1294060148','1294060148'),(109,180,415,'','1294060850','1294060850'),(110,181,416,'','1294061080','1294061080'),(111,182,417,'','1294061203','1294061203'),(112,4,4,'','1294223395','1294223395'),(113,5,5,'','1294225065','1294225065'),(114,9,6,'','1294294922','1294294922'),(115,10,7,'','1294294971','1294294971'),(116,11,8,'','1294295086','1294295086');

--
-- 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('NA','Drop off','Platinium Express Post','Express Post','Courier') 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.',
  `remarks` varchar(1000) NOT NULL,
  `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=107 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,'','','','','NA','NA','NA','Mumbai',1,'','1274260059','1274260059','NA','NA'),(2,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260063','1274260063','NA','NA'),(3,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260063','1274260063','NA','NA'),(4,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260064','1274260064','NA','NA'),(5,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260065','1274260065','NA','NA'),(6,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260066','1274260066','NA','NA'),(7,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260083','1274260083','NA','NA'),(8,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260085','1274260085','NA','NA'),(9,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260086','1274260086','NA','NA'),(10,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260087','1274260087','NA','NA'),(11,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260087','1274260087','NA','NA'),(12,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260088','1274260088','NA','NA'),(13,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260089','1274260089','NA','NA'),(14,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260090','1274260090','NA','NA'),(15,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260091','1274260091','NA','NA'),(16,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260093','1274260093','NA','NA'),(17,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260094','1274260094','NA','NA'),(18,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260095','1274260095','NA','NA'),(19,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260097','1274260097','NA','NA'),(20,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260098','1274260098','NA','NA'),(21,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260101','1274260101','NA','NA'),(22,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260106','1274260106','NA','NA'),(23,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260108','1274260108','NA','NA'),(24,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260109','1274260109','NA','NA'),(25,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260111','1274260111','NA','NA'),(26,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260111','1274260111','NA','NA'),(27,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260112','1274260112','NA','NA'),(28,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260113','1274260113','NA','NA'),(29,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260114','1274260114','NA','NA'),(30,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260115','1274260115','NA','NA'),(31,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260117','1274260117','NA','NA'),(32,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260119','1274260119','NA','NA'),(33,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260120','1274260120','NA','NA'),(34,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260122','1274260122','NA','NA'),(35,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260123','1274260123','NA','NA'),(36,1,'','','','','NA','NA','NA','Mumbai',1,'','1274260124','1274260124','NA','NA'),(37,1,'42343','1272445749','','','NA','NA','NA','Mumbai',1,'','1274260149','1274260149','NA','NA'),(38,1,'42343','1272445750','','','NA','NA','NA','Mumbai',1,'','1274260150','1274260150','NA','NA'),(39,1,'42343','1272445751','','','NA','NA','NA','Mumbai',1,'','1274260151','1274260151','NA','NA'),(49,7,'3452354','1287682389','Platinium Express Post','','','','','',1,'','1287595989','1287595989','',''),(74,12,'43543543','','Platinium Express Post','','','','','',1,'','1288684988','1288684988','',''),(75,13,'','','NA','','','','','',1,'','1288685299','1288685299','',''),(76,13,'','','NA','','','','','',1,'','1288685324','1288685324','',''),(77,43,'','1289412343','NA','','','','','',1,'','1289412343','1289412343','',''),(78,43,'234324','1289412400','Drop off','','','','','',1,'dfgd','1289412400','1289412400','',''),(79,43,'234324','1289412460','Platinium Express Post','','','','','',1,'dfgd','1289412460','1289412460','',''),(80,44,'333','1289474882','Platinium Express Post','','','','','',1,'','1289561282','1289561282','',''),(81,45,'1111','1289635713','Drop off','','','','','',1,'1234RIBFForder couriered','1289635713','1289635713','',''),(82,57,'111','1291032339','Drop off','','','','','',1,'test','1291032339','1291032339','',''),(83,57,'233','1291033992','Express Post','','','','','',1,'testtest','1291033992','1291033992','',''),(84,57,'245','1291034570','Drop off','','','','','',1,'test test','1291034570','1291034570','',''),(85,57,'555','1291035000','Courier','','','','','',1,'test test','1291035000','1291035000','',''),(86,57,'445','1291035184','Express Post','','','','','',1,'','1291035184','1291035184','',''),(87,57,'678','1291036010','Courier','','','','','',1,'test test','1291036010','1291036010','',''),(88,57,'567','1291037086','Platinium Express Post','','','','','',1,'test','1291037086','1291037086','',''),(89,57,'121','1291037631','Express Post','','','','','',1,'','1291037631','1291037631','',''),(90,1,'555','1294140962','NA','','','','','',1,'666','1294140962','1294140962','',''),(91,2,'33452','1294147528','Platinium Express Post','','','','','',1,'sending full order.','1294147528','1294147528','',''),(92,1,'','1294147787','Drop off','','','','','',1,'','1294147787','1294147787','',''),(93,8,'','','','','','','','',1,'','1294295376','1294295376','',''),(94,13,'','','','','','','','',1,'','1294380808','1294380808','',''),(95,13,'','','','','','','','',1,'','1294380825','1294380825','',''),(96,13,'','','','','','','','',1,'','1294380847','1294380847','',''),(97,14,'','','','','','','','',1,'','1294448428','1294448428','',''),(98,21,'','','NA','','','','','',1,'','1312444083','1312444083','',''),(99,21,'','','NA','','','','','',1,'','1312444146','1312444146','',''),(100,21,'','','NA','','','','','',1,'','1312453966','1312453966','',''),(101,20,'','','NA','','','','','',1,'','1312462446','1312462446','',''),(102,22,'','','NA','','','','','',1,'','1313602500','1313602500','',''),(103,23,'','','NA','','','','','',1,'','1313645987','1313645987','',''),(104,26,'','','NA','','','','','',1,'','1313992128','1313992128','',''),(105,26,'','','NA','','','','','',1,'','1313992276','1313992276','',''),(106,26,'','','NA','','','','','',1,'','1313992357','1313992357','','');

--
-- 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 DEFAULT CHARSET=latin1 COMMENT='Here we record all the transactions when the order status is';

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


--
-- 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('on','off') 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','','',''),(10,'Unpaid','Order Unpaid','on','',''),(9,'Paid','Order Paid','on','',''),(4,'Order shipped','Order shipped','','',''),(5,'Order Completed','Order Completed','','',''),(6,'Order Cancelled','Order Cancelled','','',''),(7,'Order Pending','Order Pending','','',''),(8,'Partially Shipped','Partially Shipped','','',''),(11,'Partially Paid','Order Partially Paid','on','','');

--
-- Table structure for table `bstock_parcel_history`
--

CREATE TABLE `bstock_parcel_history` (
  `id` int(20) NOT NULL AUTO_INCREMENT COMMENT 'primary id for the table',
  `parcel_id` int(20) NOT NULL COMMENT 'Parcel identification',
  `type_id` int(10) NOT NULL COMMENT 'represents type of transaction like jhangad,SO,PO',
  `customer_id` int(10) NOT NULL COMMENT 'Customer identification',
  `status_of_parcel` enum('In Stock','Sold','Jhangad Placed','Jhangad Issued','Jhangad Issued Partial','Jhangad Couriered Full','Jhangad Couriered Partial','Jhangad Partially Returned','Jhangad Returned Full','Order Placed','Order Issued','Order Issued Partial','Order Couriered Full','Order Couriered Partial','Order Partially Returned','Order Returned Full','Deleted') NOT NULL COMMENT 'status of the stock',
  `date` varchar(50) NOT NULL COMMENT 'current date in timestep format',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='parcel life cycle in table structure';

--
-- Dumping data for table `bstock_parcel_history`
--


--
-- Table structure for table `bstock_partners`
--

CREATE TABLE `bstock_partners` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This will be the primary key.',
  `company_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=7 DEFAULT CHARSET=latin1 COMMENT='Actual user for whom this is imported.';

--
-- Dumping data for table `bstock_partners`
--

INSERT INTO `bstock_partners` VALUES (1,'Nishil','','','harshad.narvekar@gmail.com','Seepz, Andheri.','1234567','9999999','1111111','India','2222222','on','','1272312433','12345'),(2,'Ashish','','','harshad.narvekar@gmail.com','PRASAD CHAMBERS,\r\nOPERA HOUSE,MUMBAI 400 004','2224512','1253412','12355312','India','','on','1265801481','1212356342','0388256202'),(3,'Nishil-Ashish','','','harshad.narvekar@gmail.com','Avenue\r\nNew Link Rd\r\nMalad East','77772222243','2222333344','989899999','UK','Website','on','1265801481','1265801481','EIC234111');

--
-- 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_type` varchar(50) NOT NULL COMMENT 'Type of payment made / received.',
  `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.',
  `vataav` decimal(10,2) NOT NULL COMMENT '''Vataav'' in case of cash payments. Amount + Vataav will be adjusted against balance.',
  `cheque_no` varchar(20) NOT NULL COMMENT 'Keeping varchar as sometimes this can have 1,2 or 3 zeroes preceeding the cheque no.',
  `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 DEFAULT CHARSET=latin1 COMMENT='Stores daily cashbook entries.';

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


--
-- 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.',
  `order_no` int(10) NOT NULL COMMENT 'PO or SO Number.',
  `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 DEFAULT CHARSET=latin1 COMMENT='Stores orders affected by each cashbook entry.';

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


--
-- 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;

--
-- Dumping data for table `bstock_pl_demands`
--

INSERT INTO `bstock_pl_demands` VALUES (1,12,'1270013022','1269667422','Permanently Deactive','\'ROUND\'','2','1','F','D','VVS2','IF','FAIR','EXCELLENT','FAIR','EXCELLENT','FAIR','EXCELLENT','STRONG','NONE','GIA','All',0,0,'40','45','1269667422','1269667422');

--
-- Table structure for table `bstock_pl_demands_comments`
--

CREATE TABLE `bstock_pl_demands_comments` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `demand_id` int(10) NOT NULL,
  `commentor_id` int(25) NOT NULL,
  `comments` varchar(1000) NOT NULL,
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_demands_comments`
--

INSERT INTO `bstock_pl_demands_comments` VALUES (1,1,87,'will contact you later.','1274700903','1274700903');

--
-- Table structure for table `bstock_pl_dm_expense`
--

CREATE TABLE `bstock_pl_dm_expense` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `surrogate_id` varchar(150) NOT NULL,
  `parcel_id` int(10) NOT NULL,
  `lot_no` int(10) NOT NULL,
  `stage_id` int(10) NOT NULL,
  `karigar_id` int(10) NOT NULL,
  `rate` decimal(10,3) NOT NULL,
  `size` decimal(10,5) NOT NULL,
  `loss` decimal(10,2) NOT NULL,
  `assigned_date` int(10) NOT NULL COMMENT 'This field will store the date when the stone is assigned to the manu',
  `due_date` int(10) NOT NULL,
  `dollar_rate` decimal(10,2) NOT NULL,
  `remarks` varchar(500) NOT NULL,
  `stage_status_id` int(11) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `surrogate_id` (`surrogate_id`),
  UNIQUE KEY `surrogate_id_2` (`surrogate_id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_dm_expense`
--


--
-- Table structure for table `bstock_pl_dm_productdetails`
--

CREATE TABLE `bstock_pl_dm_productdetails` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `expense_primary_key` int(10) NOT NULL COMMENT 'this field will be primary key of pl_dm_expense table',
  `surrogate_id` int(10) NOT NULL COMMENT 'This field is combination of lot_no and stage_id. This is to use Replace query in php code',
  `stage_id` int(10) NOT NULL DEFAULT '1' COMMENT 'Can be used in future if multiple  stores are added.',
  `created_date` varchar(50) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was created.',
  `modified_date` varchar(50) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was last modified.',
  `parcel_id` int(10) NOT NULL,
  `shape` enum('ROUND','PRINCESS','PEAR','MARQUISE','EMERALD','HEART','OVAL','CUSHION','TRIANGLE','ASCHER','RADIANT') NOT NULL,
  `size` decimal(10,2) NOT NULL,
  `laser_lot_no` varchar(500) NOT NULL COMMENT 'This field will store the laser lot no. This will be used to store for girdle polishing also. Here in girdle polishing it will be use to identify from which laser stone has to polished generated.',
  `lot_no` varchar(250) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `is_polished` enum('on','off') NOT NULL DEFAULT 'off' COMMENT 'this field will show if the current product is published as polish or not',
  `flourescence` enum('ANY','NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY SLIGHT') NOT NULL DEFAULT 'NONE',
  `lab` enum('All Labs','GIA','IGI','HRD','AGS','EGL','IGC') NOT NULL,
  `symmetry` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `polish` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `cut` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `clarity` enum('ANY','IF','VVS1','VVS2','VS1','VS2','SI1','SI2','I1','I2','I3') NOT NULL,
  `color` enum('ANY','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V') NOT NULL,
  `certificate` varchar(255) NOT NULL,
  `pavilion` decimal(10,3) NOT NULL,
  `crown` decimal(10,3) NOT NULL DEFAULT '0.000',
  `certificate_id` varchar(50) NOT NULL,
  `rap_price` varchar(50) NOT NULL,
  `rap_total` varchar(50) NOT NULL,
  `discount` varchar(50) NOT NULL,
  `piece_price` varchar(50) NOT NULL,
  `carat_price` varchar(50) NOT NULL,
  `temporary_estimation_sales_price` decimal(10,2) NOT NULL COMMENT 'Will store temp sales price of the stone. This will also be used as the purchae price of the stone. This will be used as sell price also, if stone is sold before all the stones from that parcel are published. ',
  `length` varchar(50) NOT NULL,
  `width` varchar(50) NOT NULL,
  `height` varchar(50) NOT NULL,
  `depth_percent` varchar(50) NOT NULL,
  `table_percent` varchar(50) NOT NULL,
  `girdle` varchar(250) NOT NULL,
  `vendorname` enum('None','Bigg Stock','Vendor 1','Vendor 2') NOT NULL,
  `comments` varchar(500) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the products in the system.';

--
-- Dumping data for table `bstock_pl_dm_productdetails`
--


--
-- Table structure for table `bstock_pl_dm_returnedproducts`
--

CREATE TABLE `bstock_pl_dm_returnedproducts` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `expense_primary_key` int(10) NOT NULL COMMENT ' this field will be primary key of pl_dm_expe',
  `parcel_id` int(10) NOT NULL COMMENT 'parcel_id - this field will store the rough stone id (bstock_pl_roughstones). this field will be used to show the returned rough stones of that parcel in history',
  `size` decimal(10,3) NOT NULL,
  `lot_no` varchar(50) NOT NULL COMMENT 'This will store the packet no. of the rough stone',
  `stage_id` int(10) NOT NULL COMMENT 'This will tell us from where is this stone returned',
  `no_of_diamonds` int(10) NOT NULL,
  `temporary_estimation_sales_price` decimal(10,2) NOT NULL COMMENT 'Will store temp sales price of the rough stone. This valuation will be used to find the actual purchase price of the polished stone.',
  `comments` varchar(1000) NOT NULL,
  `is_polished` enum('on','off') NOT NULL DEFAULT 'off',
  `is_active` enum('on','off') NOT NULL,
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_dm_returnedproducts`
--


--
-- Table structure for table `bstock_pl_dm_stage`
--

CREATE TABLE `bstock_pl_dm_stage` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `htmlname` varchar(500) NOT NULL,
  `desc` varchar(500) 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=10 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_dm_stage`
--

INSERT INTO `bstock_pl_dm_stage` VALUES (1,'Planner','Planner','planner machine expenses','on',1267005563,1267005563),(2,'Laser','Laser','Laser cutting expenses','on',1267005563,1267005563),(3,'Kachu Kapwanu','Kachu_Kapwanu','Kachhu Kapwanu expenses','off',1267005563,1267005563),(4,'Bruting','Bruting','bruting expense','off',1267005563,1267005563),(5,'Table Polishing','Table_Polishing','table polishing expenses','off',1267005563,1267005563),(6,'Pavilion Polishing','Pavilion_Polishing','pavilion polishing','off',1267005563,1267005563),(7,'Crown Polishing','Crown_Polishing','Crown polishing expenses','off',1267005563,1267005563),(8,'Girdle Polishing','Girdle_Polishing','girdle polising expenses','on',1267005563,1267005563),(9,'Certification','Certification','certification','off',1213123213,1231231231);

--
-- Table structure for table `bstock_pl_dm_stagestatus`
--

CREATE TABLE `bstock_pl_dm_stagestatus` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `status` varchar(255) NOT NULL,
  `desc` varchar(255) NOT NULL,
  `is_active` enum('1','0') NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_dm_stagestatus`
--

INSERT INTO `bstock_pl_dm_stagestatus` VALUES (1,'Select Status','','1',0,0),(2,'Given','','1',0,0),(3,'Returned','Paid','1',1267005563,1267005563);

--
-- Table structure for table `bstock_pl_ems`
--

CREATE TABLE `bstock_pl_ems` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `customer_id` int(10) NOT NULL COMMENT 'Foriegn key - This will be the foriegn key from bstock_customers table',
  `contact_person` varchar(500) NOT NULL,
  `source` enum('Email Marketing','Website','Internet Search') NOT NULL,
  `priority` enum('High','Medium','Low') NOT NULL,
  `referred_by` varchar(500) NOT NULL,
  `attended_by_id` int(10) NOT NULL,
  `status_id` int(10) NOT NULL,
  `remarks` varchar(1000) 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=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_ems`
--

INSERT INTO `bstock_pl_ems` VALUES (1,4,'VK','Email Marketing','Low','',0,1,'','on',1294299399,1294299399),(2,2,'VK','Email Marketing','Low','',0,0,'','on',1294299725,1294300767),(3,0,'Vishal','Internet Search','Low','Harshad',0,1,'','on',1294301118,1294301118),(4,0,'Vishal','Internet Search','Low','Harshad',0,1,'','on',1294301163,1294301163),(5,7,'Vishal','Internet Search','Low','Harshad',0,1,'','on',1294301587,1294301587),(6,8,'Vishal','Internet Search','Low','Harshad',0,1,'','on',1294302526,1294302526),(7,2,'','Email Marketing','Low','',0,0,'','on',1294379012,1294379047);

--
-- Table structure for table `bstock_pl_ems_enquiry_products`
--

CREATE TABLE `bstock_pl_ems_enquiry_products` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `enquiry_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,
  `finestar_price` decimal(10,3) NOT NULL,
  `client_offer_price` decimal(10,3) 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=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_ems_enquiry_products`
--

INSERT INTO `bstock_pl_ems_enquiry_products` VALUES (1,12,'1270013022','1269667422','Permanently Deactive','\'ROUND\'','2','1','F','D','VVS2','IF','FAIR','EXCELLENT','FAIR','EXCELLENT','FAIR','EXCELLENT','STRONG','NONE','GIA',0.000,0.000,'All',0,0,'40','45','1269667422','1269667422'),(2,1,'1286750167','1286750167','Active','\'Round\'','0.5','1.5','D','E','IF','VVS1','','','','','','','','','',0.000,0.000,'',0,0,'','','','');

--
-- Table structure for table `bstock_pl_ems_followup`
--

CREATE TABLE `bstock_pl_ems_followup` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `enquiry_id` int(10) NOT NULL,
  `followup_date` int(10) NOT NULL,
  `follow_up_type` enum('Fax','Mail','Personal Visit','Phone') NOT NULL,
  `follow_up_remarks` varchar(1000) NOT NULL,
  `next_followup_date` int(10) NOT NULL,
  `next_followup_date_mmddyy` varchar(50) NOT NULL,
  `next_followup_remarks` varchar(1000) NOT NULL,
  `remind_me` enum('on','off') NOT NULL,
  `status` enum('closed','open') NOT NULL,
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=37 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_ems_followup`
--

INSERT INTO `bstock_pl_ems_followup` VALUES (1,1,1286637173,'Personal Visit','wasnt available on cal',1286637600,'','need to call backs','off','closed',1286637172,1286637172),(16,10,1284113575,'Personal Visit','safs',1305022375,'17/10/2010',' sdfas','on','open',1286878375,1286878375),(15,10,1286705533,'Personal Visit','test',1305022333,'17/10/2010','test2','on','open',1286878333,1286878333),(6,4,1284150707,'Mail','test',1289424707,'11/10/2010','ares asfs fasd df','off','open',1286656307,1286656307),(7,5,1284151800,'Mail','444',1289425800,'11/10/2010','t sre','off','open',1286657400,1286657400),(8,18,1286713308,'Phone','',1297344108,'14/10/2010','','off','open',1286799708,1286799708),(9,19,1286713381,'Phone','',1297344181,'14/10/2010','','off','open',1286799781,1286799781),(10,20,1286713687,'Mail','',1297344487,'14/10/2010','','off','open',1286800087,1286800087),(11,10,1286713822,'Fax','',1297344622,'14/10/2010','14/10/2010','off','open',1286800222,1286800222),(12,20,0,'Fax','',0,'','','off','open',1286823513,1286823513),(13,20,0,'Fax','',0,'','','off','open',1286826509,1286826509),(14,20,1289422222,'Mail','test',1299790222,'15/10/2010','test 2','on','open',1286826622,1286826622),(17,10,1286878814,'Fax','',1287310814,'10/17/2010','','on','open',1286878814,1286878814),(18,27,1286776316,'Phone','test',1289458316,'11/10/2010','','off','open',1290063116,1290063116),(19,28,1284184359,'Mail','testt',1289458359,'11/10/2010','es','off','open',1290063159,1290063159),(20,32,0,'Fax','',0,'','','off','open',1290577418,1290577418),(21,33,0,'Fax','',0,'','','off','open',1290577462,1290577462),(22,33,0,'Fax','',0,'','','off','open',1290577462,1290577462),(23,33,0,'Fax','',0,'','','off','open',1290577462,1290577462),(24,34,0,'Fax','',0,'','','off','open',1290577545,1290577545),(25,34,0,'Fax','',0,'','','off','open',1290577545,1290577545),(26,34,0,'Fax','',0,'','','off','open',1290577545,1290577545),(27,48,0,'','',0,'','','off','open',1291814667,1291814667),(28,48,2147483647,'Mail','atest',2147483647,'11/12/20101','test','off','open',1291814667,1291814667),(29,49,0,'','',0,'','','off','open',1291814767,1291814767),(30,49,0,'','',0,'','','off','open',1291814767,1291814767),(31,49,1263302767,'Mail','est  rs',1289568367,'11/12/2010','','off','open',1291814767,1291814767),(32,50,1263302931,'Mail','est  rs',1289568531,'11/12/2010','','off','open',1291814931,1291814931),(33,51,1263303063,'Fax','',0,'','','on','open',1291815063,1291815063),(34,51,1263303237,'Fax','',0,'','','on','open',1291815237,1291815237),(35,51,1263303350,'Fax','',0,'','','on','open',1291815350,1291815350),(36,51,1263303359,'Fax','',0,'','','on','open',1291815359,1291815359);

--
-- Table structure for table `bstock_pl_emsitems`
--

CREATE TABLE `bstock_pl_emsitems` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `enquiry_id` int(10) NOT NULL,
  `created_date` varchar(50) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was created.',
  `modified_date` varchar(50) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was last modified.',
  `product_id` int(50) NOT NULL,
  `finestar_price` decimal(10,2) NOT NULL,
  `client_offer_price` decimal(10,2) NOT NULL,
  `discount_percent` decimal(10,0) NOT NULL,
  `discount_amount` decimal(10,0) NOT NULL,
  `remarks` varchar(1000) NOT NULL,
  `shape` enum('ROUND','PRINCESS','PAN','MARQUISE','EMERALD','HEART','OVAL','CUSHION','TRIANGLE','ASCHER','RADIANT','CHOKHI') NOT NULL,
  `size` decimal(10,2) NOT NULL,
  `flourescence` enum('ANY','NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY   SLIGHT','PC-2','PC-4','PC-5','M') NOT NULL DEFAULT 'NONE',
  `lab` enum('All Labs','GIA','IGI','HRD','AGS','EGL','IGC') NOT NULL,
  `quantity` int(11) NOT NULL,
  `symmetry` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `polish` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `cut` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR') NOT NULL,
  `clarity` enum('ANY','IF','VVS1','VVS2','VS1','VS2','SI1','SI2','I1','I2','I3','M-VVS','L-SI','M-SI','I-SI','L-VVS','M-VS','LB','PK','PK-1','M-VS1','J-VVS','G-SI2','F-SI2','F-SI2','K-PK','J-SI','F-VVS','H-VVS','K-VVS','G-VS','K-SI','PTS','J-VS','K-VS','E-VVS','PC-16','J-SI','I-VVS') NOT NULL,
  `color` enum('ANY','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','  U','V','NC','NC-I','NC-M','N-O') NOT NULL,
  `certificate_id` varchar(50) NOT NULL,
  `width` decimal(10,2) NOT NULL,
  `height` decimal(10,2) NOT NULL,
  `measurement` varchar(50) NOT NULL,
  `depth_percent` varchar(50) NOT NULL,
  `table_percent` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1 COMMENT='Store the products in the system.';

--
-- Dumping data for table `bstock_pl_emsitems`
--

INSERT INTO `bstock_pl_emsitems` VALUES (1,1,'1294299399','1294299399',24,0.00,0.00,0,0,'','ROUND',1.50,'NONE','All Labs',0,'ANY','ANY','ANY','IF','D','',0.00,0.00,'','',''),(2,2,'1294299725','1294299725',24,0.00,0.00,0,0,'','ROUND',1.50,'NONE','All Labs',0,'ANY','ANY','ANY','IF','D','',0.00,0.00,'','',''),(3,3,'1294301118','1294301118',14,2200.00,0.00,0,0,'','PRINCESS',0.50,'NONE','All Labs',0,'ANY','ANY','ANY','VS1','D','',0.00,0.00,'','',''),(4,3,'1294301118','1294301118',0,1800.00,1400.00,0,0,'','ROUND',1.00,'NONE','All Labs',0,'ANY','ANY','ANY','VS2','E','',0.00,0.00,'','',''),(5,4,'1294301163','1294301163',14,2200.00,0.00,0,0,'','PRINCESS',0.50,'NONE','All Labs',0,'ANY','ANY','ANY','VS1','D','',0.00,0.00,'','',''),(6,4,'1294301163','1294301163',0,1800.00,1400.00,0,0,'','ROUND',1.00,'NONE','All Labs',0,'ANY','ANY','ANY','VS2','E','',0.00,0.00,'','',''),(7,5,'1294301587','1294301587',14,2200.00,0.00,0,0,'','PRINCESS',0.50,'NONE','All Labs',0,'ANY','ANY','ANY','VS1','D','',0.00,0.00,'','',''),(8,5,'1294301587','1294301587',0,1800.00,1400.00,0,0,'','ROUND',1.00,'NONE','All Labs',0,'ANY','ANY','ANY','VS2','E','',0.00,0.00,'','',''),(9,6,'1294302526','1294302526',14,2200.00,0.00,0,0,'','PRINCESS',0.50,'NONE','All Labs',0,'ANY','ANY','ANY','VS1','D','',0.00,0.00,'','',''),(10,6,'1294302526','1294302526',0,1800.00,1400.00,0,0,'','ROUND',1.00,'NONE','All Labs',0,'ANY','ANY','ANY','VS2','E','',0.00,0.00,'','',''),(11,7,'1294379012','1294379012',24,2250.00,2100.00,0,0,'He will call back ','ROUND',1.50,'NONE','All Labs',0,'ANY','ANY','ANY','IF','D','',0.00,0.00,'','','');

--
-- Table structure for table `bstock_pl_emsstatus`
--

CREATE TABLE `bstock_pl_emsstatus` (
  `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 DEFAULT CHARSET=latin1 COMMENT='This table is used to store the different order status types';

--
-- Dumping data for table `bstock_pl_emsstatus`
--


--
-- Table structure for table `bstock_pl_inwardjhgstatustypes`
--

CREATE TABLE `bstock_pl_inwardjhgstatustypes` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `status` varchar(255) NOT NULL,
  `desc` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_inwardjhgstatustypes`
--

INSERT INTO `bstock_pl_inwardjhgstatustypes` VALUES (1,'InwardJhangad Created','Jhangad Created','on',0,0),(2,'InwardJhangad Assigned','Jhangad Assigned','on',0,0),(3,'InwardJhangad Assigned Partial','Jhangad Assigned Partial','on',1267005563,1267005563),(4,'InwardJhangad Partially Returned','Jhangad Partially Returned','on',0,0),(5,'InwardJhangad Returned Full','Jhangad Returned Full','on',0,0);

--
-- Table structure for table `bstock_pl_jhangad`
--

CREATE TABLE `bstock_pl_jhangad` (
  `id` int(8) unsigned zerofill NOT NULL AUTO_INCREMENT,
  `jhangad_number` varchar(255) NOT NULL,
  `customer_id` int(10) NOT NULL,
  `broker_id` int(10) NOT NULL,
  `giver_id` int(11) NOT NULL,
  `transaction_date` int(11) NOT NULL,
  `carrier_id` int(10) NOT NULL,
  `tracking_number` varchar(50) NOT NULL,
  `status_id` int(11) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` int(10) NOT NULL,
  `due_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  `gst` decimal(10,3) NOT NULL,
  `subtotal` decimal(10,2) NOT NULL,
  `net_total` decimal(10,2) NOT NULL,
  `adjustment` decimal(10,2) NOT NULL,
  `include_gst` enum('on','off') NOT NULL DEFAULT 'off' COMMENT 'This field indicates whether prices of product in this Appro are inclusive of GST or not',
  `type_of_jhangad` enum('Memo','Consignment') NOT NULL DEFAULT 'Memo' COMMENT 'Memo means local jhangad, consignment means out of country jhangad.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_jhangad`
--


--
-- Table structure for table `bstock_pl_jhangad_inward`
--

CREATE TABLE `bstock_pl_jhangad_inward` (
  `id` int(8) unsigned zerofill NOT NULL AUTO_INCREMENT,
  `jhangad_number` varchar(255) NOT NULL,
  `customer_id` int(10) NOT NULL,
  `purchase_order_id` int(10) NOT NULL COMMENT 'ID of purchase order that is created from this Jhangad.',
  `karigar_id` int(10) NOT NULL,
  `design_id` int(10) NOT NULL,
  `broker_id` int(11) NOT NULL COMMENT 'This will store the id of the broker who has taken the jhangad',
  `giver_id` int(11) NOT NULL,
  `transaction_date` int(11) NOT NULL,
  `carrier_id` int(10) NOT NULL,
  `tracking_number` varchar(50) NOT NULL,
  `status_id` int(11) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` int(10) NOT NULL,
  `due_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  `gst` decimal(10,3) NOT NULL,
  `subtotal` decimal(10,2) NOT NULL,
  `net_total` decimal(10,2) NOT NULL,
  `adjustment` decimal(10,2) NOT NULL,
  `include_gst` enum('on','off') NOT NULL DEFAULT 'off' COMMENT 'This field indicates whether prices of product in this Appro are inclusive of GST or not',
  `type_of_jhangad` enum('Memo','Consignment') NOT NULL DEFAULT 'Memo' COMMENT 'Memo means local jhangad, consignment means out of country jhangad.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_jhangad_inward`
--


--
-- Table structure for table `bstock_pl_jhgitems`
--

CREATE TABLE `bstock_pl_jhgitems` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key for the order items.',
  `jhangad_id` int(8) unsigned zerofill 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` decimal(10,3) NOT NULL COMMENT 'Quantity ordered for this particular item.',
  `quantity_returned` float(10,3) NOT NULL COMMENT 'this field will store the  quantity of stone returned in this jhanagad',
  `rate` decimal(10,2) NOT NULL COMMENT 'The price for this item after multiplying with quantity.',
  `total_in_inr` decimal(10,2) NOT NULL,
  `product_status_in_this_jhangad` enum('In Stock','Sold','Approval Placed','Approval Issued','Approval Issued Partial','Approval Couriered Full','Approval Couriered Partial','Approval Partially Returned','Approval Returned Full','Approval Placed','Approval Issued','Approval Issued Partial','Approval Couriered Full','Approval Couriered Partial','Approval Partially Returned','Approval Returned Full','Onhold') NOT NULL DEFAULT 'Approval Placed' COMMENT 'this field will show the status of the product in this jhangad',
  `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.',
  `carat_selling_price` decimal(10,2) NOT NULL,
  `size` decimal(10,3) NOT NULL,
  `invoice_note` varchar(500) NOT NULL,
  `margin` decimal(10,2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the individual product items of an order.';

--
-- Dumping data for table `bstock_pl_jhgitems`
--


--
-- Table structure for table `bstock_pl_jhgitems_inward`
--

CREATE TABLE `bstock_pl_jhgitems_inward` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key for the order items.',
  `jhangad_inward_id` int(8) unsigned zerofill NOT NULL COMMENT 'Foreign key that is mapped to primary key of inward jhangad table.',
  `product_id` int(10) NOT NULL COMMENT 'Foreign key that is mapped to primary key of products table.',
  `size` decimal(10,3) NOT NULL,
  `no_of_pieces` decimal(10,3) NOT NULL COMMENT 'No. of pieces ordered for this particular item.',
  `rate` decimal(10,2) NOT NULL COMMENT 'Price Per Carat.',
  `total_in_inr` decimal(10,2) NOT NULL,
  `discount_percent` decimal(10,2) NOT NULL COMMENT 'Discount in percent given while taking through Jhangad',
  `discount_amount` decimal(10,2) NOT NULL COMMENT 'Discount in value given while taking through Jhangad',
  `quantity_returned` float(10,3) NOT NULL COMMENT 'This field will store the quantity of stone returned from this jhangad to the customer',
  `product_status_in_this_jhangad` enum('In Stock','InwardJhangad Created','InwardJhangad Assigned','InwardJhangad Assigned Partial','InwardJhangad Partially Returned','InwardJhangad Returned Full','Onhold') NOT NULL DEFAULT 'InwardJhangad Created' COMMENT 'this field will show the status of the product in this jhangad',
  `jhangad_note` varchar(500) 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.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the individual product items of an Inward Jhangad.';

--
-- Dumping data for table `bstock_pl_jhgitems_inward`
--


--
-- Table structure for table `bstock_pl_jhgstatustypes`
--

CREATE TABLE `bstock_pl_jhgstatustypes` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `status` varchar(255) NOT NULL,
  `desc` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_jhgstatustypes`
--

INSERT INTO `bstock_pl_jhgstatustypes` VALUES (1,'Approval Placed','Approval Created','on',0,0),(2,'Approval Issued','Approval Issued','on',0,0),(3,'Approval Issued Partial','Approval Issued Partial','on',1267005563,1267005563),(4,'Approval Couriered Full','Approval Couriered Full','on',0,0),(5,'Approval Couriered Partial','Approval Couriered Partial','on',0,0),(6,'Approval Partially Returned','Approval Partially Returned','on',0,0),(7,'Approval Returned Full','Approval Returned Full','on',0,0);

--
-- Table structure for table `bstock_pl_login_stat`
--

CREATE TABLE `bstock_pl_login_stat` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `customer_id` int(10) NOT NULL COMMENT 'This is the customer id.',
  `ip_address` varchar(50) NOT NULL COMMENT 'IP Address from where the user logs in.',
  `login_time` varchar(50) NOT NULL COMMENT 'This field will contain the timestamp.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='This table is used to store the login stats of customers.';

--
-- Dumping data for table `bstock_pl_login_stat`
--


--
-- Table structure for table `bstock_pl_multipleimagesupload`
--

CREATE TABLE `bstock_pl_multipleimagesupload` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This field will be the auto increment field and the primary field.',
  `product_id` int(25) NOT NULL COMMENT 'This will store the product id to which the photo is related. field name is: parent_id which is infact product_jwl_id',
  `module_id` int(5) NOT NULL COMMENT 'This will have the moduel id to which the photo belongs to . field name is photo_parent_id',
  `title` varchar(255) NOT NULL,
  `file_name` varchar(255) NOT NULL,
  `is_default` enum('1','0') NOT NULL DEFAULT '1',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=94 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_multipleimagesupload`
--

INSERT INTO `bstock_pl_multipleimagesupload` VALUES (3,3,1,'Pave 1','Pave1.png','1','',''),(15,4,1,'Pave 2','bridal_jewelry_2.png','1','',''),(13,5,1,'Pave 3','jewelry_add_screen.png','1','',''),(14,656,1,'E145-0014-Main-Jh','1_656_15_08042010025620.jpg','1','',''),(7,647,1,'test78','1_647_7_08042010025349.jpg','1','',''),(8,0,1,'sfwr234234','1__15_05042010034300.jpg','0','',''),(9,2,1,'test553','1_2_15_05042010034343.jpg','1','',''),(10,653,1,'Samsung HDD - 500 GB','1_653_15_08042010013444.jpg','1','',''),(11,651,1,'Samsung HDD - 2000 GB','1_651_15_08042010020042.jpg','1','',''),(12,648,1,'Samsung HDD - 2terabyte GB','1_648_15_08042010020930.jpg','1','',''),(16,658,1,'T555-5004-main','1_658_15_08042010025929.jpg','1','',''),(17,659,1,'T555-5004-main','1_659_15_08042010025959.jpg','1','',''),(18,660,1,'T555-5004-main','1_660_15_08042010030019.jpg','1','',''),(19,661,1,'Samsung Laser Printer','1_661_19_13042010004033.jpg','1','2022220202','2020202020'),(20,662,1,'lcd 25 \\\\\\&quot;','1_662_20_01052010011145.jpg','1','',''),(21,663,1,'lcd 42','1_663_21_01052010014205.jpg','1','',''),(22,664,1,'desktop','1_664_22_01052010014128.jpg','1','',''),(23,665,1,'laptop','1_665_23_01052010013815.jpg','1','',''),(24,666,1,'processor','1_666_15_01052010011915.jpg','1','',''),(25,667,1,'Flash Drive','1_667_25_01052010033600.jpg','1','',''),(26,668,1,'AOC 2330V 23\\\\\\&quot; Widescreen LCD Monitor','1_668_15_19052010132141.jpg','1','',''),(27,669,1,'hard disk','1_669_15_20052010072637.jpg','1','',''),(28,648,1,'Samsung','1_648_15_21052010030447.jpeg','0','',''),(29,648,1,'video uploaded for testing purpose','1_648_16_17062010114340.flv','0','',''),(30,648,1,'video uploaded for testing purpose','1_648_16_17062010114911.flv','0','',''),(31,648,1,'video uploaded for testing purpose','1_648_16_17062010115255.flv','0','',''),(32,648,1,'video uploaded for testing purpose','1_648_16_17062010120049.flv','0','',''),(33,648,1,'video uploaded for testing purpose','1_648_16_17062010120453.flv','0','',''),(34,648,1,'testing images','1_648_16_17062010120739.jpg','0','',''),(35,648,1,'testing images','1_648_16_17062010120751.jpg','0','',''),(36,648,1,'testing images','1_648_16_17062010120944.jpg','0','',''),(37,648,1,'testing images','1_648_16_17062010120957.jpg','0','',''),(38,648,1,'testing images','1_648_16_17062010121356.jpg','0','',''),(39,648,1,'testing images','1_648_16_17062010121427.jpg','0','',''),(40,648,1,'testing for video but adding image','1_648_16_18062010103937.png','0','',''),(41,648,1,'testing for video but adding image','1_648_16_18062010104634.png','0','',''),(42,648,1,'testing image','1_648_16_18062010105445.jpg','0','',''),(43,648,1,'testing images','1_648_16_18062010112701.JPG','0','',''),(44,5,1,'Pave1','Pave1.png','0','',''),(45,5,1,'Pave2','Pave2.png','0','',''),(46,1,1,'Pave','jewelry_add_screen.png','1','',''),(47,2,1,'Pave2','large_65721_Y.png','1','',''),(48,6,1,'Pave6','large_662859_Y.png','1','',''),(49,7,1,'Pave7','yellow-gold-ring.png','1','',''),(50,8,1,'Pave8','bridal_jewelry_2.png','1','',''),(51,9,1,'Pave9','jewelry_add_screen.png','1','',''),(52,10,1,'Pave10','large_65721_Y.png','1','',''),(53,11,1,'Pave11','bridal_jewelry_2.png','1','',''),(54,12,1,'Pave12','large_662859_Y.png','1','',''),(55,13,1,'Pave13','yellow-gold-ring.png','1','',''),(56,14,1,'Pave14','bridal_jewelry_2.png','1','',''),(58,16,1,'Solitaire6','large_662859_Y.png','1','',''),(59,17,1,'Solitaire7','yellow-gold-ring.png','1','',''),(60,18,1,'Solitaire8','bridal_jewelry_2.png','1','',''),(61,19,1,'Solitaire9','jewelry_add_screen.png','1','',''),(62,20,1,'Solitaire10','large_65721_Y.png','1','',''),(63,21,1,'Solitaire11','large_662859_Y.png','1','',''),(64,22,1,'Solitaire12','yellow-gold-ring.png','1','',''),(65,23,1,'Solitaire13','bridal_jewelry_2.png','1','',''),(66,24,1,'Solitaire14','jewelry_add_screen.png','1','',''),(67,25,1,'Sidestone6','large_662859_Y.png','1','',''),(68,26,1,'Sidestone7','yellow-gold-ring.png','1','',''),(69,27,1,'Sidestone8','bridal_jewelry_2.png','1','',''),(70,28,1,'Sidestone9','jewelry_add_screen.png','1','',''),(71,29,1,'Sidestone10','large_65721_Y.png','1','',''),(72,30,1,'Sidestone11','large_662859_Y.png','1','',''),(73,31,1,'Sidestone12','yellow-gold-ring.png','1','',''),(74,32,1,'Sidestone13','bridal_jewelry_2.png','1','',''),(75,33,1,'Sidestone14','jewelry_add_screen.png','1','',''),(76,34,1,'Mone6','large_662859_Y.png','1','',''),(77,35,1,'Mone7','yellow-gold-ring.png','1','',''),(78,36,1,'Mone8','bridal_jewelry_2.png','1','',''),(79,37,1,'Mone9','jewelry_add_screen.png','1','',''),(80,38,1,'Mone10','large_65721_Y.png','1','',''),(81,39,1,'Mone11','large_662859_Y.png','1','',''),(82,40,1,'Mone12','yellow-gold-ring.png','1','',''),(83,41,1,'Mone13','bridal_jewelry_2.png','1','',''),(84,42,1,'Mone14','jewelry_add_screen.png','1','',''),(85,43,1,'Tension6','large_662859_Y.png','1','',''),(86,44,1,'Tension7','yellow-gold-ring.png','1','',''),(87,45,1,'Tension8','bridal_jewelry_2.png','1','',''),(88,46,1,'Tension9','jewelry_add_screen.png','1','',''),(89,47,1,'Tension10','large_65721_Y.png','1','',''),(90,48,1,'Tension11','large_662859_Y.png','1','',''),(91,49,1,'Tension12','yellow-gold-ring.png','1','',''),(92,50,1,'Tension13','bridal_jewelry_2.png','1','',''),(93,51,1,'Tension14','jewelry_add_screen.png','1','','');

--
-- Table structure for table `bstock_pl_multiplevideoupload`
--

CREATE TABLE `bstock_pl_multiplevideoupload` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This field will be the auto increment field and the primary field.',
  `product_id` int(25) NOT NULL COMMENT 'This will store the product id to which the photo is related. field name is: parent_id',
  `module_id` int(5) NOT NULL COMMENT 'This will have the moduel id to which the photo belongs to . field name is photo_parent_id',
  `title` varchar(255) NOT NULL,
  `file_name` varchar(255) NOT NULL,
  `file_type` varchar(50) NOT NULL COMMENT 'this is created to hacdle file type as it is needed while displaying',
  `is_default` enum('1','0') NOT NULL DEFAULT '1',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=55 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_multiplevideoupload`
--

INSERT INTO `bstock_pl_multiplevideoupload` VALUES (47,3,1,'testing one more time','Ring_1_1_F6_2Mb_002_2_Pass VBR.flv','video/x-flv','1','','');

--
-- Table structure for table `bstock_pl_offers`
--

CREATE TABLE `bstock_pl_offers` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `product_id` int(25) NOT NULL,
  `customer_id` int(25) NOT NULL,
  `price` int(50) NOT NULL,
  `percentage_back` varchar(50) NOT NULL DEFAULT '0',
  `comments` varchar(255) NOT NULL,
  `status` enum('pending','rejected','accepted') NOT NULL DEFAULT 'pending',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_offers`
--

INSERT INTO `bstock_pl_offers` VALUES (1,4,12,3000,'','Offer accepted.','accepted','1269634301','1274699151'),(2,36,12,1000,'','sorry, rejecting this one.','rejected','1269634301','1274699320'),(3,50,12,3999,'','Your Comments here','pending','1269634301','1269634301');

--
-- Table structure for table `bstock_pl_parcel`
--

CREATE TABLE `bstock_pl_parcel` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `parcel_name` varchar(500) NOT NULL,
  `size` decimal(10,2) NOT NULL,
  `price_per_carat` decimal(10,0) NOT NULL,
  `total_price` decimal(10,0) NOT NULL,
  `color` enum('ANY','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T',' U','V') NOT NULL,
  `clarity` enum('ANY','IF','VVS1','VVS2','VS1','VS2','SI1','SI2','I1','I2','I3') NOT NULL,
  `flourescence` enum('ANY','NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY SLIGHT') NOT NULL,
  `shape` enum('ROUND','PRINCESS','PAN','MARQUISE','EMERALD','HEART','OVAL','CUSHION','TRIANGLE','ASCHER','RADIANT','CHOKHI') NOT NULL,
  `stoneid` varchar(50) NOT NULL,
  `barcode_number` varchar(20) NOT NULL,
  `transaction_date` varchar(50) NOT NULL,
  `created_date` varchar(500) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `verified` enum('0','1','2') NOT NULL,
  `status` enum('In Stock','Sold','Jhangad Placed','Jhangad Issued','Jhangad Issued Partial','Jhangad Couriered Full','Jhangad Couriered Partial','Jhangad Partially Returned','Jhangad Returned Full','Order Placed','Order Issued','Order Issued Partial','Order Couriered Full','Order Couriered Partial','Order Partially Returned','Order Returned Full') NOT NULL,
  `last_verified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores parcel information';

--
-- Dumping data for table `bstock_pl_parcel`
--


--
-- Table structure for table `bstock_pl_parcelitems`
--

CREATE TABLE `bstock_pl_parcelitems` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `parcel_id` int(10) NOT NULL,
  `product_id` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores products contained in parcel.';

--
-- Dumping data for table `bstock_pl_parcelitems`
--


--
-- Table structure for table `bstock_pl_poadjustment`
--

CREATE TABLE `bstock_pl_poadjustment` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(10) NOT NULL,
  `name` varchar(200) NOT NULL,
  `desc` varchar(255) NOT NULL,
  `percentage` int(5) NOT NULL,
  `amount` int(11) NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_poadjustment`
--


--
-- Table structure for table `bstock_pl_pobilladd`
--

CREATE TABLE `bstock_pl_pobilladd` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(11) NOT NULL,
  `po_bill_firstname` varchar(255) NOT NULL,
  `po_bill_lastname` varchar(255) NOT NULL,
  `po_bill_city` varchar(255) NOT NULL,
  `po_bill_state` int(4) NOT NULL,
  `po_bill_contry` int(4) NOT NULL,
  `po_bill_address` varchar(255) NOT NULL,
  `po_bill_postcode` int(10) NOT NULL,
  `phone_number` varchar(255) NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_pobilladd`
--

INSERT INTO `bstock_pl_pobilladd` VALUES (1,2,'baba','n','mumbai',3,840,'3, pradeep niwas (Billing)',400093,'8989898989',1263286811,1263286811);

--
-- Table structure for table `bstock_pl_pocommission`
--

CREATE TABLE `bstock_pl_pocommission` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(5) NOT NULL,
  `broker_id` int(5) NOT NULL,
  `vendor_id` int(5) NOT NULL,
  `desc` varchar(255) NOT NULL,
  `percentage` decimal(10,2) NOT NULL,
  `amount` date NOT NULL,
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_pocommission`
--


--
-- Table structure for table `bstock_pl_podiscount`
--

CREATE TABLE `bstock_pl_podiscount` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(11) NOT NULL,
  `name` varchar(200) NOT NULL,
  `desc` varchar(255) NOT NULL,
  `percentage` int(11) NOT NULL,
  `amount` int(11) NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_podiscount`
--


--
-- Table structure for table `bstock_pl_poitemrough`
--

CREATE TABLE `bstock_pl_poitemrough` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(10) NOT NULL COMMENT 'foriegn key from bstock_purchaseorder table (id)',
  `rough_stone_id` int(10) NOT NULL COMMENT 'foriegn key from bstock_pl_roughstones table (id)',
  `packet_no` varchar(255) NOT NULL,
  `individual_shipping_charges` int(10) NOT NULL COMMENT 'this will stone the individual shipping charges incured while shipping. this will be charges based on diamonds prices.',
  `original_size` decimal(10,2) NOT NULL,
  `supplier_id` int(11) NOT NULL,
  `partner_id` int(11) 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 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_poitemrough`
--


--
-- Table structure for table `bstock_pl_poitems`
--

CREATE TABLE `bstock_pl_poitems` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(10) NOT NULL,
  `product_id` int(5) NOT NULL COMMENT 'This will be the foriegn key. and will store the product id of the product ',
  `supplier_id` int(11) NOT NULL,
  `partner_id` int(11) NOT NULL,
  `vendor_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,
  `qty` decimal(10,2) NOT NULL,
  `listprice` int(11) NOT NULL,
  `discount_percent` float(10,2) NOT NULL,
  `discount_amount` float(10,2) NOT NULL,
  `comment` varchar(255) NOT NULL,
  `tax1` int(11) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  `exporter_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=34 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_poitems`
--

INSERT INTO `bstock_pl_poitems` VALUES (1,1,1,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(2,1,2,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(3,1,3,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(4,1,4,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(5,1,5,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(6,1,6,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(7,1,7,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(8,1,8,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(9,1,9,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(10,1,10,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(11,1,11,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(12,1,12,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(13,1,13,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(14,1,14,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(15,1,15,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(16,1,16,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(17,1,17,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(18,1,18,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(19,1,19,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(20,1,20,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(21,1,21,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(22,1,22,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(23,1,23,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(24,1,24,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(25,1,25,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(26,1,26,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(27,1,27,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(28,1,28,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(29,1,29,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(30,1,30,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(31,1,31,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(32,1,32,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0),(33,1,33,1,1,0,0,0.00,0,0.00,1.00,0,0.00,0.00,'',0,'on',1314015843,1314015843,0);

--
-- Table structure for table `bstock_pl_ponotificationhistory`
--

CREATE TABLE `bstock_pl_ponotificationhistory` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `po_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 DEFAULT CHARSET=latin1 COMMENT='Record the notifications sent to each customer by the system';

--
-- Dumping data for table `bstock_pl_ponotificationhistory`
--


--
-- Table structure for table `bstock_pl_poshipadd`
--

CREATE TABLE `bstock_pl_poshipadd` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(11) NOT NULL,
  `po_ship_firstname` varchar(255) NOT NULL,
  `po_ship_lastname` varchar(255) NOT NULL,
  `po_ship_city` varchar(255) NOT NULL,
  `po_ship_state` int(4) NOT NULL,
  `po_ship_contry` int(4) NOT NULL,
  `po_ship_address` varchar(255) NOT NULL,
  `po_ship_postcode` int(10) NOT NULL,
  `phone_number` varchar(255) NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_poshipadd`
--

INSERT INTO `bstock_pl_poshipadd` VALUES (1,2,'baba','n','mumbai',3,840,'3, pradeep niwas (Shipping)',400093,'98989898989',1263286811,1263286811);

--
-- Table structure for table `bstock_pl_postatushistory`
--

CREATE TABLE `bstock_pl_postatushistory` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `po_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=956 DEFAULT CHARSET=latin1 COMMENT='Here we record all the transactions when the order status is';

--
-- Dumping data for table `bstock_pl_postatushistory`
--

INSERT INTO `bstock_pl_postatushistory` 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,3,2,'1275403233','1275403233',1),(331,3,2,'1275403280','1275403280',1),(332,3,2,'1275403297','1275403297',1),(333,3,2,'1275403329','1275403329',1),(334,3,1,'1275449590','1275449590',1),(335,3,1,'1275449611','1275449611',1),(336,3,1,'1275449628','1275449628',1),(337,3,1,'1275449659','1275449659',1),(338,3,1,'1275450175','1275450175',1),(339,3,1,'1275450186','1275450186',1),(340,3,1,'1275450466','1275450466',1),(341,3,1,'1275451027','1275451027',1),(342,3,2,'1275451140','1275451140',1),(343,3,1,'1275451187','1275451187',1),(344,3,1,'1275451246','1275451246',1),(345,3,2,'1275451299','1275451299',1),(346,3,2,'1275451336','1275451336',1),(347,3,1,'1275451344','1275451344',1),(348,3,2,'1275451588','1275451588',1),(349,3,2,'1275451895','1275451895',1),(350,3,2,'1275451914','1275451914',1),(351,3,2,'1275456678','1275456678',1),(352,3,2,'1275457015','1275457015',1),(353,3,2,'1275457166','1275457166',1),(354,3,2,'1275457493','1275457493',1),(355,3,1,'1275457633','1275457633',1),(356,3,1,'1275457890','1275457890',1),(357,3,1,'1275457925','1275457925',1),(358,3,1,'1275458671','1275458671',1),(359,3,1,'1275459190','1275459190',1),(360,3,1,'1275459223','1275459223',1),(361,3,1,'1275459358','1275459358',1),(362,3,1,'1275459402','1275459402',1),(363,3,1,'1275459432','1275459432',1),(364,3,1,'1275459499','1275459499',1),(365,3,1,'1275459549','1275459549',1),(366,3,1,'1275459583','1275459583',1),(367,3,1,'1275459619','1275459619',1),(368,3,1,'1275459630','1275459630',1),(369,3,1,'1275459695','1275459695',1),(370,3,1,'1275459725','1275459725',1),(371,3,1,'1275459848','1275459848',1),(372,3,1,'1275459957','1275459957',1),(373,3,1,'1275460080','1275460080',1),(374,3,1,'1275460182','1275460182',1),(375,3,1,'1275461136','1275461136',1),(376,3,1,'1275461287','1275461287',1),(377,3,1,'1275473774','1275473774',1),(378,2,1,'1275473891','1275473891',1),(379,3,1,'1275477746','1275477746',1),(380,3,1,'1275477829','1275477829',1),(381,3,1,'1275479183','1275479183',1),(382,3,1,'1275479220','1275479220',1),(383,3,1,'1275479236','1275479236',1),(384,3,1,'1275479296','1275479296',1),(385,3,1,'1275479680','1275479680',1),(386,3,2,'1275479852','1275479852',1),(387,3,2,'1275480106','1275480106',1),(388,3,2,'1275482942','1275482942',1),(389,3,2,'1275483538','1275483538',1),(390,3,2,'1275483761','1275483761',1),(391,3,2,'1275483775','1275483775',1),(392,3,2,'1275485691','1275485691',1),(393,3,2,'1275485721','1275485721',1),(394,16,1,'1275587069','1275587069',1),(395,8,1,'1275639767','1275639767',1),(396,8,1,'1275639779','1275639779',1),(397,8,1,'1275639790','1275639790',1),(398,9,1,'1275718232','1275718232',1),(399,9,1,'1275718232','1275718232',1),(400,9,1,'1275718232','1275718232',1),(401,10,1,'1275718467','1275718467',1),(402,10,1,'1275718467','1275718467',1),(403,10,1,'1275718467','1275718467',1),(404,11,1,'1275718814','1275718814',1),(405,12,2,'1275719177','1275719177',1),(406,13,1,'1275719901','1275719901',1),(407,14,1,'1275728436','1275728436',1),(408,15,1,'1275728624','1275728624',1),(409,16,1,'1275729302','1275729302',1),(410,17,1,'1275730436','1275730436',1),(411,18,1,'1275731995','1275731995',1),(412,19,1,'1275732014','1275732014',1),(413,20,1,'1275732085','1275732085',1),(414,21,1,'1275732220','1275732220',1),(415,3,2,'1275734279','1275734279',1),(416,3,2,'1275734291','1275734291',1),(417,3,2,'1275734305','1275734305',1),(418,22,1,'1276520038','1276520038',1),(419,22,2,'1276520205','1276520205',1),(420,22,2,'1276520636','1276520636',1),(421,22,2,'1276520681','1276520681',1),(422,22,2,'1276520747','1276520747',1),(423,22,2,'1276520863','1276520863',1),(424,22,2,'1276520881','1276520881',1),(425,22,2,'1276520953','1276520953',1),(426,22,2,'1276520983','1276520983',1),(427,22,2,'1276521178','1276521178',1),(428,22,2,'1276521203','1276521203',1),(429,23,1,'1276521306','1276521306',1),(430,23,1,'1276521578','1276521578',1),(431,23,1,'1276521854','1276521854',1),(432,23,1,'1276521866','1276521866',1),(433,23,2,'1276522002','1276522002',1),(434,23,2,'1276522046','1276522046',1),(435,23,2,'1276522087','1276522087',1),(436,24,2,'1276581400','1276581400',1),(437,24,2,'1276581586','1276581586',1),(438,24,2,'1276581594','1276581594',1),(439,24,2,'1276581648','1276581648',1),(440,25,1,'1276586239','1276586239',1),(441,26,1,'1276586295','1276586295',1),(442,27,1,'1276586447','1276586447',1),(443,28,1,'1276586506','1276586506',1),(444,29,1,'1276586585','1276586585',1),(445,30,1,'1276586705','1276586705',1),(446,30,1,'1276586874','1276586874',1),(447,6,2,'1277402702','1277402702',1),(448,6,2,'1277402768','1277402768',1),(449,30,1,'1277402890','1277402890',1),(450,30,1,'1277402927','1277402927',1),(451,30,1,'1277403112','1277403112',1),(452,31,2,'1277405569','1277405569',1),(453,32,2,'1277405654','1277405654',1),(454,2,2,'1277808597','1277808597',3),(455,2,2,'1277808644','1277808644',3),(456,2,2,'1277808670','1277808670',3),(457,2,2,'1277808689','1277808689',3),(458,2,2,'1277808704','1277808704',3),(459,2,2,'1277808754','1277808754',3),(460,2,2,'1277809256','1277809256',3),(461,2,2,'1277809365','1277809365',3),(462,2,2,'1277809411','1277809411',3),(463,2,2,'1277809526','1277809526',3),(464,2,2,'1277809551','1277809551',3),(465,2,2,'1277809568','1277809568',3),(466,2,2,'1277809572','1277809572',3),(467,2,2,'1277809584','1277809584',3),(468,2,2,'1277809591','1277809591',3),(469,29,1,'1277809664','1277809664',2),(470,29,1,'1277809754','1277809754',2),(471,29,1,'1277809794','1277809794',2),(472,30,1,'1277810069','1277810069',2),(473,30,1,'1277810110','1277810110',2),(474,30,1,'1277810139','1277810139',2),(475,30,1,'1277810192','1277810192',2),(476,30,1,'1277810270','1277810270',2),(477,30,1,'1277810306','1277810306',2),(478,30,1,'1277810371','1277810371',2),(479,30,1,'1277810616','1277810616',2),(480,30,1,'1277810624','1277810624',2),(481,30,1,'1277810716','1277810716',2),(482,31,2,'1277810738','1277810738',2),(483,31,2,'1277810912','1277810912',2),(484,31,2,'1277810916','1277810916',2),(485,31,2,'1277810930','1277810930',2),(486,31,2,'1277810949','1277810949',2),(487,30,1,'1277810959','1277810959',2),(488,30,1,'1277810969','1277810969',2),(489,30,1,'1277811014','1277811014',2),(490,30,1,'1277811024','1277811024',2),(491,30,1,'1277811090','1277811090',2),(492,30,1,'1277811153','1277811153',2),(493,30,1,'1277811350','1277811350',2),(494,33,1,'1277812121','1277812121',2),(495,34,1,'1277812711','1277812711',1),(496,34,1,'1277812779','1277812779',1),(497,34,1,'1277812824','1277812824',1),(498,35,1,'1277814773','1277814773',1),(499,35,1,'1277814790','1277814790',1),(500,35,1,'1277814835','1277814835',2),(501,36,1,'1277814862','1277814862',2),(502,30,1,'1277821042','1277821042',2),(503,2,2,'1277881461','1277881461',1),(504,30,1,'1277900866','1277900866',2),(505,2,2,'1277901760','1277901760',3),(506,30,1,'1277901971','1277901971',2),(507,30,1,'1277902017','1277902017',2),(508,30,1,'1277902388','1277902388',2),(509,30,1,'1277903024','1277903024',2),(510,30,1,'1277903901','1277903901',2),(511,30,1,'1277904553','1277904553',2),(512,30,1,'1277904711','1277904711',2),(513,2,2,'1277904809','1277904809',1),(514,2,2,'1277905058','1277905058',1),(515,2,2,'1277965748','1277965748',1),(516,37,1,'1277967705','1277967705',2),(517,38,1,'1277969543','1277969543',1),(518,39,1,'1277970076','1277970076',2),(519,3,2,'1278339440','1278339440',1),(520,40,1,'1278339932','1278339932',1),(521,2,2,'1281604614','1281604614',1),(522,3,2,'1281604668','1281604668',1),(523,41,1,'1281619213','1281619213',1),(524,41,1,'1281619445','1281619445',1),(525,41,1,'1281619568','1281619568',1),(526,42,1,'1281962239','1281962239',1),(527,42,1,'1281964704','1281964704',1),(528,42,1,'1281964842','1281964842',1),(529,42,1,'1281964853','1281964853',1),(530,42,1,'1281965033','1281965033',1),(531,43,1,'1283364225','1283364225',1),(532,43,1,'1283367442','1283367442',1),(533,44,1,'1283458684','1283458684',1),(534,44,1,'1283459462','1283459462',1),(535,45,1,'1283459669','1283459669',1),(536,45,1,'1283459785','1283459785',1),(537,45,1,'1283459800','1283459800',1),(538,46,1,'1283594624','1283594624',1),(539,47,1,'1283626261','1283626261',1),(540,48,0,'1283669324','1283669324',1),(541,49,0,'1283670552','1283670552',1),(542,50,0,'1283671537','1283671537',1),(543,51,0,'1283671916','1283671916',1),(544,52,0,'1283672258','1283672258',1),(545,53,0,'1283672393','1283672393',1),(546,54,0,'1283672508','1283672508',1),(547,55,0,'1283672714','1283672714',1),(548,56,0,'1283674053','1283674053',1),(549,57,0,'1283674317','1283674317',1),(550,57,0,'1283677985','1283677985',1),(551,57,0,'1283678819','1283678819',1),(552,57,0,'1283678905','1283678905',1),(553,57,0,'1283679100','1283679100',1),(554,55,0,'1283681831','1283681831',1),(555,55,0,'1283681844','1283681844',1),(556,54,0,'1283682419','1283682419',1),(557,58,0,'1283684000','1283684000',1),(558,59,0,'1283845183','1283845183',1),(559,59,0,'1283868545','1283868545',1),(560,59,0,'1283868613','1283868613',1),(561,59,0,'1283868719','1283868719',1),(562,20,0,'1283868800','1283868800',1),(563,20,0,'1283868872','1283868872',1),(564,20,0,'1283869055','1283869055',1),(565,20,0,'1283869875','1283869875',1),(566,20,0,'1283870012','1283870012',1),(567,20,0,'1283870182','1283870182',1),(568,20,0,'1283870564','1283870564',1),(569,20,0,'1283870608','1283870608',1),(570,20,0,'1283870633','1283870633',1),(571,20,0,'1283870741','1283870741',1),(572,20,0,'1283872303','1283872303',1),(573,20,0,'1283872480','1283872480',1),(574,20,0,'1283872522','1283872522',1),(575,60,0,'1283889826','1283889826',1),(576,61,0,'1283891423','1283891423',1),(577,62,0,'1283891822','1283891822',1),(578,62,0,'1283892066','1283892066',1),(579,63,0,'1283895897','1283895897',1),(580,64,0,'1284967485','1284967485',1),(581,65,0,'1284967692','1284967692',1),(582,65,0,'1284967924','1284967924',1),(583,65,0,'1284968563','1284968563',1),(584,65,0,'1284968985','1284968985',1),(585,66,0,'1285150026','1285150026',1),(586,67,0,'1285404944','1285404944',1),(587,67,0,'1285405285','1285405285',1),(588,67,0,'1285406001','1285406001',1),(589,67,0,'1285406057','1285406057',1),(590,67,0,'1285406070','1285406070',1),(591,67,0,'1285406125','1285406125',1),(592,68,0,'1285406276','1285406276',1),(593,68,0,'1285406481','1285406481',1),(594,68,0,'1285406584','1285406584',1),(595,68,0,'1285406702','1285406702',1),(596,68,0,'1285406719','1285406719',1),(597,68,0,'1285406877','1285406877',1),(598,69,0,'1285656399','1285656399',1),(599,70,0,'1285656482','1285656482',1),(600,71,0,'1285695472','1285695472',1),(601,72,0,'1285695824','1285695824',1),(602,73,0,'1285699625','1285699625',1),(603,1,0,'1285734735','1285734735',1),(604,2,0,'1286212188','1286212188',1),(605,3,0,'1286342983','1286342983',1),(606,4,0,'1286343299','1286343299',1),(607,1,0,'1286347546','1286347546',1),(608,1,0,'1286350088','1286350088',1),(609,4,0,'1286351041','1286351041',1),(610,4,0,'1286351124','1286351124',1),(611,4,0,'1286351135','1286351135',1),(612,5,0,'1286351820','1286351820',1),(613,5,0,'1287898614','1287898614',1),(614,5,0,'1287901985','1287901985',1),(615,5,0,'1287902625','1287902625',1),(616,6,0,'1287902871','1287902871',1),(617,7,0,'1287992813','1287992813',1),(618,8,0,'1288015205','1288015205',1),(619,9,0,'1288015240','1288015240',1),(620,10,0,'1288015407','1288015407',1),(621,11,0,'1288015748','1288015748',1),(622,12,0,'1288015864','1288015864',1),(623,13,0,'1288015926','1288015926',1),(624,14,0,'1288015993','1288015993',1),(625,15,0,'1288016004','1288016004',1),(626,16,0,'1288016485','1288016485',1),(627,10,0,'1288016771','1288016771',1),(628,10,0,'1288016884','1288016884',1),(629,17,0,'1288182452','1288182452',1),(630,18,0,'1289630601','1289630601',1),(631,18,0,'1289631943','1289631943',1),(632,18,0,'1289632612','1289632612',1),(633,19,0,'1290063819','1290063819',1),(634,19,0,'1290065917','1290065917',1),(635,20,0,'1290072247','1290072247',1),(636,21,0,'1290072450','1290072450',1),(637,21,0,'1290108971','1290108971',1),(638,21,0,'1290109009','1290109009',1),(639,22,0,'1290125027','1290125027',1),(640,23,0,'1290498599','1290498599',1),(641,24,0,'1290498769','1290498769',1),(642,25,0,'1290498805','1290498805',1),(643,26,0,'1290499057','1290499057',1),(644,27,0,'1290499115','1290499115',1),(645,28,0,'1290499713','1290499713',1),(646,29,0,'1290505376','1290505376',1),(647,29,0,'1290505400','1290505400',1),(648,29,0,'1290505411','1290505411',1),(649,29,0,'1290506337','1290506337',1),(650,28,0,'1290506975','1290506975',1),(651,28,0,'1290507024','1290507024',1),(652,28,0,'1290507056','1290507056',1),(653,28,0,'1290507173','1290507173',1),(654,28,0,'1290507231','1290507231',1),(655,28,0,'1290507452','1290507452',1),(656,28,0,'1290507487','1290507487',1),(657,30,0,'1290511514','1290511514',1),(658,31,0,'1290587874','1290587874',1),(659,32,0,'1290861163','1290861163',1),(660,33,0,'1290862106','1290862106',1),(661,34,0,'1292835800','1292835800',1),(662,35,0,'1292836297','1292836297',1),(663,36,0,'1292843806','1292843806',1),(664,37,0,'1292843878','1292843878',1),(665,38,0,'1292853385','1292853385',1),(666,39,0,'1292854126','1292854126',1),(667,39,0,'1293078715','1293078715',1),(668,40,0,'1293695732','1293695732',1),(669,38,0,'1293695817','1293695817',1),(670,41,0,'1294034359','1294034359',1),(671,42,0,'1294037334','1294037334',1),(672,43,0,'1294037397','1294037397',1),(673,44,0,'1294037989','1294037989',1),(674,45,0,'1294038251','1294038251',1),(675,46,0,'1294038346','1294038346',1),(676,47,0,'1294048202','1294048202',1),(677,48,0,'1294048445','1294048445',1),(678,49,0,'1294048522','1294048522',1),(679,50,0,'1294062204','1294062204',1),(680,51,0,'1294062255','1294062255',1),(681,1,0,'1294144323','1294144323',1),(682,1,0,'1294292728','1294292728',1),(683,1,0,'1294292768','1294292768',1),(684,2,0,'1294394533','1294394533',1),(685,3,0,'1294394720','1294394720',1),(686,4,0,'1294394963','1294394963',1),(687,5,0,'1294395219','1294395219',1),(688,6,0,'1294396005','1294396005',1),(689,7,0,'1294657928','1294657928',1),(690,8,0,'1294743835','1294743835',1),(691,9,0,'1294743854','1294743854',1),(692,10,0,'1294743874','1294743874',1),(693,11,0,'1294744081','1294744081',1),(694,12,0,'1294747049','1294747049',1),(695,13,0,'1294753004','1294753004',1),(696,14,0,'1294755291','1294755291',1),(697,15,0,'1294755306','1294755306',1),(698,16,0,'1294755346','1294755346',1),(699,17,0,'1294755399','1294755399',1),(700,18,0,'1294755429','1294755429',1),(701,19,0,'1294755459','1294755459',1),(702,20,0,'1294755490','1294755490',1),(703,21,0,'1294755526','1294755526',1),(704,22,0,'1294755559','1294755559',1),(705,23,0,'1294755655','1294755655',1),(706,24,0,'1294755673','1294755673',1),(707,25,0,'1294755688','1294755688',1),(708,26,0,'1294756079','1294756079',1),(709,27,0,'1294756092','1294756092',1),(710,28,0,'1294756171','1294756171',1),(711,29,0,'1294768410','1294768410',1),(712,29,0,'1294777649','1294777649',1),(713,29,0,'1294777759','1294777759',1),(714,29,0,'1294777932','1294777932',1),(715,30,0,'1294780180','1294780180',1),(716,31,0,'1294781191','1294781191',1),(717,32,0,'1294782535','1294782535',1),(718,32,0,'1294817162','1294817162',1),(719,32,0,'1294817242','1294817242',1),(720,33,0,'1294817675','1294817675',1),(721,33,0,'1294817691','1294817691',1),(722,34,0,'1294818020','1294818020',1),(723,34,0,'1294818304','1294818304',1),(724,34,0,'1294818354','1294818354',1),(725,32,0,'1294818434','1294818434',1),(726,35,0,'1294818487','1294818487',1),(727,35,0,'1294819303','1294819303',1),(728,33,0,'1294822781','1294822781',1),(729,33,0,'1294824210','1294824210',1),(730,33,0,'1294824680','1294824680',1),(731,33,0,'1294824760','1294824760',1),(732,33,0,'1294824781','1294824781',1),(733,33,0,'1294824801','1294824801',1),(734,34,0,'1294835392','1294835392',1),(735,34,0,'1294836335','1294836335',1),(736,36,0,'1294860676','1294860676',1),(737,36,0,'1294861601','1294861601',1),(738,37,0,'1294927056','1294927056',1),(739,38,0,'1295236477','1295236477',1),(740,38,0,'1295236503','1295236503',1),(741,38,0,'1295236701','1295236701',1),(742,38,0,'1295241770','1295241770',1),(743,39,0,'1295342687','1295342687',1),(744,39,0,'1295426783','1295426783',1),(745,40,0,'1295543194','1295543194',1),(746,41,0,'1295579039','1295579039',1),(747,42,0,'1295589475','1295589475',1),(748,43,0,'1296737152','1296737152',1),(749,44,0,'1296810851','1296810851',1),(750,44,0,'1296810874','1296810874',1),(751,45,0,'1297170260','1297170260',1),(752,46,0,'1297173970','1297173970',1),(753,47,0,'1297273758','1297273758',1),(754,48,0,'1297274289','1297274289',1),(755,46,0,'1297320013','1297320013',1),(756,46,0,'1297320034','1297320034',1),(757,49,0,'1297320581','1297320581',1),(758,49,0,'1297320742','1297320742',1),(759,49,0,'1297320760','1297320760',1),(760,49,0,'1297320844','1297320844',1),(761,50,0,'1297320908','1297320908',1),(762,50,0,'1297321575','1297321575',1),(763,50,0,'1297321893','1297321893',1),(764,50,0,'1297322307','1297322307',1),(765,51,0,'1297325507','1297325507',1),(766,52,0,'1297325977','1297325977',1),(767,53,0,'1297326175','1297326175',1),(768,54,0,'1297334080','1297334080',1),(769,55,0,'1297336592','1297336592',1),(770,56,0,'1297339490','1297339490',1),(771,57,0,'1297665678','1297665678',1),(772,1,0,'1297762588','1297762588',1),(773,1,0,'1297762623','1297762623',1),(774,2,0,'1297762928','1297762928',1),(775,3,0,'1297766919','1297766919',1),(776,4,0,'1298456347','1298456347',1),(777,5,0,'1298466864','1298466864',1),(778,6,0,'1298469198','1298469198',1),(779,7,0,'1298877897','1298877897',1),(780,7,0,'1298877917','1298877917',1),(781,7,0,'1298877936','1298877936',1),(782,7,0,'1298878200','1298878200',1),(783,8,0,'1298878392','1298878392',1),(784,9,0,'1298881546','1298881546',1),(785,9,0,'1298881578','1298881578',1),(786,10,0,'1298881808','1298881808',1),(787,10,0,'1298881819','1298881819',1),(788,11,0,'1298977940','1298977940',1),(789,11,0,'1298983509','1298983509',1),(790,12,0,'1299003781','1299003781',1),(791,13,0,'1299005253','1299005253',1),(792,14,0,'1299005566','1299005566',1),(793,14,0,'1299011520','1299011520',1),(794,14,0,'1299011964','1299011964',1),(795,15,0,'1299012078','1299012078',1),(796,15,0,'1299012328','1299012328',1),(797,16,0,'1299018072','1299018072',1),(798,16,0,'1299047854','1299047854',1),(799,16,0,'1299052400','1299052400',1),(800,17,0,'1299052736','1299052736',1),(801,18,0,'1299054751','1299054751',1),(802,18,0,'1299055195','1299055195',1),(803,18,0,'1299055503','1299055503',1),(804,18,0,'1299057944','1299057944',1),(805,18,0,'1299058186','1299058186',1),(806,19,0,'1299064771','1299064771',1),(807,19,0,'1299065888','1299065888',1),(808,20,0,'1301557780','1301557780',1),(809,21,0,'1301642669','1301642669',1),(810,21,0,'1301642683','1301642683',1),(811,22,0,'1301742285','1301742285',1),(812,23,0,'1301742855','1301742855',1),(813,23,0,'1301743797','1301743797',1),(814,23,0,'1301743962','1301743962',1),(815,23,0,'1301743998','1301743998',1),(816,23,0,'1301745344','1301745344',1),(817,24,0,'1301748030','1301748030',1),(818,24,0,'1301748610','1301748610',1),(819,25,0,'1302010873','1302010873',1),(820,26,0,'1302011253','1302011253',1),(821,26,0,'1302011447','1302011447',1),(822,27,0,'1302011619','1302011619',1),(823,28,0,'1302012369','1302012369',1),(824,29,0,'1302066834','1302066834',1),(825,30,0,'1302067292','1302067292',1),(826,31,0,'1302067356','1302067356',1),(827,32,0,'1302068436','1302068436',1),(828,33,0,'1302068461','1302068461',1),(829,34,0,'1302068611','1302068611',1),(830,35,0,'1302070320','1302070320',1),(831,35,0,'1302073950','1302073950',1),(832,36,0,'1302075343','1302075343',1),(833,37,0,'1302078455','1302078455',1),(834,38,0,'1302078516','1302078516',1),(835,39,0,'1302090383','1302090383',1),(836,40,0,'1302241853','1302241853',1),(837,41,0,'1302613350','1302613350',1),(838,42,0,'1302780923','1302780923',1),(839,42,0,'1302783361','1302783361',1),(840,43,0,'1304163908','1304163908',1),(841,44,0,'1304308177','1304308177',1),(842,44,0,'1304308206','1304308206',1),(843,45,0,'1304309822','1304309822',1),(844,45,0,'1304311991','1304311991',1),(845,46,0,'1304313473','1304313473',1),(846,47,0,'1304333838','1304333838',1),(847,48,0,'1304753503','1304753503',1),(848,47,0,'1304753558','1304753558',1),(849,47,0,'1304757166','1304757166',1),(850,47,0,'1304757184','1304757184',1),(851,47,0,'1304757203','1304757203',1),(852,47,0,'1304757274','1304757274',1),(853,47,0,'1304757364','1304757364',1),(854,49,0,'1304780645','1304780645',1),(855,50,0,'1304780683','1304780683',1),(856,51,0,'1304780711','1304780711',1),(857,52,0,'1304780743','1304780743',1),(858,53,0,'1304781059','1304781059',1),(859,54,0,'1304781118','1304781118',1),(860,55,0,'1304781219','1304781219',1),(861,56,0,'1304781238','1304781238',1),(862,57,0,'1304781354','1304781354',1),(863,58,0,'1304781962','1304781962',1),(864,59,0,'1304782787','1304782787',1),(865,60,0,'1304782990','1304782990',1),(866,61,0,'1304783215','1304783215',1),(867,62,0,'1304783400','1304783400',1),(868,63,0,'1304783824','1304783824',1),(869,64,0,'1304784060','1304784060',1),(870,65,0,'1304784105','1304784105',1),(871,66,0,'1304784138','1304784138',1),(872,67,0,'1304784651','1304784651',1),(873,64,0,'1304785643','1304785643',1),(874,64,0,'1304786078','1304786078',1),(875,64,0,'1304786492','1304786492',1),(876,64,0,'1304787352','1304787352',1),(877,64,0,'1304787580','1304787580',1),(878,64,0,'1304787728','1304787728',1),(879,70,0,'1305136597','1305136597',1),(880,71,0,'1305138907','1305138907',1),(881,72,0,'1305142940','1305142940',1),(882,73,0,'1305143869','1305143869',1),(883,74,0,'1305197749','1305197749',1),(884,75,0,'1305197786','1305197786',1),(885,76,0,'1306859982','1306859982',1),(886,77,0,'1306860642','1306860642',1),(887,78,0,'1306863361','1306863361',1),(888,79,0,'1306863518','1306863518',1),(889,80,0,'1306863596','1306863596',1),(890,81,0,'1306863719','1306863719',1),(891,82,0,'1306863773','1306863773',1),(892,83,0,'1306863821','1306863821',1),(893,84,0,'1306863938','1306863938',1),(894,85,0,'1306864546','1306864546',1),(895,86,0,'1306865482','1306865482',1),(896,87,0,'1306866168','1306866168',1),(897,88,0,'1307011060','1307011060',1),(898,89,0,'1307011681','1307011681',1),(899,90,0,'1307021855','1307021855',1),(900,91,0,'1307023498','1307023498',1),(901,92,0,'1307170127','1307170127',1),(902,93,0,'1312018426','1312018426',1),(903,94,0,'1312021283','1312021283',1),(904,95,0,'1312023048','1312023048',1),(905,96,0,'1312024848','1312024848',1),(906,97,0,'1312180622','1312180622',1),(907,98,0,'1312265067','1312265067',1),(908,99,0,'1312268702','1312268702',1),(909,100,0,'1312277290','1312277290',1),(910,101,0,'1312438575','1312438575',1),(911,101,0,'1312438783','1312438783',1),(912,101,0,'1312439601','1312439601',1),(913,102,0,'1312442869','1312442869',1),(914,102,0,'1312442978','1312442978',1),(915,102,0,'1312466032','1312466032',1),(916,102,0,'1312483833','1312483833',1),(917,102,0,'1312634477','1312634477',1),(918,102,0,'1313428982','1313428982',1),(919,102,0,'1313429999','1313429999',1),(920,102,0,'1313430886','1313430886',1),(921,102,0,'1313472492','1313472492',1),(922,102,0,'1313472516','1313472516',1),(923,102,0,'1313472598','1313472598',1),(924,102,0,'1313488310','1313488310',1),(925,102,0,'1313488865','1313488865',1),(926,102,0,'1313491508','1313491508',1),(927,102,0,'1313491682','1313491682',1),(928,102,0,'1313491794','1313491794',1),(929,102,0,'1313491829','1313491829',1),(930,102,0,'1313491848','1313491848',1),(931,103,0,'1313492536','1313492536',1),(932,104,0,'1313492871','1313492871',1),(933,105,0,'1313494193','1313494193',1),(934,106,0,'1313494457','1313494457',1),(935,106,0,'1313494497','1313494497',1),(936,107,0,'1313605749','1313605749',1),(937,107,0,'1313641929','1313641929',1),(938,108,0,'1313642367','1313642367',1),(939,109,0,'1313648151','1313648151',1),(940,110,0,'1313648550','1313648550',1),(941,110,0,'1313648819','1313648819',1),(942,110,0,'1313649236','1313649236',1),(943,111,0,'1313650824','1313650824',1),(944,112,0,'1313652120','1313652120',1),(945,113,0,'1313652268','1313652268',1),(946,114,0,'1313654529','1313654529',1),(947,115,0,'1313664666','1313664666',1),(948,116,0,'1313668623','1313668623',1),(949,142,0,'1313993773','1313993773',1),(950,143,0,'1313996037','1313996037',1),(951,144,0,'1313996139','1313996139',1),(952,145,0,'1314004431','1314004431',1),(953,146,0,'1314005606','1314005606',1),(954,147,0,'1314005639','1314005639',1),(955,148,0,'1314011285','1314011285',1);

--
-- Table structure for table `bstock_pl_postatustypes`
--

CREATE TABLE `bstock_pl_postatustypes` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `status` varchar(255) NOT NULL,
  `desc` varchar(255) NOT NULL,
  `is_active` enum('1','0') NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_postatustypes`
--

INSERT INTO `bstock_pl_postatustypes` VALUES (1,'Pending','','0',0,0),(2,'Delivered','','0',0,0),(3,'Paid','Paid','1',1267005563,1267005563),(4,'Unpaid','Order Unpaid','1',0,0),(5,'Partially Paid','Order Partially Paid','1',0,0);

--
-- Table structure for table `bstock_pl_productview_stat`
--

CREATE TABLE `bstock_pl_productview_stat` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `customer_id` int(10) NOT NULL COMMENT 'This is the customer id.',
  `product_id` int(10) NOT NULL COMMENT 'This is the product id viewed by the customer.',
  `ip_address` varchar(50) NOT NULL COMMENT 'This is the IP Address of the customer.',
  `viewed_time` varchar(50) NOT NULL COMMENT 'This will contain the timestamp when the product was viewed.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=280 DEFAULT CHARSET=latin1 COMMENT='This table is used to store the product view stats of the cu';

--
-- Dumping data for table `bstock_pl_productview_stat`
--

INSERT INTO `bstock_pl_productview_stat` VALUES (1,12,39,'59.182.50.67','1264184537'),(2,12,43,'59.182.50.67','1264184571'),(3,9,41,'59.182.62.195','1264251968'),(4,9,43,'59.182.62.195','1264251977'),(5,38,46,'69.208.108.27','1264712470'),(6,38,48,'69.208.108.27','1264712479'),(7,25,60,'59.182.147.34','1264837250'),(8,25,29,'59.182.147.34','1264837276'),(9,25,51,'59.182.147.34','1264837279'),(10,25,51,'59.182.147.34','1264837408'),(11,25,52,'59.182.147.34','1264837415'),(12,25,53,'59.182.147.34','1264837418'),(13,25,52,'59.182.147.34','1264837430'),(14,25,55,'59.182.147.34','1264837448'),(15,25,30,'59.182.147.34','1264837460'),(16,25,45,'59.182.147.34','1264837464'),(17,25,21,'59.182.147.34','1264837477'),(18,25,35,'59.182.147.34','1264837480'),(19,25,41,'59.182.147.34','1264837483'),(20,25,35,'59.182.147.34','1264837486'),(21,25,36,'59.182.147.34','1264837497'),(22,25,36,'59.182.147.34','1264837500'),(23,25,34,'59.182.147.34','1264837510'),(24,25,43,'59.182.147.34','1264837514'),(25,25,19,'59.182.147.34','1264837517'),(26,25,38,'59.182.147.34','1264837527'),(27,25,48,'59.182.147.34','1264837530'),(28,25,58,'59.182.147.34','1264837542'),(29,25,58,'59.182.147.34','1264837548'),(30,25,39,'59.182.147.34','1264837680'),(31,25,56,'59.182.147.34','1264837685'),(32,25,56,'59.182.147.34','1264837689'),(33,25,39,'59.182.147.34','1264837693'),(34,25,29,'59.182.147.34','1264837793'),(35,25,60,'59.182.147.34','1264838486'),(36,25,60,'59.182.147.34','1264838520'),(37,25,57,'59.182.147.34','1264838922'),(38,25,29,'59.182.160.218','1265031002'),(39,12,45,'59.182.107.244','1265180032'),(40,12,12,'59.182.51.236','1265198839'),(41,12,28,'59.182.51.236','1265198866'),(42,12,12,'59.182.51.236','1265198901'),(43,12,6,'59.182.51.236','1265198913'),(44,12,12,'59.182.51.236','1265199014'),(45,12,28,'59.182.51.236','1265199028'),(46,12,16,'59.182.51.236','1265199097'),(47,12,5,'59.182.51.236','1265199135'),(48,12,7,'59.182.51.236','1265199140'),(49,12,34,'59.182.51.236','1265199146'),(50,12,20,'59.182.51.236','1265199235'),(51,12,12,'59.182.51.236','1265199245'),(52,12,31,'59.182.51.236','1265199255'),(53,12,28,'59.182.51.236','1265199276'),(54,12,12,'59.182.51.236','1265199281'),(55,12,7,'59.182.51.236','1265199545'),(56,12,20,'59.182.51.236','1265199553'),(57,12,28,'59.182.51.236','1265199591'),(58,12,33,'59.182.51.236','1265199631'),(59,12,31,'59.182.51.236','1265199637'),(60,12,20,'59.182.51.236','1265199804'),(61,12,25,'59.182.51.236','1265199851'),(62,12,31,'59.182.51.236','1265199891'),(63,12,16,'59.182.51.236','1265200078'),(64,12,34,'59.182.51.236','1265200093'),(65,12,33,'59.182.51.236','1265200098'),(66,12,12,'59.182.51.236','1265200353'),(67,25,628,'59.182.179.196','1265295558'),(68,25,641,'59.182.185.88','1265790288'),(69,25,641,'59.182.185.88','1265790317'),(70,12,114,'59.182.147.76','1265791949'),(71,44,10,'122.169.15.45','1265801975'),(72,44,5,'122.169.15.45','1265801984'),(73,44,8,'122.169.15.45','1265802024'),(74,12,4,'59.182.172.183','1265802033'),(75,12,1,'59.182.153.191','1265890397'),(76,12,2,'59.182.153.191','1265890444'),(77,12,4,'59.182.153.191','1265890482'),(78,12,5,'59.182.153.191','1265890592'),(79,12,5,'59.182.153.191','1265890611'),(80,12,16,'59.182.153.191','1265890615'),(81,12,1,'59.182.153.191','1265892900'),(82,12,16,'59.182.153.191','1265893339'),(83,12,12,'59.182.153.191','1265893900'),(84,12,11,'59.182.153.191','1265894114'),(85,12,16,'59.182.153.191','1265894326'),(86,12,2,'59.182.153.191','1265894330'),(87,12,23,'59.182.153.191','1265894335'),(88,12,35,'59.182.153.191','1265894341'),(89,12,42,'59.182.153.191','1265894352'),(90,12,634,'59.182.153.191','1265894557'),(91,12,633,'59.182.153.191','1265895026'),(92,12,619,'59.182.153.191','1265895130'),(93,12,620,'59.182.153.191','1265895148'),(94,12,621,'59.182.153.191','1265895158'),(95,12,599,'59.182.153.191','1265895427'),(96,12,1,'59.182.177.226','1265977808'),(97,44,1,'122.169.47.126','1265977812'),(98,44,10,'122.169.47.126','1265977846'),(99,12,1,'59.182.23.45','1266154815'),(100,12,1,'59.182.23.45','1266154996'),(101,46,64,'122.169.21.229','1266486391'),(102,46,64,'122.169.21.229','1266487621'),(103,41,637,'59.182.128.96','1266558498'),(104,12,1,'59.182.89.116','1266585336'),(105,12,2,'59.182.89.116','1266585372'),(106,12,4,'59.182.89.116','1266585379'),(107,12,5,'59.182.89.116','1266585589'),(108,12,7,'59.182.89.116','1266585668'),(109,12,1,'59.182.89.116','1266585704'),(110,12,16,'59.182.89.116','1266586016'),(111,12,12,'59.182.89.116','1266586024'),(112,12,16,'59.182.89.116','1266586168'),(113,12,1,'59.182.89.116','1266586175'),(114,12,21,'59.182.89.116','1266586319'),(115,12,20,'59.182.89.116','1266587021'),(116,12,33,'59.182.89.116','1266587056'),(117,12,29,'59.182.89.116','1266587079'),(118,12,31,'59.182.89.116','1266587127'),(119,12,34,'59.182.89.116','1266587134'),(120,12,40,'59.182.89.116','1266587155'),(121,12,42,'59.182.89.116','1266587169'),(122,12,37,'59.182.89.116','1266587174'),(123,12,38,'59.182.89.116','1266587278'),(124,12,39,'59.182.89.116','1266587293'),(125,12,38,'59.182.89.116','1266587295'),(126,12,48,'59.182.89.116','1266587313'),(127,12,57,'59.182.89.116','1266587336'),(128,12,66,'59.182.89.116','1266587342'),(129,12,59,'59.182.89.116','1266587342'),(130,12,634,'59.182.89.116','1266587349'),(131,12,10,'59.182.89.116','1266587366'),(132,12,8,'59.182.89.116','1266587366'),(133,12,11,'59.182.89.116','1266587458'),(134,12,43,'59.182.89.116','1266587505'),(135,12,11,'59.182.89.116','1266587626'),(136,12,29,'59.182.89.116','1266587683'),(137,12,41,'59.182.89.116','1266587719'),(138,12,46,'59.182.89.116','1266587745'),(139,12,37,'59.182.89.116','1266587855'),(140,12,2,'59.182.89.116','1266587869'),(141,12,43,'59.182.89.116','1266587892'),(142,12,20,'59.182.89.116','1266588120'),(143,12,17,'59.182.89.116','1266588127'),(144,12,18,'59.182.89.116','1266588238'),(145,12,19,'59.182.89.116','1266588243'),(146,12,21,'59.182.89.116','1266588275'),(147,12,43,'59.182.89.116','1266588299'),(148,41,12,'59.182.162.1','1266665014'),(149,12,642,'122.169.0.9','1267005745'),(150,12,2,'59.182.108.88','1267118367'),(151,12,7,'59.182.108.88','1267118375'),(152,12,3,'59.182.142.238','1267168627'),(153,12,4,'220.246.25.158','1267420806'),(154,12,7,'220.246.25.158','1267420831'),(155,12,2,'59.182.100.115','1267638297'),(156,12,2,'122.169.61.239','1268025948'),(157,0,3,'127.0.0.1','1272009139'),(158,0,9,'127.0.0.1','1272009145'),(159,0,0,'59.182.28.225','1277741491'),(160,0,0,'59.182.28.225','1277741728'),(161,0,0,'59.182.28.225','1277742194'),(162,0,0,'59.182.28.225','1277742278'),(163,0,0,'59.182.28.225','1277742523'),(164,0,0,'59.182.28.225','1277742535'),(165,0,0,'59.182.28.225','1277742550'),(166,0,0,'59.182.28.225','1277742602'),(167,0,0,'59.182.28.225','1277742714'),(168,0,0,'59.182.28.225','1277742784'),(169,0,0,'59.182.28.225','1277742843'),(170,0,0,'59.182.28.225','1277742909'),(171,0,0,'59.182.28.225','1277742995'),(172,0,0,'59.182.28.225','1277743278'),(173,0,0,'59.182.28.225','1277743344'),(174,0,0,'59.182.28.225','1277743353'),(175,0,0,'59.182.28.225','1277743413'),(176,0,0,'59.182.28.225','1277743444'),(177,0,0,'59.182.28.225','1277743485'),(178,0,0,'59.182.28.225','1277743608'),(179,0,0,'59.182.28.225','1277743903'),(180,0,0,'59.182.28.225','1277744020'),(181,0,0,'59.182.28.225','1277744021'),(182,0,0,'59.182.28.225','1277744037'),(183,0,0,'59.182.28.225','1277744053'),(184,0,0,'59.182.28.225','1277744061'),(185,0,0,'59.182.28.225','1277744065'),(186,0,0,'59.182.28.225','1277744072'),(187,0,0,'59.182.28.225','1277744078'),(188,0,0,'59.182.28.225','1277744155'),(189,0,0,'59.182.28.225','1277744315'),(190,0,0,'59.182.28.225','1277744861'),(191,0,0,'59.182.28.225','1277744886'),(192,0,0,'59.182.28.225','1277745235'),(193,0,0,'59.182.28.225','1277745674'),(194,0,0,'59.182.28.225','1277746005'),(195,0,0,'59.182.28.225','1277746213'),(196,0,0,'59.182.28.225','1277746240'),(197,0,0,'59.182.28.225','1277746265'),(198,0,0,'59.182.28.225','1277746493'),(199,0,0,'59.182.28.225','1277746510'),(200,0,0,'59.182.28.225','1277746682'),(201,0,0,'59.182.28.225','1277747466'),(202,0,0,'59.182.28.225','1277747510'),(203,0,0,'59.182.28.225','1277748122'),(204,0,0,'59.182.28.225','1277748159'),(205,0,0,'59.182.28.225','1277748342'),(206,0,0,'59.182.28.225','1277748437'),(207,0,0,'59.182.28.225','1277748511'),(208,0,0,'59.182.28.225','1277748717'),(209,0,0,'59.182.28.225','1277748720'),(210,0,0,'59.182.28.225','1277748739'),(211,0,0,'59.182.105.113','1277810215'),(212,0,0,'59.182.9.179','1278341404'),(213,0,0,'59.182.9.179','1278341444'),(214,0,0,'59.182.9.179','1278341461'),(215,0,0,'59.182.9.179','1278341496'),(216,0,0,'59.182.9.179','1278341910'),(217,0,0,'59.182.9.179','1278342374'),(218,0,0,'59.182.9.179','1278354469'),(219,0,0,'59.182.9.179','1278354988'),(220,0,0,'59.182.9.179','1278355308'),(221,0,0,'59.182.9.179','1278355442'),(222,0,0,'59.182.9.179','1278355628'),(223,0,0,'59.182.9.179','1278355708'),(224,0,0,'59.182.9.179','1278355925'),(225,0,0,'59.182.9.179','1278355942'),(226,0,0,'59.182.9.179','1278356055'),(227,0,0,'59.182.144.244','1278507546'),(228,0,0,'59.182.182.109','1278508359'),(229,0,0,'59.182.86.107','1279123688'),(230,0,0,'59.182.86.107','1279123987'),(231,0,0,'59.182.86.107','1279124156'),(232,0,0,'59.182.86.107','1279124172'),(233,0,0,'59.182.86.107','1279124217'),(234,0,0,'59.182.86.107','1279124223'),(235,0,0,'59.182.97.8','1279347745'),(236,0,0,'59.182.37.186','1281163076'),(237,0,0,'59.182.37.186','1281163087'),(238,0,0,'59.182.37.186','1281163094'),(239,0,0,'59.182.37.186','1281163098'),(240,0,0,'59.182.37.186','1281164369'),(241,0,0,'59.182.37.186','1281164604'),(242,0,0,'59.182.37.186','1281164983'),(243,0,0,'59.182.37.186','1281165351'),(244,0,0,'59.182.37.186','1281166359'),(245,0,0,'59.182.37.186','1281166420'),(246,0,0,'59.182.37.186','1281166429'),(247,0,0,'59.182.37.186','1281166463'),(248,0,0,'59.182.37.186','1281166501'),(249,0,0,'59.182.37.186','1281166535'),(250,0,0,'59.182.37.186','1281166558'),(251,0,0,'59.182.37.186','1281166565'),(252,0,0,'59.182.37.186','1281166568'),(253,0,0,'59.182.37.186','1281166659'),(254,0,0,'59.182.37.186','1281166666'),(255,0,0,'59.182.37.186','1281168614'),(256,0,0,'59.182.37.186','1281168631'),(257,0,0,'59.182.37.186','1281168640'),(258,0,0,'59.182.37.186','1281168837'),(259,0,0,'59.182.37.186','1281168839'),(260,0,0,'59.182.37.186','1281168842'),(261,0,0,'59.182.37.186','1281168943'),(262,0,0,'59.182.37.186','1281168972'),(263,0,0,'59.182.37.186','1281168986'),(264,0,0,'59.182.37.186','1281168994'),(265,0,0,'59.182.37.186','1281169000'),(266,0,0,'59.182.37.186','1281169002'),(267,0,0,'59.182.37.186','1281169006'),(268,0,0,'59.182.37.186','1281169273'),(269,0,0,'59.182.37.186','1281169279'),(270,0,0,'59.182.0.35','1281181430'),(271,0,0,'59.182.0.35','1281181519'),(272,0,0,'59.182.118.15','1281187297'),(273,0,0,'59.182.118.15','1281187609'),(274,0,0,'59.182.81.105','1281199963'),(275,0,0,'59.182.81.105','1281199990'),(276,0,0,'59.182.81.105','1281200798'),(277,0,0,'59.182.81.105','1281200822'),(278,0,0,'59.182.81.105','1281200833'),(279,0,0,'59.182.179.244','1287035253');

--
