--
-- Host: localhost    Database: reenakak_atittest
-- ------------------------------------------------------


--
-- Current Database: `reenakak_atittest`
--

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

USE `reenakak_atittest`;

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Table structure for table `bstock_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=2 DEFAULT CHARSET=latin1;

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

INSERT INTO `bstock_bank` VALUES (1,'ICICIC','fasjkfl asdlkfj sdlkfj','on',0,'','1309519822','2423423423234');

--
-- 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` varchar(50) NOT NULL,
  `phone2` varchar(50) NOT NULL,
  `fax` varchar(50) 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','off'),(841,'Israel','ISR','IS','off'),(842,'Australia','AU','AU','off');

--
-- 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,
  `bill_office_phone_number_2` varchar(15) NOT NULL,
  `bill_office_phone_number_3` varchar(15) NOT NULL,
  `type` enum('Jhangad','SalesOrder') NOT NULL COMMENT 'Will store the type of transaction',
  `bill_fax` varchar(15) NOT NULL,
  `bill_email` varchar(250) NOT NULL,
  `bill_website` varchar(250) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COMMENT='Store the shipping address details of the customer.';

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

INSERT INTO `bstock_customerbilling` VALUES (1,1,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(2,2,'','','','',0,0,'','','','','','','','','Jhangad','','','');

--
-- 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` decimal(10,2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COMMENT='Store details of customers. They are not system users.';

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

INSERT INTO `bstock_customers` VALUES (1,'','','','baba','','baba','','','','','','','on','Customer','1322727056','1322727056','Customer','Yes','COD',0.00),(2,'','','','','','kaka','','','','','','','on','Customer','1322727064','1322727064','Customer','Yes','COD',0.00);

--
-- 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,
  `ship_office_phone_number_2` varchar(15) NOT NULL,
  `ship_office_phone_number_3` varchar(15) NOT NULL,
  `type` enum('Jhangad','SalesOrder') NOT NULL COMMENT 'Will store the type of transaction',
  `ship_fax` varchar(15) NOT NULL,
  `ship_email` varchar(250) NOT NULL,
  `ship_website` varchar(250) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COMMENT='Store the shipping address details of the customer.';

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

INSERT INTO `bstock_customershipping` VALUES (1,1,'','','','',0,0,'','','','','','','','','Jhangad','','',''),(2,2,'','','','',0,0,'','','','','','','','','Jhangad','','','');

--
-- 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 DEFAULT CHARSET=latin1 COMMENT='Stores exporter related information like Name, Address, etc.';

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


--
-- 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=254 DEFAULT CHARSET=latin1 COMMENT='This table will store all the custom fields for the modules.';

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

INSERT INTO `bstock_fields` VALUES (111,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',13,'off','on','on','on','bstock_products',0,'1261224788','1261224788',0,1,'Is Active is mandatory.','1','','',''),(110,'Location','option','location',0,'location','\'All\',\'Antwerp\',\'Hong Kong\',\'Mumbai\',\'New York\'',10,'off','on','on','on','bstock_products',0,'1261224120','1261224120',0,0,'','1','','',''),(8,'Profile Name','text','profile_name',200,'profile_name','',1,'','on','on','on','bstock_userprofiles',1,'','',1,0,'','','','',''),(9,'Description','textarea','description',255,'description','',2,'','on','on','on','bstock_userprofiles',1,'','',1,0,'','','','',''),(11,'Username','text','username',100,'username','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(12,'Password','password','customer_password',100,'customer_password','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(13,'Email','text','email',255,'email','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(14,'First Name','text','first_name',150,'first_name','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(15,'Last Name','text','last_name',150,'last_name','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(16,'Company Name','text','company_name',150,'company_name','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(17,'Office phone number','text','office_phone_number',11,'office_phone_number','',0,'','on','on','on','bstock_customers',1,'','',0,0,'','','','',''),(18,'Mobile number','text','mobile_number',12,'mobile_number','',0,'','on','','on','bstock_customers',1,'','',0,0,'','','','',''),(19,'is_active','radio','is_active',5,'is_active','\'on\',\'off\'',0,'','on','on','off','bstock_customers',1,'','',0,1,'','','','',''),(20,'User profile','option','customerprofiles',50,'customerprofiles','\'User\',\'Customer\'',0,'','on','on','off','bstock_customers',1,'','',0,0,'','','','',''),(21,'label','text','label',200,'label','',1,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(22,'Type','option','type',200,'type','',2,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(23,'Column name','text','column_name',200,'column_name','',2,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(24,'Max Length','text','maxlength',100,'maxlength','100',4,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(25,'name','text','name',200,'name','',5,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(26,'value','text','value',500,'value','',6,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(27,'sequence','text','sequence',100,'sequence','',7,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(28,'Read Only','radio','readonly',100,'readonly','',8,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(29,'Presence','radio','presence',100,'presence','',9,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(30,'mandatory','radio','mandatory',100,'mandatory','',10,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(31,'Is Active','radio','is_active',100,'is_active','',11,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(32,'Table Name','text','table_name',100,'table_name','',12,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(33,'generated type','text','generatedtype',100,'generatedtype','',13,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(34,'Is Range','text','is_range',100,'is_range','',14,'','on','on','on','bstock_fields',1,'','',0,0,'','','','',''),(35,'order no','text','order_id',100,'order_id','',7,'','on','on','on','bstock_orders',1,'','',0,0,'','','','',''),(36,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761129',1,0,'','','','',''),(37,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761328',1,0,'','','','',''),(38,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761328',1,0,'','','','',''),(39,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761590',1,0,'','','','',''),(40,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761703',1,0,'','','','',''),(41,'Description1','','description',255,'description','',3,'','','','','',0,'','1259761757',1,0,'','','','',''),(42,'Required Msg.','text','required_msg',300,'required_msg','',15,'','on','on','on','bstock_fields',0,'1259848625','1259848625',0,0,'','','','',''),(118,'Color','option','color',0,'color','\'D\',\'E\',\'F\',\'G\',\'H\',\'I\',\'J\',\'K\',\'L\',\'M\',\'N\',\'O\',\'P\',\'Q\',\'R\'',7,'off','on','on','on','bstock_products',0,'1261227132','1261227132',0,1,'','1','','',''),(117,'Clarity','option','clarity',0,'clarity','\'IF\',\'VVS1\',\'VVS2\',\'VS1\',\'VS2\',\'SI1\',\'SI2\',\'I1\',\'I2\',\'I3\'',8,'off','on','on','on','bstock_products',0,'1261227023','1261227023',0,1,'','1','','',''),(116,'Cut','option','cut',0,'cut','\'Excellent\',\'Very Good\',\'Good\',\'Fair\'',12,'off','on','on','on','bstock_products',0,'1261226805','1261226805',0,1,'','1','','',''),(115,'Polish','option','polish',0,'polish','\'Excellent\',\'Very Good\',\'Good\',\'Fair\'',13,'off','on','on','on','bstock_products',0,'1261226062','1261226062',0,1,'','1','','',''),(114,'Symmetry','option','symmetry',0,'symmetry','\'Excellent\',\'Very Good\',\'Good\',\'Fair\'',14,'off','on','on','on','bstock_products',0,'1261225818','1261225818',0,1,'','1','','',''),(89,'Min Length','text','minlength',10,'minlength','',5,'on','on','on','on','bstock_fields',0,'1260185265','1260185265',0,0,'','','','',''),(113,'Lab','option','lab',0,'lab','\'All Labs\',\'GIA\',\'IGI\',\'HRD\',\'AGS\',\'EGL\',\'IGC\'',2,'off','on','on','on','bstock_products',0,'1261225488','1261225488',0,0,'','1','','',''),(112,'Flourescence','option','flourescence',0,'flourescence','\'None\',\'Faint\',\'Medium\',\'Strong\',\'Very Strong\'',15,'off','on','on','on','bstock_products',0,'1261225411','1261225411',0,1,'','1','','',''),(91,'Validation Type','option','validation_type',0,'validation_type','\"_AGE_\", \"_NUMBER_\", \"_ALPHA_\",\"_ALPHANUM_\",\"_AGE_\",\"_NUMBER_\",\"_CVVNUMBER_\",\"_CREADITCARDNUMBER_\",\"_USERNAME_\",\"_NAME_\",\"_FIRSTNAME_\",\"_MIDDLENAME_\",\"_LASTNAME_\",\"_TITLE_\",\"_POSITION_\",\"_DESIGNATION_\",\"_MOBILE_\",\"_FAX_\",\"_USPHONE_\",\"_ZIP_\",\"_USZIP_\",\"_UKZIP_\",\"_SSN_\",\"_CURRENCY_\",\"_EMAIL_\",\"_URL_\",\"_IP_\",\"_REGION_\",\"_PRODUCTTITLE_\",\"_COMPANYNAME_\",\"_CATEGORYNAME_\",\"_BLOGTITLE_\",\"_BLOGNAME_\",\"_CITY_\",\"_STATE_\",\"_COUNTRY_\",\"_DATE_\"',0,'on','on','on','on','bstock_fields',0,'1260186186','1260186186',0,0,'','','','',''),(93,'Validation error msg.','text','validation_error_msg',250,'validation_error_msg','',0,'on','on','on','off','bstock_fields',0,'1260190273','1260190273',0,0,'','','10','',''),(109,'Size','text','size',25,'size','',6,'off','on','on','on','bstock_products',0,'1261221977','1261221977',0,1,'Please enter Size.','1','','',''),(101,'User Type','checkbox','usertype',0,'usertype','\'User\',\'Customer\'',0,'on','on','on','off','bstock_customers',1,'1260792520','1260792520',0,1,'Type is mandatory.','1','','',''),(102,'Base Profile','option','baseprofile',0,'baseprofile','\'Administrator\',\'Sub-Admin\',\'Customer\'',3,'on','on','on','on','bstock_userprofiles',1,'1260879950','1260879950',1,0,'','1','','_AGE_',''),(103,'basepro','checkbox','basepro',0,'basepro','\'Administrator\',\'Sub-Admin\',\'Customer\'',0,'off','on','on','on','bstock_userprofiles',0,'','1260882082',0,2,'','1','','_AGE_',''),(108,'Shape','option','shape',0,'shape','\'None\',\'Round\',\'Princess\',\'Pear\',\'Marquise\',\'Emerald\',\'Heart\',\'Oval\',\'Cushion\',\'Triangle\'',5,'off','on','on','on','bstock_products',0,'1261221691','1261221691',0,0,'Please select Shape.','1','','',''),(107,'Stone Id','text','stoneid',50,'stoneid','',4,'off','on','on','on','bstock_products',0,'1261220658','1261220658',0,0,'Please enter Stone Id.','1','','',''),(119,'Certificate','file','certificate',1,'certificate','\'pdf\',\'doc\'',24,'off','on','on','on','bstock_products',0,'1261391939','1261391939',0,0,'','1','','',''),(120,'Weight','text','weight',100,'weight','',14,'off','on','on','on','bstock_products',0,'','1261551202',0,1,'Please enter Weight','1','','_AGE_',''),(121,'Purchase Price P/CT (USD)','text','price',100,'price','0',33,'off','on','on','on','bstock_products',0,'','1261658120',0,1,'The price field is required!','1','','_AGE_',''),(123,'Customer First Name','text','customer_first_name',100,'customer_first_name','',0,'on','on','on','on','bstock_orders',0,'1262179288','1262179288',0,0,'','1','','_FIRSTNAME_',''),(124,'Customer Last Name','text','customer_last_name',0,'customer_last_name','',0,'on','on','on','on','bstock_orders',0,'1262254685','1262254685',0,0,'','1','','_LASTNAME_',''),(126,'Total Amount','text','total_amount',0,'total_amount','',0,'on','on','on','on','bstock_orders',0,'1262254860','1262254860',0,0,'','1','','_NUMBER_',''),(127,'extra_comments','textarea','extra_comments',0,'extra_comments','',0,'on','on','on','on','bstock_orders',0,'1262255168','1262255168',0,0,'','1','','',''),(128,'Status','text','status_id',0,'status_id','',0,'on','on','on','on','bstock_orders',0,'1262256696','1262256696',0,0,'','1','','',''),(129,'Created Date','text','created_date',0,'created_date','',0,'on','on','on','on','bstock_orders',0,'1262259238','1262259238',0,0,'','1','','',''),(130,'Modified Date','text','modified_date',0,'modified_date','',0,'on','on','on','on','bstock_orders',0,'1262259264','1262259264',0,0,'','1','','',''),(146,'Carrier','option','carrier_id',0,'carrier_id','\'DHL\', \'Fedex\', \'UPS\', \'USPS\', \'Malca-Amit\', \'Brinks\', \'Lemiur\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263042946','1263042946',0,0,'','1','','',''),(147,'Vessel/Flight No.','text','flight_no',50,'flight_no','',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263043035','1263043035',0,0,'','1','','',''),(149,'Port Of Discharge','option','port_of_discharge',50,'port_of_discharge','\'NA\',\'India\',\'Belgium\',\'Hong Kong\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263043240','1263043240',0,0,'','1','','',''),(150,'Place of Receipt','option','place_of_receipt',0,'place_of_receipt','\'NA\',\'Mumbai\',\'Antwerp\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263044185','1263044185',0,0,'','1','','',''),(125,'Customer Id','text','customer_id',0,'customer_id','',0,'','on','','on','bstock_orders',0,'','',0,0,'','','','',''),(136,'Approved','radio','approved',0,'approved','\'Yes\',\'No\'',0,'on','on','on','on','bstock_customers',0,'1262692775','1262692775',0,1,'','1','','',''),(137,'Plugin Label','text','plugin_label',100,'plugin_label','',3,'off','on','on','on','bstock_plugins',0,'','',0,0,'','','','_NAME_','Plugin name is mandatory field!'),(138,'Description','text','plugin_desc',255,'plugin_desc','',2,'off','on','on','on','bstock_plugins',0,'','',0,0,'','','','',''),(140,'is Active','radio','is_active',0,'is_active','\'on\',\'off\'',1,'off','on','off','on','bstock_plugins',0,'','',0,0,'Is Active is mandatory.','1','','',''),(141,'Folder Name of Plugin','text','folder_name',50,'folder_name','',4,'off','on','on','on','bstock_plugins',0,'','',0,0,'Folder name is required','1','','',''),(142,'Class File Name','text','class_file_name',50,'class_file_name','',5,'off','on','on','on','bstock_plugins',0,'','1262952344',0,0,'Class file name field is mandatory','1','','_AGE_',''),(143,'Order Id','text','order_id',10,'order_id','',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263042701','1263042701',0,0,'','1','','_NUMBER_',''),(144,'Airway Bill No.','text','tracking_number',50,'tracking_number','',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263042803','1263042803',0,0,'','1','','',''),(145,'Date','text','sent_date',25,'sent_date','',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263042851','1263042851',0,0,'','1','','_DATE_',''),(151,'Port of Loading','option','port_of_loading',0,'port_of_loading','\'NA\',\'Mumbai\',\'Antwerp\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263044308','1263044308',0,0,'','1','','',''),(152,'City of Final Destination','option','city_of_destination',0,'city_of_destination','\'Mumbai\',\'Antwerp\',\'New York\',\'Hong Kong\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263044479','1263044479',0,0,'','1','','',''),(153,'Exporter Name','text','exporter_name',250,'exporter_name','',1,'on','on','on','on','bstock_exporters',0,'1263079298','1263079298',0,0,'Exporter name is mandatory.','1','','',''),(154,'Address','textarea','address',0,'address','',2,'on','on','on','on','bstock_exporters',0,'1263079930','1263079930',0,0,'','1','','',''),(155,'Phone 1','text','phone1',50,'phone1','',3,'on','on','on','on','bstock_exporters',0,'1263080046','1263080046',0,0,'Phone 1 is mandatory.','1','','',''),(156,'Phone 2','text','phone2',50,'phone2','',4,'on','on','on','on','bstock_exporters',0,'1263080086','1263080086',0,0,'','1','','',''),(157,'Fax','text','fax',50,'fax','',5,'on','on','on','on','bstock_exporters',0,'1263080106','1263080106',0,0,'','1','','',''),(158,'Exporter\'s Ref','text','reference_no',50,'reference_no','',6,'on','on','on','on','bstock_exporters',0,'1263080161','1263080161',0,0,'Exporters Reference is mandatory.','1','','',''),(159,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',0,'on','on','on','on','bstock_exporters',0,'1263186645','1263186645',0,1,'','1','','',''),(160,'IEC Number','text','iec_no',50,'iec_no','',0,'on','on','on','on','bstock_exporters',0,'1263212262','1263212262',0,0,'','1','','',''),(161,'Country of Origin of goods','option','country_of_origin',0,'country_of_origin','\'NA\',\'India\',\'Belgium\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263273123','1263273123',0,0,'','1','','',''),(162,'Country of Final Destination','option','country_of_destination',0,'country_of_destination','\'NA\',\'India\',\'Belgium\'',0,'on','on','on','on','bstock_ordershippinginfo',0,'1263273314','1263273314',0,0,'','1','','',''),(163,'Payment Terms','option','payment_terms_id',0,'payment_terms_id','\'NA\',\'120 Days D/A\',\'120 Days\',\'90 Days\'',0,'on','on','on','on','bstock_invoices',0,'1263279097','1263279097',0,0,'','1','','',''),(164,'Company Name','text','bank_name',250,'bank_name','',1,'on','on','on','on','bstock_angadia',0,'1263285663','1263285663',0,0,'Company Name is mandatory.','1','','',''),(165,'Address','textarea','bank_address',0,'bank_address','',2,'on','on','on','on','bstock_angadia',0,'1263285730','1263285730',0,0,'','1','','',''),(166,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',0,'on','on','on','on','bstock_angadia',0,'1263286352','1263286352',0,1,'','1','','',''),(167,'Certificate No.','text','certificate_id',50,'certificate_id','',3,'off','on','on','on','bstock_products',0,'1264597094','1264597094',0,0,'','1','','',''),(204,'Price P/CT (AUD)','text','inr_price',10,'inr_price','',37,'off','on','on','on','bstock_products',0,'','1283885750',0,0,'','1','','_AGE_',''),(169,'Serial No','text','serial_no',50,'serial_no','',17,'off','on','on','on','bstock_products',0,'1264597423','1264597423',0,0,'','1','','_NUMBER_',''),(170,'Discount','text','discount',50,'discount','',9,'off','on','on','on','bstock_products',0,'1264597484','1264597484',0,0,'','1','','',''),(175,'Measurement','text','measurement',50,'measurement','',22,'off','on','on','on','bstock_products',0,'1264597893','1264597893',0,0,'','1','','',''),(176,'Depth %','text','depth_percent',50,'depth_percent','',19,'off','on','on','on','bstock_products',0,'1264597980','1264597980',0,0,'','1','','',''),(177,'Table %','text','table_percent',50,'table_percent','',20,'off','on','on','on','bstock_products',0,'1264598000','1264598000',0,0,'','1','','_AGE_',''),(178,'Girdle','text','girdle',250,'girdle','',21,'off','on','on','on','bstock_products',0,'1264598208','1264598208',0,0,'','1','','',''),(179,'Country','option','country',0,'country','\'India\', \'Hong Kong\', \'USA\', \'Belgium\'',10,'off','on','off','on','bstock_products',0,'1264598444','1264598444',0,0,'','1','','',''),(180,'Quantity','text','qty',10,'qty','',23,'off','on','on','on','bstock_products',0,'1264679156','1264679156',0,0,'','1','','',''),(181,'Vendor Name','text','vendor_name',250,'vendor_name','',1,'on','on','on','on','bstock_vendors',0,'1263079298','1263079298',0,0,'Vendor name is mandatory.','1','','',''),(182,'Address','textarea','address',0,'address','',2,'on','on','on','on','bstock_vendors',0,'1263079930','1263079930',0,0,'','1','','',''),(183,'Phone 1','text','phone1',50,'phone1','',3,'on','on','on','on','bstock_vendors',0,'1263080046','1263080046',0,0,'Phone 1 is mandatory.','1','','',''),(184,'Phone 2','text','phone2',50,'phone2','',4,'on','on','on','on','bstock_vendors',0,'1263080086','1263080086',0,0,'','1','','',''),(185,'Fax','text','fax',50,'fax','',5,'on','on','on','on','bstock_vendors',0,'1263080106','1263080106',0,0,'','1','','',''),(186,'Vendorss Ref','text','reference_no',50,'reference_no','',6,'on','on','on','on','bstock_vendors',0,'1263080161','1263080161',0,0,'Vendors Reference is mandatory.','1','','',''),(187,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',0,'on','on','on','on','bstock_vendors',0,'1263186645','1263186645',0,1,'','1','','',''),(188,'IEC Number','text','iec_no',50,'iec_no','',0,'on','on','on','on','bstock_vendors',0,'1263212262','1263212262',0,0,'','1','','',''),(189,'Purchase Price','text','purchase_price',10,'purchase_price','',0,'off','on','on','off','bstock_products',0,'1272310192','1272310192',0,0,'','1','','_NUMBER_',''),(190,'Vendor Name','option','vendorname',0,'vendorname','\'None\',\'Bigg Stock\', \'Vendor 1\', \'Vendor 2\'',0,'off','on','on','on','bstock_products',0,'1272312993','1272312993',0,0,'Please select Vendor Name','1','','',''),(191,'Original Qty (Do not edit)','text','orignal_qty',100,'orignal_qty','0',0,'off','on','off','on','bstock_products',0,'1277444806','1277444806',0,0,'','1','','_NUMBER_',''),(192,'Type of Account','option','transaction_types',10,'transaction_types','\'All\',\'White\',\'Black\'',6,'on','on','on','on','bstock_userprofiles',0,'1277554424','1277554424',0,0,'','1','','_AGE_',''),(193,'Type of Account','option','transaction_types',10,'transaction_types','\'All\',\'White\',\'Black\'',6,'on','on','on','off','bstock_userprofiles',0,'1277554572','1277554572',0,0,'','1','','_AGE_',''),(194,'Divisor','text','divisor',0,'divisor','',0,'on','on','on','on','bstock_userprofiles',0,'1277554900','1277554900',0,0,'','1','','_NUMBER_',''),(195,'','','',0,'','',0,'on','on','on','on','',0,'1277557077','1277557077',0,0,'','1','','_AGE_',''),(196,'Broker Name','text','broker_name',255,'broker_name','',0,'on','on','on','on','bstock_brokers',0,'1281531239','1281531239',0,0,'Broker Name is mandatory.','1','','',''),(197,'Address','textarea','address',250,'address','',3,'on','on','on','on','bstock_brokers',0,'1281549714','1281549714',0,0,'','1','','',''),(198,'Phone 1','text','phone1',25,'phone1','',4,'on','on','on','on','bstock_brokers',0,'1281549897','1281549897',0,0,'','1','','',''),(199,'Phone 2','text','phone2',50,'phone2','',5,'on','on','on','on','bstock_brokers',0,'1281598101','1281598101',0,0,'','1','','',''),(200,'Fax','text','fax',50,'fax','',6,'on','on','on','on','bstock_brokers',0,'1281598269','1281598269',0,0,'','1','','',''),(201,'Reference Name','text','reference_name',255,'reference_name','',7,'on','on','on','on','bstock_brokers',0,'1281598379','1281598379',0,0,'','1','','',''),(202,'Reference Number','text','reference_no',50,'reference_no','',8,'on','on','on','on','bstock_brokers',0,'1281598411','1281598411',0,0,'','1','','',''),(203,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',9,'on','on','on','on','bstock_brokers',0,'1281601690','1281601690',0,1,'','1','','',''),(205,'Conversion Rate','text','conversion_rate',10,'conversion_rate','',36,'off','on','on','on','bstock_products',0,'1283886076','1283886076',0,0,'','1','','_AGE_',''),(207,'Cash Back','text','cash_back',10,'cash_back','',0,'off','on','on','on','bstock_products',0,'1283886145','1283886145',0,0,'','1','','_AGE_',''),(208,'Total Purchase Price (USD)','text','purchase_price_dollar',10,'purchase_price_dollar','',34,'off','on','on','on','bstock_products',0,'1283886171','1283886171',0,0,'','1','','_AGE_',''),(209,'Total Purchase Price (AUD)','text','purchase_price_inr',10,'purchase_price_inr','',38,'off','on','on','on','bstock_products',0,'1283886194','1283886194',0,0,'','1','','_AGE_',''),(210,'Jewelry Category','option','',0,'jwl_category','\'Ring\', \'Bangles\', \'Necklace\', \'Earnings\', \'Bracelet\', \'Nose Ring\', \'Painjan\', \'Bajuband\', \'KamarPata\'',0,'off','on','on','on','bstock_products',0,'','1285164924',0,0,'','1','','_AGE_',''),(213,'Type of Stone','option','typeofstone',0,'typeofstone','\'Loose\',\'Single\'',24,'off','on','on','on','bstock_products',0,'1285661515','1285661515',0,0,'','1','','',''),(214,'Piece Price (AUD)','text','piece_price_inr',10,'piece_price_inr','',26,'off','on','on','on','bstock_products',0,'1285694553','1285694553',0,0,'','1','','',''),(215,'Piece Price (USD)','text','piece_price_dollar',10,'piece_price_dollar','',32,'off','on','on','off','bstock_products',0,'1285694582','1285694582',0,0,'','1','','',''),(216,'Piece Price (USD)','text','piece_price_dollar',10,'piece_price_dollar','',27,'off','on','on','on','bstock_products',0,'1285694721','1285694721',0,0,'','1','','',''),(217,'Aadat','text','aadat',5,'aadat','',0,'off','on','on','on','bstock_products',0,'1286212567','1286212567',0,0,'','1','','',''),(218,'Item Number','text','barcode_number',20,'barcode_number','',1,'off','on','on','on','bstock_products',0,'1287814129','1287814129',0,0,'','1','','',''),(219,'Payment Terms','option','payment_terms_id',0,'payment_terms_id','\'COD\',\'30 Days\',\'60 Days\',\'90 Days\',\'120 Days\'',1,'on','on','on','on','bstock_customers',0,'1290108359','1290108359',0,0,'','1','','',''),(220,'Credit Amount','text','credit_amount',10,'credit_amount','',2,'on','on','on','on','bstock_customers',0,'1290108520','1290108520',0,0,'','1','','',''),(221,'Status','option','status',0,'status','\'In Stock\',\'Sold\',\'Approval Placed\',\'Approval Issued\',\'Approval Issued Partial\',\'Approval Couriered Full\',\'Approval Couriered Partial\',\'Approval Partially Returned\',\'Approval Returned Full\',\'Order Placed\',\'Order Issued\',\'Order Issued Partial\',\'Order Couriered Full\',\'Order Couriered Partial\',\'Order Partially Returned\',\'Order Returned Full\',\'Onhold\'',25,'off','on','on','on','bstock_products',0,'1290109528','1290109528',0,0,'','1','','',''),(222,'Certificate FIle Name','text','certificate_filename',250,'certificate_filename','',25,'on','on','on','on','bstock_products',0,'1291813008','1291813008',0,0,'','1','','',''),(223,'Sale Price P/Ct (AUD)','text','inr_sale_price_with_margin',10,'inr_sale_price_with_margin','',39,'off','on','on','on','bstock_products',0,'1294209813','1294209813',0,0,'','1','','',''),(224,'Sell Qty','text','sellqty',10,'sellqty','',0,'off','on','on','on','bstock_products',0,'1294210047','1294210047',0,0,'','1','','',''),(225,'Length','text','length',5,'length','',16,'off','on','on','on','bstock_products',0,'1294210082','1294210082',0,0,'','1','','',''),(226,'Width','text','width',5,'width','',17,'off','on','on','on','bstock_products',0,'1294210165','1294210165',0,0,'','1','','',''),(227,'Depth','text','depth',5,'depth','',0,'off','on','on','off','bstock_products',0,'1294210185','1294210185',0,0,'','1','','',''),(228,'Height','text','height',5,'height','',18,'off','on','on','on','bstock_products',0,'1294210202','1294210202',0,0,'','1','','',''),(229,'Brokerage','text','brokerage',5,'brokerage','',31,'off','on','on','on','bstock_products',0,'1294210319','1294210319',0,0,'','1','','',''),(230,'Margin','text','margin',5,'margin','',30,'off','on','on','on','bstock_products',0,'1294210341','1294210341',0,0,'','1','','',''),(231,'Current Rap Price P/ct (USD)','text','current_rap_price',10,'current_rap_price','',35,'off','on','on','on','bstock_products',0,'1294210388','1294210388',0,0,'','1','','',''),(232,'Rap Price @ Purchase (Do not edit)','text','rap_price',10,'rap_price','',0,'on','on','on','on','bstock_products',0,'1294210532','1294210532',0,0,'','1','','',''),(233,'Rapnet Uploaded?','radio','is_rapnet_uploaded',2,'is_rapnet_uploaded','\'Yes\',\'No\'',0,'on','on','on','on','bstock_products',0,'1294210659','1294210659',0,1,'','1','','',''),(234,'Special Stone?','radio','is_special_stone',2,'is_special_stone','\'Yes\',\'No\'',0,'on','on','on','on','bstock_products',0,'1294210958','1294210958',0,1,'','1','','',''),(235,'Verified?','radio','verified',2,'verified','\'Yes\',\'No\'',0,'on','on','on','on','bstock_products',0,'1294210981','1294210981',0,1,'','1','','',''),(236,'Description','text','description',250,'description','',0,'on','on','on','on','bstock_products',0,'1294655752','1294655752',0,0,'','1','','',''),(237,'Published','radio','published',0,'published','\'on\',\'off\'',0,'on','on','on','on','bstock_products',0,'1295964195','1295964195',0,1,'','1','','',''),(238,'Approx Sales Piece Price (INR)','text','total_sales_piece_price_with_margin',10,'total_sales_piece_price_with_margin','',40,'on','on','on','on','bstock_products',0,'1297330008','1297330008',0,0,'','1','','',''),(239,'Username','text','user_name',20,'user_name','',1,'on','on','on','on','bstock_systemusers',0,'1298283309','1298283309',0,0,'','1','','',''),(240,'Password','password','password',25,'password','',2,'on','on','on','on','bstock_systemusers',0,'1298283361','1298283361',0,0,'','1','','',''),(241,'Email','text','email',50,'email','',0,'on','on','on','on','bstock_systemusers',0,'1298283406','1298283406',0,0,'','1','','',''),(242,'First Name','text','first_name',50,'first_name','',0,'on','on','on','on','bstock_systemusers',0,'1298283434','1298283434',0,0,'','1','','',''),(243,'Last Name','text','last_name',50,'last_name','',0,'on','on','on','on','bstock_systemusers',0,'1298283474','1298283474',0,0,'','1','','',''),(244,'Company','text','company_name',100,'company_name','',0,'on','on','on','on','bstock_systemusers',0,'1298283499','1298283499',0,0,'','1','','',''),(245,'Office Phone','text','office_phone_number',25,'office_phone_number','',0,'on','on','on','on','bstock_systemusers',0,'1298283523','1298283523',0,0,'','1','','',''),(246,'Mobile No','text','mobile_number',25,'mobile_number','',0,'on','on','on','on','bstock_systemusers',0,'1298283555','1298283555',0,0,'','1','','',''),(247,'Last Login','text','last_login',25,'last_login','',0,'on','on','on','on','bstock_systemusers',0,'1298283614','1298283614',0,0,'','1','','',''),(248,'Active','radio','is_active',2,'is_active','\'on\',\'off\'',10,'on','on','on','on','bstock_systemusers',0,'1298283697','1298283697',0,0,'','1','','',''),(249,'Profile','text','profile_id',10,'profile_id','',0,'on','on','on','on','bstock_systemusers',0,'1298357352','1298357352',0,0,'','1','','',''),(250,'Bank Name','text','bank_name',100,'bank_name','',1,'on','on','on','on','bstock_bank',0,'1306842023','1306842023',0,0,'','1','','',''),(251,'Address','textarea','bank_address',500,'bank_address','',2,'on','on','on','on','bstock_bank',0,'1306842137','1306842137',0,0,'','1','','',''),(252,'Account Number','text','account_number',50,'account_number','',3,'on','on','on','on','bstock_bank',0,'1306842217','1306842217',0,0,'','1','','',''),(253,'Is Active','radio','is_active',0,'is_active','\'on\',\'off\'',4,'on','on','on','on','bstock_bank',0,'1306842251','1306842251',0,1,'','1','','','');

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

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

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


--
-- 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=159 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),(151,0,59,0,0,0,0,0.00,0,2500,0,2750,0,36,25000,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1295424019','','',0,0),(152,0,60,0,0,0,0,0.00,0,2000,0,3600,0,33,0,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1295430281','','',0,0),(153,0,60,0,0,0,0,0.00,0,2600,0,1326,0,19,0,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1295430604','','',0,0),(154,0,60,0,0,0,0,0.00,0,3900,0,1950,0,17,0,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1295430954','','',0,0),(155,0,62,0,0,0,0,0.00,0,1900,0,3420,0,35,0,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1295518137','','',0,0),(156,0,88,0,0,0,0,0.00,0,2100,0,1071,0,0,28,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1296725896','','',0,0),(157,0,90,0,0,0,0,0.00,0,2200,0,1122,0,0,28,0,0,0,0.00,0,0.00,-44102.0000,-441.0200,'','1296728113','','',0,0),(158,0,2,0,0,0,0,0.00,0,1304,0,0,0,0,25,0,0,0,3000.00,0,0.00,-44102.0000,-441.0200,'','1299090554','','',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 & Co.','','','harshad.narvekar@gmail.com','Seepz, Andheri.','1234567','9999999','1111111','India','2222222','on','','1272312433','12345'),(2,'Harshad & Co.','','','harshad.narvekar@gmail.com','PRASAD CHAMBERS,\r\nOPERA HOUSE,MUMBAI 400 004','2224512','1253412','12355312','India','','on','1265801481','1212356342','0388256202'),(3,'Narvekars','','','harshad.narvekar@gmail.com','Avenue\r\nNew Link Rd\r\nMalad East','77772222243','2222333344','989899999','UK','Website','on','1265801481','1265801481','EIC234111'),(4,'Bigg Stock','','','harshad.narvekar@gmail.com','Bigg Stock,\r\nPradeep Niwas,\r\nAndheri East,\r\n400093','9819322550','9833488539','','','','on','1272312515','1272312515','55555');

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

CREATE TABLE `bstock_karigar_metal_info` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `karigar_id` int(11) NOT NULL,
  `metal_weight` int(11) NOT NULL,
  `date_given` varchar(15) NOT NULL,
  `date_given_timestamp` int(11) NOT NULL,
  `remarks` varchar(500) NOT NULL,
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=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,'','','on','',''),(10,'Vendors','bstock_vendors',0,'1','','on','',''),(11,'Brokers','bstock_brokers',0,'1','0','on','',''),(12,'SystemUsers','bstock_systemusers',0,'1','','on','',''),(13,'HomePage','bstock_homepage',11,'1','','on','',''),(14,'Bank','bstock_bank',0,'','','on','','');

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

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

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


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

CREATE TABLE `bstock_options` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `blog_id` int(11) NOT NULL DEFAULT '0',
  `option_name` varchar(64) NOT NULL DEFAULT '',
  `option_value` longtext NOT NULL,
  `autoload` varchar(20) NOT NULL DEFAULT 'yes',
  PRIMARY KEY (`id`,`blog_id`,`option_name`),
  KEY `option_name` (`option_name`)
) ENGINE=MyISAM AUTO_INCREMENT=22 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','M SHAILESH & CO','yes'),(11,0,'company_address','2099, Prasad Chambers, Opera House, Mumbai-400004\r\nTEL: +91 22 28262101 </br> E-mail - atit.dev@gmail.com','yes'),(12,0,'ABN','VAT TIN NO. 24480629851 V w.e.f.8/10/07</br> \r\nCST TIN NO. 26670629851 C w.e.f.8/10/07','yes'),(13,0,'gst','1','yes'),(14,0,'usd_aud_rate','45','yes'),(15,0,'margin','0','yes'),(16,0,'default_so_id','1','yes'),(17,0,'default_po_id','1','yes'),(18,0,'default_jhangad_id','1','yes'),(19,0,'default_stone_id','009','yes'),(20,0,'product_interest_rate','1','yes'),(21,0,'vat','1','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 DEFAULT CHARSET=latin1 COMMENT='Store the billing address of the customer for an order.';

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


--
-- 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','Invoice Created','on','',''),(2,'Order Issued','Order Issued','on','',''),(3,'Order Issued Partial','Order Issued Partial','on','',''),(4,'Order Couriered Full','Order Couriered Full','on','',''),(5,'Order Couriered Partial','Order Couriered Partial','on','',''),(6,'Order Partially Returned','Order Partially Returned','on','',''),(7,'Order Returned Full','Order Returned Full','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.',
  `percent_out` decimal(10,2) 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,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_orderpaymentsdetails`
--

CREATE TABLE `bstock_orderpaymentsdetails` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `pm_token` varchar(255) NOT NULL,
  `pm_timestamp` varchar(255) NOT NULL,
  `pm_correlationid` varchar(255) NOT NULL,
  `pm_feeamt` decimal(10,2) NOT NULL,
  `pm_taxamt` decimal(10,2) NOT NULL,
  `pm_currencycode` varchar(200) NOT NULL,
  `order_id` int(10) NOT NULL,
  `payment_mode` int(2) NOT NULL COMMENT 'It will be a foriegn key from table- bstock_paymenttypes.',
  `pm_transactionid` varchar(255) NOT NULL,
  `pm_transactiontype` varchar(255) NOT NULL,
  `pm_accountholdername` varchar(500) NOT NULL,
  `pm_card_expiry` int(10) NOT NULL,
  `pm_transactionamt` decimal(10,2) NOT NULL,
  `pm_paymentstatus` varchar(255) 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_orderpaymentsdetails`
--


--
-- 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 DEFAULT CHARSET=latin1 COMMENT='Store the tax related information for every order.';

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


--
-- 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,
  `vat` decimal(10,3) NOT NULL,
  `currency` varchar(10) 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,
  `effect_to_physical_stock` enum('1','0') NOT NULL,
  `effect_to_debtors` enum('1','0') NOT NULL,
  `register_id` int(8) NOT NULL,
  `department_id` int(8) 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.',
  `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 DEFAULT CHARSET=latin1 COMMENT='Store the shipping address of the customer for an order.';

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


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

CREATE TABLE `bstock_ordershippinginfo` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `order_id` int(8) unsigned zerofill 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=32 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,00000001,'','','','','','','','',1,'','1307004102','1307004102','',''),(2,00000001,'','','Courier','','','','','',1,'','1307689391','1307689391','',''),(3,00000001,'','','Courier','','','','','',1,'','1309522113','1309522113','',''),(4,00000001,'','','Courier','','','','','',1,'','1309522349','1309522349','',''),(5,00000001,'','','Courier','','','','','',1,'','1309522413','1309522413','',''),(6,00000001,'','','Courier','','','','','',1,'','1309522441','1309522441','',''),(7,00000004,'','','Courier','','','','','',1,'','1311761071','1311761071','',''),(8,00000007,'','','Courier','','','','','',1,'','1313568042','1313568042','',''),(9,00000004,'','','','','','','','',1,'','1314620262','1314620262','',''),(10,00000004,'','','','','','','','',1,'','1314620399','1314620399','',''),(11,00000005,'','','','','','','','',1,'','1314622585','1314622585','',''),(12,00000008,'','','','','','','','',1,'','1314623231','1314623231','',''),(13,00000009,'','','','','','','','',1,'','1314624215','1314624215','',''),(14,00000009,'','','','','','','','',1,'','1314624231','1314624231','',''),(15,00000009,'','','','','','','','',1,'','1314624265','1314624265','',''),(16,00000012,'','','','','','','','',1,'','1314697867','1314697867','',''),(17,00000012,'','','','','','','','',1,'','1314701922','1314701922','',''),(18,00000012,'','','','','','','','',1,'','1314702014','1314702014','',''),(19,00000012,'','','','','','','','',1,'','1314702535','1314702535','',''),(20,00000012,'','','','','','','','',1,'','1314703103','1314703103','',''),(21,00000012,'','','','','','','','',1,'','1314703555','1314703555','',''),(22,00000012,'','','','','','','','',1,'','1314703577','1314703577','',''),(23,00000012,'','','','','','','','',1,'','1314703605','1314703605','',''),(24,00000012,'','','','','','','','',1,'','1314703646','1314703646','',''),(25,00000012,'','','','','','','','',1,'','1314703698','1314703698','',''),(26,00000012,'','','','','','','','',1,'','1314703715','1314703715','',''),(27,00000012,'','','','','','','','',1,'','1314704098','1314704098','',''),(28,00000012,'','','','','','','','',1,'','1314704150','1314704150','',''),(29,00000012,'','','','','','','','',1,'','1314704248','1314704248','',''),(30,00000019,'','','','','','','','',1,'','1316170895','1316170895','',''),(31,00000005,'','','','','','','','',1,'','1317286685','1317286685','','');

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

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

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

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

--
-- Table structure for table `bstock_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 AUTO_INCREMENT=41 DEFAULT CHARSET=latin1 COMMENT='parcel life cycle in table structure';

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

INSERT INTO `bstock_parcel_history` VALUES (1,7,1,0,'In Stock','1289472642'),(2,6,1,0,'Deleted','1289476317'),(3,7,1,0,'Deleted','1289476654'),(4,2,1,0,'Deleted','1289476749'),(5,1,4,1,'In Stock','1289555784'),(6,1,4,1,'In Stock','1289556853'),(7,1,4,1,'In Stock','1289557266'),(8,1,4,1,'In Stock','1289557329'),(9,1,4,1,'In Stock','1289560262'),(10,1,4,1,'In Stock','1289560439'),(11,1,4,1,'In Stock','1289560465'),(12,1,4,1,'In Stock','1289560648'),(13,1,4,1,'In Stock','1289560757'),(14,1,4,1,'In Stock','1289560811'),(15,1,4,1,'In Stock','1289560824'),(16,1,4,1,'In Stock','1289560936'),(17,1,4,1,'In Stock','1289560944'),(18,1,4,1,'In Stock','1289561712'),(19,5,4,1,'In Stock','1289562937'),(20,5,4,1,'In Stock','1289562989'),(21,5,4,1,'In Stock','1289563953'),(22,1,4,1,'In Stock','1289564388'),(23,5,4,1,'In Stock','1289564399'),(24,5,4,1,'In Stock','1289564475'),(25,5,4,1,'In Stock','1289565111'),(26,5,4,1,'In Stock','1289565112'),(27,8,1,0,'In Stock','1289642988'),(28,9,1,0,'In Stock','1290580299'),(29,10,1,0,'In Stock','1290580992'),(30,11,1,0,'In Stock','1290581102'),(31,12,1,0,'In Stock','1290581196'),(32,9,1,0,'Deleted','1291045602'),(33,10,1,0,'Deleted','1291045609'),(34,13,1,0,'In Stock','1291182383'),(35,1,1,0,'In Stock','1294149791'),(36,1,4,1,'In Stock','1294149912'),(37,2,1,0,'In Stock','1296213526'),(38,2,1,0,'Deleted','1296213688'),(39,1,1,0,'Deleted','1297090163'),(40,3,1,0,'In Stock','1313575318');

--
-- 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,'Harshad','','','harshad.narvekar@gmail.com','Seepz, Andheri.','1234567','9999999','1111111','India','2222222','on','','1272312433','12345'),(2,'Vishal','','','harshad.narvekar@gmail.com','PRASAD CHAMBERS,\r\nOPERA HOUSE,MUMBAI 400 004','2224512','1253412','12355312','India','','on','1265801481','1212356342','0388256202'),(3,'Harshad-Vishal','','','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_businessloans`
--

CREATE TABLE `bstock_pl_businessloans` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `party_name` varchar(500) NOT NULL COMMENT 'Loan taken from or given to.',
  `loan_amount` decimal(10,2) NOT NULL,
  `rate_of_interest` decimal(10,2) NOT NULL,
  `start_date` varchar(20) NOT NULL,
  `end_date` varchar(20) NOT NULL,
  `no_of_days` int(10) NOT NULL,
  `remarks` varchar(500) NOT NULL,
  `entry_type` enum('Debit','Credit') NOT NULL COMMENT 'Debit means loan given & credit means loan taken.',
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores loans taken or given for the business.';

--
-- Dumping data for table `bstock_pl_businessloans`
--


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

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


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

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


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

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


--
-- 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 DEFAULT CHARSET=latin1 COMMENT='Store the products in the system.';

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


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

CREATE TABLE `bstock_pl_expenses` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `dce_id` int(10) NOT NULL COMMENT 'ID of record in bstock_pl_dailycashentries table.',
  `expense_type_id` int(10) NOT NULL COMMENT 'Category to which the expense belongs.',
  `payment_mode` varchar(25) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `remarks` varchar(500) NOT NULL,
  `entry_date` varchar(15) NOT NULL COMMENT 'transaction date',
  `created_date` varchar(15) NOT NULL,
  `modified_date` varchar(15) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=latin1 COMMENT='Stores daily expenses.';

--
-- Dumping data for table `bstock_pl_expenses`
--


--
-- Table structure for table `bstock_pl_expenses_categories`
--

CREATE TABLE `bstock_pl_expenses_categories` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `category_name` varchar(250) NOT NULL,
  `category_desc` varchar(500) NOT NULL,
  `parent_id` int(10) NOT NULL COMMENT 'If this is a sub-category, then this will store the parent category''s id, else it will contain 0 for a parent category.',
  `expense_type` enum('Direct','In Direct') NOT NULL DEFAULT 'In Direct',
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(15) NOT NULL,
  `modified_date` varchar(15) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=22 DEFAULT CHARSET=latin1 COMMENT='Categories of Expenses';

--
-- Dumping data for table `bstock_pl_expenses_categories`
--

INSERT INTO `bstock_pl_expenses_categories` VALUES (1,'Salaries','Salaries',0,'In Direct','on','',''),(2,'Travel','Travel',0,'In Direct','on','',''),(3,'Rent','Rent',0,'In Direct','on','',''),(4,'Advertising','Advertising',0,'In Direct','on','',''),(5,'Professional Fees','Professional Fees',0,'In Direct','on','',''),(6,'Bank Charges and Fees','Bank Charges and Fees',0,'In Direct','on','',''),(7,'Supplies','All types of daily supplies',0,'In Direct','on','',''),(8,'Repairs & Maintenance','Repairs & Maintenance in office, building, etc.',0,'In Direct','on','',''),(9,'Entertainment','Meals, gifts, events, etc.',0,'In Direct','on','',''),(10,'Utility Bills','Electricity, Water, etc.',0,'In Direct','on','',''),(11,'Telephone','Telephone',0,'In Direct','on','',''),(12,'Internet Access & Services','Internet Access & Services',0,'In Direct','on','',''),(13,'Taxes','Taxes',0,'In Direct','on','',''),(14,'Donations','Donations',0,'In Direct','on','',''),(15,'Penalties & Fines','Penalties & Fines',0,'In Direct','on','',''),(16,'Interest','Interests paid',0,'In Direct','on','',''),(17,'Software','Software subscriptions, etc.',0,'In Direct','on','',''),(18,'Depreciation','Depreciation',0,'In Direct','on','',''),(19,'Furniture and equipment','Furniture and equipment',0,'In Direct','on','',''),(20,'Other','Other expenses',0,'In Direct','on','',''),(21,'Wages','Wages',0,'Direct','on','','');

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


--
-- 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_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=48 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_packet_master`
--

CREATE TABLE `bstock_pl_packet_master` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `name` varchar(500) NOT NULL,
  `shape` enum('ROUND','PRINCESS','PEAR','EMERALD','MARQUISE','HEART','OVAL','CUSHION','TRIANGLE','ASCHER','RADIANT','CHOKHI','TAPPERS','BAGUETTES','PEARLS','COLOR STONES') NOT NULL,
  `shade` enum('ANY','White','TTLC','LC','PLC') NOT NULL,
  `clarity` enum('ANY','IF','VVS1','VVS2','VS1','VS2','SI1','SI2','SI3','I1','I2','I3') NOT NULL,
  `charni_from` enum('ANY','+2','+4','+6','+8','+10','+11','+14','-2','-4','-6','-8','-10','-11','-14') NOT NULL,
  `charni_to` enum('ANY','+2','+4','+6','+8','+10','+11','+14','-2','-4','-6','-8','-10','-11','-14') NOT NULL,
  `comments` 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=17 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_packet_master`
--

INSERT INTO `bstock_pl_packet_master` VALUES (1,'Delux34','PEAR','White','IF','+2','+4','','on',1263279097,1263279096);

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

CREATE TABLE `bstock_pl_parcel_mapping` (
  `id` int(8) NOT NULL AUTO_INCREMENT,
  `parent_product_id` int(8) NOT NULL,
  `child_product_id` int(8) 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=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_parcel_mapping`
--

INSERT INTO `bstock_pl_parcel_mapping` VALUES (1,0,0,'',0,0);

--
-- 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_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 ',
  `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,
  `partner_id` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

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

INSERT INTO `bstock_pl_poitems` VALUES (1,1,1,2,0,0.00,0,0.00,0.00,0,25.00,25.00,'comments',1,'on',1267005563,1267005563,0,0),(2,1,2,2,0,0.00,0,0.00,0.00,0,25.00,25.00,'comments',1,'on',1267005563,1267005563,0,0),(3,2,3,2,0,0.00,0,0.00,0.00,0,20.00,20.00,'comments',1,'on',1267005563,1267005563,0,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 AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COMMENT='Record the notifications sent to each customer by the system';

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

INSERT INTO `bstock_pl_ponotificationhistory` VALUES (1,1,'','','1322727155',1),(2,2,'','','1322727200',1);

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

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


--
-- 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=15 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,'1318663160','1318663160',1),(2,1,0,'1318663758','1318663758',1),(3,1,0,'1318664041','1318664041',1),(4,2,0,'1318665172','1318665172',1),(5,1,0,'1319530024','1319530024',1),(6,2,0,'1319530296','1319530296',1),(7,3,0,'1319531971','1319531971',1),(8,3,0,'1319532009','1319532009',1),(9,3,0,'1319532097','1319532097',1),(10,4,0,'1320047955','1320047955',1),(11,1,0,'1320048580','1320048580',1),(12,2,0,'1320234974','1320234974',1),(13,1,0,'1322727155','1322727155',1),(14,2,0,'1322727200','1322727200',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 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`
--


--
-- Table structure for table `bstock_pl_purchaseorder`
--

CREATE TABLE `bstock_pl_purchaseorder` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_number` varchar(500) NOT NULL,
  `contact_person` varchar(255) NOT NULL,
  `carrier_id` int(10) NOT NULL COMMENT 'Foriegn key - primary from carrier_id table',
  `assigned_to_id` int(10) NOT NULL COMMENT 'Foriegn key - primary from bstock_systemusers table',
  `vendor_id` int(10) NOT NULL COMMENT 'Foriegn key - primary from bstock_vendors table',
  `broker_id` int(10) NOT NULL COMMENT 'Foriegn key - primary from bstock_brokers table',
  `broker_id_1` int(11) NOT NULL,
  `brokerage_1` decimal(10,2) NOT NULL,
  `tracking_no` varchar(255) NOT NULL COMMENT 'Foriegn key - primary from bstock_postatus table',
  `postatus_id` int(10) NOT NULL COMMENT 'Foriegn key - primary from payment_terms_id table',
  `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.',
  `currency` varchar(10) NOT NULL COMMENT 'Could be USD or INR',
  `dollar_rate` decimal(10,2) NOT NULL,
  `type_of_tax` enum('individual','group') NOT NULL,
  `vat` decimal(10,3) NOT NULL,
  `subtotal` decimal(10,2) NOT NULL,
  `packaging` int(11) NOT NULL,
  `octroi` int(11) NOT NULL,
  `exciseduty` int(11) NOT NULL,
  `brokerage` decimal(10,2) NOT NULL,
  `net_total` decimal(10,2) NOT NULL,
  `subtotal_usd` decimal(10,2) NOT NULL,
  `net_total_usd` decimal(10,2) NOT NULL,
  `adjustment` decimal(10,2) NOT NULL,
  `balance` decimal(10,2) NOT NULL COMMENT 'Balance payment for this order.',
  `terms_condition` varchar(255) NOT NULL,
  `comments_po` varchar(1000) NOT NULL,
  `transaction_type_id` int(10) NOT NULL DEFAULT '1',
  `effect_to_physical_stock` enum('1','0') NOT NULL COMMENT 'If this is a dummy transaction, then this field is set to 0,means do not effect to physical stock.',
  `effect_to_debtors` enum('1','0') NOT NULL COMMENT 'If this is a dummy transaction, then this field is set to 0,means do not effect to debtors.',
  `department_id` int(8) NOT NULL COMMENT 'Primary key of departments table.',
  `register_id` int(8) NOT NULL COMMENT 'Primary key of registers table. M. Shailesh, MS Jewel or Cash.',
  `is_active` enum('on','off') NOT NULL,
  `transaction_date` int(11) NOT NULL COMMENT 'Date when the transaction took place.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  `due_date` int(11) NOT NULL COMMENT 'Will store the due date of payment for this PO. Incase of COD, initially this field will contain blank.',
  `type` enum('po') NOT NULL,
  `angadia_id` int(10) NOT NULL COMMENT 'ID of the Angadia company.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_purchaseorder`
--

INSERT INTO `bstock_pl_purchaseorder` VALUES (1,'1','',0,0,2,0,0,0.00,'',4,1,'','USD',45.00,'individual',0.000,2193750.00,0,0,0,0.00,2193750.00,48750.00,48750.00,0.00,2193750.00,'terms and conditions comments','',3,'1','1',1,3,'on',1322727155,1322727155,1322727155,1322727155,'po',0),(2,'2','',0,0,2,0,0,0.00,'',4,1,'','USD',45.00,'individual',0.000,1440000.00,0,0,0,0.00,1440000.00,32000.00,32000.00,0.00,1440000.00,'terms and conditions comments','',3,'1','1',1,3,'on',1322727200,1322727200,1322727200,1322727200,'po',0);

--
-- Table structure for table `bstock_pl_reportadvfilters`
--

CREATE TABLE `bstock_pl_reportadvfilters` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `report_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_reports table.',
  `query_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_selectquery table. This may not be used.',
  `column_index` int(11) NOT NULL COMMENT 'Contains the serial number of filters (fields) selected for a particular report. Stores in format like 0,1,2,3 & so on.',
  `column_name` varchar(250) NOT NULL COMMENT 'Column name which is to be included in the filter.',
  `comparator` varchar(10) NOT NULL COMMENT 'Comparator i.e. equals (e), not equals (n), contains (c), etc.',
  `value` varchar(200) NOT NULL COMMENT 'Value to be matched that is entered by the user while creating the filter.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1070 DEFAULT CHARSET=latin1 COMMENT='This table contains all the filters except the date filter.';

--
-- Dumping data for table `bstock_pl_reportadvfilters`
--

INSERT INTO `bstock_pl_reportadvfilters` VALUES (1,1,0,0,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_Contact_Name:contact_person:V','c','a',0,0),(2,1,0,1,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_Subtotal:subtotal:V','g','200',0,0),(3,1,0,2,'bstock_pl_purchaseorder:type_of_tax:PurchaseOrder_Type_Of_Tax:type_of_tax:V','e','individual',0,0),(4,1,0,3,'bstock_pl_purchaseorder:packaging:PurchaseOrder_Packaging:packaging:V','e','',0,0),(16,7,0,1,'','','',1276586668,1276586668),(17,7,0,2,'','','',1276586668,1276586668),(18,7,0,3,'','','',1276586668,1276586668),(15,7,0,0,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I','g','800',1276586668,1276586668),(19,7,0,4,'','','',1276586668,1276586668),(31,10,0,1,'','','',1276591968,1276591968),(32,10,0,2,'','','',1276591968,1276591968),(28,9,0,3,'','','',1276590740,1276590740),(29,9,0,4,'','','',1276590740,1276590740),(26,9,0,1,'','','',1276590740,1276590740),(27,9,0,2,'','','',1276590740,1276590740),(30,10,0,0,'bstock_pl_purchaseorder:postatus_id:PurchaseOrder_postatus_id:postatus_id:I','e','1',1276591968,1276591968),(25,9,0,0,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V','c','a',1276590740,1276590740),(33,10,0,3,'','','',1276591968,1276591968),(34,10,0,4,'','','',1276591968,1276591968),(35,11,0,0,'','','',1276593750,1276593750),(36,11,0,1,'','','',1276593751,1276593751),(37,11,0,2,'','','',1276593752,1276593752),(38,11,0,3,'','','',1276593752,1276593752),(39,11,0,4,'','','',1276593752,1276593752),(40,12,0,0,'','','',1276598766,1276598766),(41,12,0,1,'','','',1276598767,1276598767),(42,12,0,2,'','','',1276598768,1276598768),(43,12,0,3,'','','',1276598768,1276598768),(44,12,0,4,'','','',1276598768,1276598768),(45,13,0,0,'','','',1276608024,1276608024),(46,13,0,1,'','','',1276608025,1276608025),(47,13,0,2,'','','',1276608025,1276608025),(48,13,0,3,'','','',1276608025,1276608025),(49,13,0,4,'','','',1276608025,1276608025),(50,14,0,0,'','','',1276608490,1276608490),(51,14,0,1,'','','',1276608490,1276608490),(52,14,0,2,'','','',1276608490,1276608490),(53,14,0,3,'','','',1276608490,1276608490),(54,14,0,4,'','','',1276608490,1276608490),(55,15,0,0,'','','',1276684109,1276684109),(56,15,0,1,'','','',1276684109,1276684109),(57,15,0,2,'','','',1276684109,1276684109),(58,15,0,3,'','','',1276684109,1276684109),(59,15,0,4,'','','',1276684109,1276684109),(60,16,0,0,'','','',1276687488,1276687488),(61,16,0,1,'','','',1276687488,1276687488),(62,16,0,2,'','','',1276687488,1276687488),(63,16,0,3,'','','',1276687488,1276687488),(64,16,0,4,'','','',1276687488,1276687488),(65,17,0,0,'','','',1276691935,1276691935),(66,17,0,1,'','','',1276691935,1276691935),(67,17,0,2,'','','',1276691935,1276691935),(68,17,0,3,'','','',1276691935,1276691935),(69,17,0,4,'','','',1276691935,1276691935),(70,18,0,0,'','','',1276692775,1276692775),(71,18,0,1,'','','',1276692775,1276692775),(72,18,0,2,'','','',1276692776,1276692776),(73,18,0,3,'','','',1276692776,1276692776),(74,18,0,4,'','','',1276692776,1276692776),(75,19,0,0,'','','',1276693256,1276693256),(76,19,0,1,'','','',1276693256,1276693256),(77,19,0,2,'','','',1276693256,1276693256),(78,19,0,3,'','','',1276693256,1276693256),(79,19,0,4,'','','',1276693256,1276693256),(80,20,0,0,'','','',1276693459,1276693459),(81,20,0,1,'','','',1276693459,1276693459),(82,20,0,2,'','','',1276693459,1276693459),(83,20,0,3,'','','',1276693459,1276693459),(84,20,0,4,'','','',1276693459,1276693459),(85,21,0,0,'','','',1276693750,1276693750),(86,21,0,1,'','','',1276693750,1276693750),(87,21,0,2,'','','',1276693750,1276693750),(88,21,0,3,'','','',1276693750,1276693750),(89,21,0,4,'','','',1276693750,1276693750),(302,24,0,2,'','','',1278674856,1278674856),(303,24,0,3,'','','',1278674856,1278674856),(105,25,0,0,'','','',1276767496,1276767496),(106,25,0,1,'','','',1276767496,1276767496),(107,25,0,2,'','','',1276767496,1276767496),(108,25,0,3,'','','',1276767496,1276767496),(109,25,0,4,'','','',1276767496,1276767496),(110,26,0,0,'','','',1276773451,1276773451),(111,26,0,1,'','','',1276773452,1276773452),(112,26,0,2,'','','',1276773454,1276773454),(113,26,0,3,'','','',1276773454,1276773454),(114,26,0,4,'','','',1276773454,1276773454),(115,27,0,0,'','','',1276775242,1276775242),(116,27,0,1,'','','',1276775242,1276775242),(117,27,0,2,'','','',1276775242,1276775242),(118,27,0,3,'','','',1276775242,1276775242),(119,27,0,4,'','','',1276775242,1276775242),(120,28,0,0,'','','',1276780009,1276780009),(121,28,0,1,'','','',1276780009,1276780009),(122,28,0,2,'','','',1276780009,1276780009),(123,28,0,3,'','','',1276780009,1276780009),(124,28,0,4,'','','',1276780009,1276780009),(239,29,0,4,'','','',1277299809,1277299809),(238,29,0,3,'','','',1277299809,1277299809),(237,29,0,2,'','','',1277299809,1277299809),(236,29,0,1,'','','',1277299809,1277299809),(235,29,0,0,'','','',1277299809,1277299809),(155,30,0,0,'','','',1277189889,1277189889),(156,30,0,1,'','','',1277189889,1277189889),(157,30,0,2,'','','',1277189889,1277189889),(158,30,0,3,'','','',1277189889,1277189889),(159,30,0,4,'','','',1277189889,1277189889),(160,31,0,0,'','','',1277199613,1277199613),(161,31,0,1,'','','',1277199614,1277199614),(162,31,0,2,'','','',1277199614,1277199614),(163,31,0,3,'','','',1277199614,1277199614),(164,31,0,4,'','','',1277199614,1277199614),(174,32,0,4,'','','',1277202389,1277202389),(173,32,0,3,'','','',1277202389,1277202389),(172,32,0,2,'','','',1277202389,1277202389),(171,32,0,1,'','','',1277202389,1277202389),(170,32,0,0,'','','',1277202389,1277202389),(209,33,0,4,'','','',1277292445,1277292445),(208,33,0,3,'','','',1277292445,1277292445),(207,33,0,2,'','','',1277292445,1277292445),(206,33,0,1,'','','',1277292445,1277292445),(205,33,0,0,'','','',1277292445,1277292445),(210,34,0,0,'','','',1277294934,1277294934),(211,34,0,1,'','','',1277294934,1277294934),(212,34,0,2,'','','',1277294934,1277294934),(213,34,0,3,'','','',1277294934,1277294934),(214,34,0,4,'','','',1277294934,1277294934),(215,35,0,0,'','','',1277295055,1277295055),(216,35,0,1,'','','',1277295055,1277295055),(217,35,0,2,'','','',1277295055,1277295055),(218,35,0,3,'','','',1277295055,1277295055),(219,35,0,4,'','','',1277295055,1277295055),(229,36,0,4,'','','',1277297631,1277297631),(228,36,0,3,'','','',1277297631,1277297631),(227,36,0,2,'','','',1277297631,1277297631),(226,36,0,1,'','','',1277297631,1277297631),(225,36,0,0,'','','',1277297631,1277297631),(230,37,0,0,'','','',1277297943,1277297943),(231,37,0,1,'','','',1277297943,1277297943),(232,37,0,2,'','','',1277297943,1277297943),(233,37,0,3,'','','',1277297943,1277297943),(234,37,0,4,'','','',1277297943,1277297943),(254,38,0,4,'','','',1277302290,1277302290),(253,38,0,3,'','','',1277302290,1277302290),(252,38,0,2,'','','',1277302290,1277302290),(251,38,0,1,'','','',1277302290,1277302290),(250,38,0,0,'','','',1277302290,1277302290),(255,39,0,0,'','','',1277373932,1277373932),(256,39,0,1,'','','',1277373932,1277373932),(257,39,0,2,'','','',1277373932,1277373932),(258,39,0,3,'','','',1277373932,1277373932),(259,39,0,4,'','','',1277373932,1277373932),(260,40,0,0,'','','',1277803475,1277803475),(261,40,0,1,'','','',1277803475,1277803475),(262,40,0,2,'','','',1277803475,1277803475),(263,40,0,3,'','','',1277803475,1277803475),(264,40,0,4,'','','',1277803475,1277803475),(304,24,0,4,'','','',1278674856,1278674856),(301,24,0,1,'','','',1278674856,1278674856),(300,24,0,0,'','','',1278674856,1278674856),(653,22,0,3,'','','',1285053610,1285053610),(652,22,0,2,'','','',1285053610,1285053610),(704,41,0,4,'','','',1285734994,1285734994),(703,41,0,3,'','','',1285734994,1285734994),(702,41,0,2,'','','',1285734994,1285734994),(701,41,0,1,'','','',1285734994,1285734994),(385,42,0,0,'','','',1280208747,1280208747),(386,42,0,1,'','','',1280208747,1280208747),(387,42,0,2,'','','',1280208747,1280208747),(388,42,0,3,'','','',1280208747,1280208747),(389,42,0,4,'','','',1280208747,1280208747),(399,43,0,4,'','','',1280210777,1280210777),(398,43,0,3,'','','',1280210777,1280210777),(397,43,0,2,'','','',1280210777,1280210777),(396,43,0,1,'','','',1280210777,1280210777),(395,43,0,0,'','','',1280210777,1280210777),(406,44,0,1,'','','',1280212568,1280212568),(405,44,0,0,'bstock_exporters:exporter_name:DetailedSalesReports_exporter_name:exporter_name:V','e','Vishal & Co.',1280212568,1280212568),(407,44,0,2,'','','',1280212568,1280212568),(408,44,0,3,'','','',1280212568,1280212568),(409,44,0,4,'','','',1280212568,1280212568),(410,45,0,0,'bstock_products:sellqty:PurchaseOrder_sellqty:sellqty:I','e','0',1280213104,1280213104),(411,45,0,1,'','','',1280213104,1280213104),(412,45,0,2,'','','',1280213104,1280213104),(413,45,0,3,'','','',1280213104,1280213104),(414,45,0,4,'','','',1280213104,1280213104),(634,46,0,4,'','','',1285048636,1285048636),(633,46,0,3,'','','',1285048636,1285048636),(632,46,0,2,'','','',1285048636,1285048636),(631,46,0,1,'','','',1285048636,1285048636),(630,46,0,0,'','','',1285048636,1285048636),(791,23,0,1,'bstock_orders:is_active:SalesOrder_is_active:is_active:V','e','on',1306316963,1306316963),(790,23,0,0,'bstock_orderstatustypes:status:SalesOrder_status:status:V','e','Unpaid',1306316963,1306316963),(700,41,0,0,'','','',1285734994,1285734994),(484,47,0,4,'','','',1280293802,1280293802),(483,47,0,3,'','','',1280293802,1280293802),(482,47,0,2,'','','',1280293802,1280293802),(481,47,0,1,'','','',1280293802,1280293802),(480,47,0,0,'','','',1280293802,1280293802),(499,48,0,4,'','','',1281116408,1281116408),(498,48,0,3,'','','',1281116408,1281116408),(497,48,0,2,'','','',1281116408,1281116408),(496,48,0,1,'','','',1281116408,1281116408),(495,48,0,0,'','','',1281116408,1281116408),(651,22,0,1,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','n','Delivered',1285053610,1285053610),(580,49,0,0,'bstock_orderstatustypes:status:SalesOrder_status:status:V','n','Paid',1283874192,1283874192),(603,50,0,3,'','','',1283892330,1283892330),(584,49,0,4,'','','',1283874192,1283874192),(582,49,0,2,'','','',1283874192,1283874192),(583,49,0,3,'','','',1283874192,1283874192),(581,49,0,1,'','','',1283874192,1283874192),(601,50,0,1,'','','',1283892330,1283892330),(602,50,0,2,'','','',1283892330,1283892330),(590,51,0,0,'','','',1283892221,1283892221),(591,51,0,1,'','','',1283892221,1283892221),(592,51,0,2,'','','',1283892221,1283892221),(593,51,0,3,'','','',1283892221,1283892221),(594,51,0,4,'','','',1283892221,1283892221),(600,50,0,0,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','n','Paid',1283892330,1283892330),(604,50,0,4,'','','',1283892330,1283892330),(605,52,0,0,'','','',1283895447,1283895447),(606,52,0,1,'','','',1283895447,1283895447),(607,52,0,2,'','','',1283895447,1283895447),(608,52,0,3,'','','',1283895447,1283895447),(609,52,0,4,'','','',1283895447,1283895447),(621,53,0,1,'','','',1283898236,1283898236),(622,53,0,2,'','','',1283898236,1283898236),(620,53,0,0,'bstock_jwl_labour_info:status:KarigarReports_status:status:V','n','Paid',1283898236,1283898236),(623,53,0,3,'','','',1283898236,1283898236),(624,53,0,4,'','','',1283898236,1283898236),(724,54,0,4,'','','',1294057547,1294057547),(723,54,0,3,'','','',1294057547,1294057547),(722,54,0,2,'','','',1294057547,1294057547),(721,54,0,1,'','','',1294057547,1294057547),(720,54,0,0,'','','',1294057547,1294057547),(650,22,0,0,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','n','Paid',1285053610,1285053610),(654,22,0,4,'','','',1285053610,1285053610),(719,55,0,4,'','','',1294044165,1294044165),(718,55,0,3,'','','',1294044165,1294044165),(717,55,0,2,'','','',1294044165,1294044165),(716,55,0,1,'','','',1294044165,1294044165),(715,55,0,0,'','','',1294044165,1294044165),(694,56,0,4,'','','',1285678547,1285678547),(693,56,0,3,'','','',1285678547,1285678547),(692,56,0,2,'','','',1285678547,1285678547),(690,56,0,0,'','','',1285678547,1285678547),(691,56,0,1,'','','',1285678547,1285678547),(939,61,0,4,'','','',1306400343,1306400343),(969,57,0,4,'','','',1306404640,1306404640),(968,57,0,3,'','','',1306404640,1306404640),(1039,58,0,4,'','','',1306470982,1306470982),(1038,58,0,3,'','','',1306470982,1306470982),(1037,58,0,2,'','','',1306470982,1306470982),(1061,59,0,1,'','','',1306746624,1306746624),(1062,59,0,2,'','','',1306746624,1306746624),(1069,60,0,4,'','','',1311837164,1311837164),(1068,60,0,3,'','','',1311837164,1311837164),(1067,60,0,2,'','','',1311837164,1311837164),(1066,60,0,1,'','','',1311837164,1311837164),(1065,60,0,0,'','','',1311837164,1311837164),(937,61,0,2,'','','',1306400343,1306400343),(938,61,0,3,'','','',1306400343,1306400343),(1036,58,0,1,'','','',1306470982,1306470982),(1054,62,0,4,'','','',1306473428,1306473428),(1053,62,0,3,'','','',1306473428,1306473428),(1052,62,0,2,'','','',1306473428,1306473428),(1051,62,0,1,'','','',1306473428,1306473428),(1050,62,0,0,'','','',1306473428,1306473428),(1035,58,0,0,'bstock_orders:is_active:SalesOrder_is_active:is_active:V','e','on',1306470982,1306470982),(936,61,0,1,'','','',1306400343,1306400343),(967,57,0,2,'','','',1306404640,1306404640),(1063,59,0,3,'','','',1306746624,1306746624),(1064,59,0,4,'','','',1306746624,1306746624),(792,23,0,2,'','','',1306316963,1306316963),(793,23,0,3,'','','',1306316963,1306316963),(794,23,0,4,'','','',1306316963,1306316963),(964,63,0,4,'','','',1306404365,1306404365),(963,63,0,3,'','','',1306404365,1306404365),(960,63,0,0,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','n','Paid',1306404365,1306404365),(1049,64,0,4,'','','',1306471158,1306471158),(966,57,0,1,'bstock_pl_purchaseorder:is_active:PurchaseOrder_is_active:is_active:V','e','on',1306404640,1306404640),(965,57,0,0,'','','',1306404640,1306404640),(1048,64,0,3,'','','',1306471158,1306471158),(1047,64,0,2,'','','',1306471158,1306471158),(1046,64,0,1,'bstock_orders:is_active:SalesOrder_is_active:is_active:V','e','on',1306471158,1306471158),(1055,65,0,0,'bstock_pl_jhgstatustypes:status:Approval_status:status:V','n','Approval Returned Full',1306746599,1306746599),(1056,65,0,1,'bstock_pl_jhangad:is_active:Approval_is_active:is_active:V','e','on',1306746599,1306746599),(1057,65,0,2,'','','',1306746599,1306746599),(1058,65,0,3,'','','',1306746599,1306746599),(1059,65,0,4,'','','',1306746599,1306746599),(1060,59,0,0,'bstock_pl_jhangad:is_active:Approval_is_active:is_active:V','e','on',1306746624,1306746624),(1045,64,0,0,'bstock_orderstatustypes:status:SalesOrder_status:status:V','n','Paid',1306471158,1306471158),(935,61,0,0,'bstock_orders:broker_id:SalesOrder_broker_id:broker_id:I','n','0',1306400343,1306400343),(962,63,0,2,'','','',1306404365,1306404365),(961,63,0,1,'bstock_pl_purchaseorder:is_active:PurchaseOrder_is_active:is_active:V','e','on',1306404365,1306404365);

--
-- Table structure for table `bstock_pl_reportcolumns`
--

CREATE TABLE `bstock_pl_reportcolumns` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `report_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_reports table.',
  `query_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_selectquery table. This may not be used.',
  `column_index` int(11) NOT NULL COMMENT 'Contains the serial number of fields for a particular report. Stores in format like 0,1,2,3 & so on.',
  `column_name` varchar(250) NOT NULL COMMENT 'Column name which is to be included in the report.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1823 DEFAULT CHARSET=latin1 COMMENT='Contains the columns that are to be displayed in the output ';

--
-- Dumping data for table `bstock_pl_reportcolumns`
--

INSERT INTO `bstock_pl_reportcolumns` VALUES (1,1,0,0,'bstock_pl_purchaseorder:tracking_no:PurchaseOrder_Tracking_No:tracking_no:V',0,0),(2,1,0,1,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_Contact_Person:contact_person:V',0,0),(3,1,0,3,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_Subtotal:subtotal:V',0,0),(8,1,0,4,'bstock_pl_purchaseorder:net_total:PurchaseOrder_Net_Total:net_total:V',0,0),(9,1,0,2,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_Brokerage:brokerage:V',0,0),(28,7,0,6,'bstock_vendors:vendor_name:PurchaseOrder_Vendor_Name:vendor_name:V',0,0),(26,7,0,4,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276586667,1276586667),(27,7,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276586667,1276586667),(25,7,0,3,'bstock_pl_purchaseorder:exciseduty:PurchaseOrder_exciseduty:exciseduty:I',1276586667,1276586667),(24,7,0,2,'bstock_pl_purchaseorder:octroi:PurchaseOrder_octroi:octroi:I',1276586667,1276586667),(23,7,0,1,'bstock_pl_purchaseorder:packaging:PurchaseOrder_packaging:packaging:I',1276586667,1276586667),(22,7,0,0,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276586667,1276586667),(35,9,0,2,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276590739,1276590739),(34,9,0,1,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276590739,1276590739),(33,9,0,0,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276590739,1276590739),(36,9,0,3,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276590739,1276590739),(37,9,0,4,'bstock_pl_purchaseorder:broker_id:PurchaseOrder_broker_id:broker_id:I',1276590739,1276590739),(38,10,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276591966,1276591966),(39,10,0,1,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276591967,1276591967),(40,10,0,2,'bstock_pl_purchaseorder:carrier_id:PurchaseOrder_carrier_id:carrier_id:I',1276591967,1276591967),(41,10,0,3,'bstock_pl_purchaseorder:assigned_to_id:PurchaseOrder_assigned_to_id:assigned_to_id:I',1276591967,1276591967),(42,10,0,4,'bstock_pl_purchaseorder:vendor_id:PurchaseOrder_vendor_id:vendor_id:I',1276591967,1276591967),(43,10,0,5,'bstock_pl_purchaseorder:broker_id:PurchaseOrder_broker_id:broker_id:I',1276591967,1276591967),(44,10,0,6,'bstock_pl_purchaseorder:tracking_no:PurchaseOrder_tracking_no:tracking_no:V',1276591967,1276591967),(45,10,0,7,'bstock_pl_purchaseorder:postatus_id:PurchaseOrder_postatus_id:postatus_id:I',1276591967,1276591967),(46,10,0,8,'bstock_pl_purchaseorder:payment_terms_id:PurchaseOrder_payment_terms_id:payment_terms_id:I',1276591967,1276591967),(47,10,0,9,'bstock_pl_purchaseorder:dollar_rate:PurchaseOrder_dollar_rate:dollar_rate:I',1276591967,1276591967),(48,10,0,10,'bstock_pl_purchaseorder:type_of_tax:PurchaseOrder_type_of_tax:type_of_tax:V',1276591967,1276591967),(49,10,0,11,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276591967,1276591967),(50,10,0,12,'bstock_pl_purchaseorder:packaging:PurchaseOrder_packaging:packaging:I',1276591967,1276591967),(51,10,0,13,'bstock_pl_purchaseorder:octroi:PurchaseOrder_octroi:octroi:I',1276591967,1276591967),(52,10,0,14,'bstock_pl_purchaseorder:exciseduty:PurchaseOrder_exciseduty:exciseduty:I',1276591967,1276591967),(53,10,0,15,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276591967,1276591967),(54,10,0,16,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276591967,1276591967),(55,11,0,0,'bstock_pl_purchaseorder:id:PurchaseOrder_id:id:I',1276593721,1276593721),(56,11,0,1,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276593724,1276593724),(57,11,0,2,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276593726,1276593726),(58,11,0,3,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276593726,1276593726),(59,11,0,4,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276593726,1276593726),(60,11,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276593726,1276593726),(61,12,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276598759,1276598759),(62,12,0,1,'bstock_pl_postatustypes:name:PurchaseOrder_name:name:V',1276598761,1276598761),(63,12,0,2,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276598761,1276598761),(64,12,0,3,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276598761,1276598761),(65,12,0,4,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276598761,1276598761),(66,13,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276608007,1276608007),(67,13,0,1,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276608009,1276608009),(68,13,0,2,'bstock_vendors:vendor_name:Vendors_vendor_name:vendor_name:V',1276608011,1276608011),(69,13,0,3,'bstock_pl_postatustypes:name:PurchaseOrder_name:name:V',1276608011,1276608011),(70,13,0,4,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276608014,1276608014),(71,13,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276608014,1276608014),(72,14,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276608489,1276608489),(73,14,0,1,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1276608489,1276608489),(74,14,0,2,'bstock_brokers:broker_name:Brokers_broker_name:broker_name:V',1276608489,1276608489),(75,14,0,3,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1276608489,1276608489),(76,14,0,4,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1276608489,1276608489),(77,14,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1276608489,1276608489),(78,15,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1276684106,1276684106),(79,15,0,1,'bstock_pl_pobilladd:po_bill_firstname:PurchaseOrder_po_bill_firstname:po_bill_firstname:V',1276684108,1276684108),(80,15,0,2,'bstock_pl_pobilladd:po_bill_lastname:PurchaseOrder_po_bill_lastname:po_bill_lastname:V',1276684108,1276684108),(81,15,0,3,'bstock_pl_pobilladd:po_bill_city:PurchaseOrder_po_bill_city:po_bill_city:V',1276684108,1276684108),(82,15,0,4,'bstock_pl_pobilladd:po_bill_state:PurchaseOrder_po_bill_state:po_bill_state:I',1276684108,1276684108),(83,15,0,5,'bstock_pl_pobilladd:po_bill_contry:PurchaseOrder_po_bill_contry:po_bill_contry:I',1276684108,1276684108),(84,15,0,6,'bstock_pl_pobilladd:po_bill_address:PurchaseOrder_po_bill_address:po_bill_address:V',1276684108,1276684108),(85,15,0,7,'bstock_pl_pobilladd:po_bill_postcode:PurchaseOrder_po_bill_postcode:po_bill_postcode:I',1276684108,1276684108),(86,15,0,8,'bstock_pl_pobilladd:phone_number:PurchaseOrder_phone_number:phone_number:V',1276684108,1276684108),(87,15,0,9,'bstock_pl_poshipadd:po_ship_firstname:PurchaseOrder_po_ship_firstname:po_ship_firstname:V',1276684108,1276684108),(88,15,0,10,'bstock_pl_poshipadd:po_ship_lastname:PurchaseOrder_po_ship_lastname:po_ship_lastname:V',1276684108,1276684108),(89,15,0,11,'bstock_pl_poshipadd:po_ship_city:PurchaseOrder_po_ship_city:po_ship_city:V',1276684108,1276684108),(90,15,0,12,'bstock_pl_poshipadd:po_ship_state:PurchaseOrder_po_ship_state:po_ship_state:I',1276684108,1276684108),(91,15,0,13,'bstock_pl_poshipadd:po_ship_contry:PurchaseOrder_po_ship_contry:po_ship_contry:I',1276684108,1276684108),(92,15,0,14,'bstock_pl_poshipadd:po_ship_address:PurchaseOrder_po_ship_address:po_ship_address:V',1276684108,1276684108),(93,15,0,15,'bstock_pl_poshipadd:po_ship_postcode:PurchaseOrder_po_ship_postcode:po_ship_postcode:I',1276684108,1276684108),(94,15,0,16,'bstock_pl_poshipadd:phone_number:PurchaseOrder_phone_number:phone_number:V',1276684108,1276684108),(95,16,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276687488,1276687488),(96,16,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1276687488,1276687488),(97,16,0,2,'bstock_brokers:broker_name:Brokers_broker_name:broker_name:V',1276687488,1276687488),(98,16,0,3,'bstock_orders:brokerage:SalesOrder_brokerage:brokerage:I',1276687488,1276687488),(99,16,0,4,'bstock_orders:subtotal:SalesOrder_subtotal:subtotal:V',1276687488,1276687488),(100,16,0,5,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1276687488,1276687488),(101,16,0,6,'bstock_orderstatustypes:name:SalesOrder_Status:name:V',0,0),(102,17,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276691933,1276691933),(103,17,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1276691933,1276691933),(104,17,0,2,'bstock_orders:subtotal:SalesOrder_subtotal:subtotal:V',1276691933,1276691933),(105,17,0,3,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1276691933,1276691933),(106,17,0,4,'bstock_orderstatustypes:name:SalesOrder_name:name:V',1276691933,1276691933),(115,18,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276692763,1276692763),(116,18,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1276692763,1276692763),(117,18,0,2,'bstock_customers:username:Customers_username:username:V',1276692763,1276692763),(118,18,0,3,'bstock_customers:customer_password:Customers_customer_password:customer_password:V',1276692768,1276692768),(119,18,0,4,'bstock_customers:email:Customers_email:email:V',1276692768,1276692768),(120,18,0,5,'bstock_customers:first_name:Customers_first_name:first_name:V',1276692768,1276692768),(121,18,0,6,'bstock_customers:last_name:Customers_last_name:last_name:V',1276692768,1276692768),(122,18,0,7,'bstock_customers:company_name:Customers_company_name:company_name:V',1276692768,1276692768),(123,18,0,8,'bstock_customers:mobile_number:Customers_mobile_number:mobile_number:V',1276692768,1276692768),(124,19,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276693256,1276693256),(125,19,0,1,'bstock_orderpaymentstaxes:tax_amount:SalesOrder_tax_amount:tax_amount:V',1276693256,1276693256),(126,19,0,2,'bstock_orderpaymentstaxes:tax_id:SalesOrder_tax_id:tax_id:I',1276693256,1276693256),(127,20,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276693459,1276693459),(128,20,0,1,'bstock_taxtypes:name:SalesOrder_name:name:V',1276693459,1276693459),(129,20,0,2,'bstock_orderpaymentstaxes:tax_amount:SalesOrder_tax_amount:tax_amount:V',1276693459,1276693459),(130,21,0,0,'bstock_orders:id:SalesOrder_id:id:I',1276693749,1276693749),(131,21,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276693749,1276693749),(132,21,0,2,'bstock_orderitems:product_id:SalesOrder_product_id:product_id:I',1276693749,1276693749),(133,21,0,3,'bstock_orderitems:quantity:SalesOrder_quantity:quantity:I',1276693749,1276693749),(134,21,0,4,'bstock_orderitems:price:SalesOrder_price:price:V',1276693749,1276693749),(1012,22,0,5,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1285053610,1285053610),(662,47,0,6,'bstock_pl_poitems:listprice:DetailedSalesReports_listprice:listprice:I',1280293802,1280293802),(1229,23,0,6,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1306316963,1306316963),(1228,23,0,5,'bstock_orderstatustypes:status:SalesOrder_status:status:V',1306316963,1306316963),(1227,23,0,4,'bstock_customers:office_phone_number:Customers_office_phone_number:office_phone_number:V',1306316963,1306316963),(1226,23,0,3,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1306316963,1306316963),(318,24,0,7,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1278674856,1278674856),(317,24,0,6,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1278674856,1278674856),(316,24,0,5,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1278674856,1278674856),(315,24,0,4,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_brokerage:brokerage:I',1278674856,1278674856),(314,24,0,3,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V',1278674856,1278674856),(313,24,0,2,'bstock_vendors:last_name:Vendors_last_name:last_name:V',1278674856,1278674856),(311,24,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1278674856,1278674856),(158,25,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1276767496,1276767496),(159,25,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1276767496,1276767496),(160,25,0,2,'bstock_orders:customer_first_name:SalesOrder_customer_first_name:customer_first_name:V',1276767496,1276767496),(161,25,0,3,'bstock_orders:customer_last_name:SalesOrder_customer_last_name:customer_last_name:V',1276767496,1276767496),(162,25,0,4,'bstock_orders:brokerage:SalesOrder_brokerage:brokerage:I',1276767496,1276767496),(163,25,0,5,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1276767496,1276767496),(164,25,0,6,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1276767496,1276767496),(165,25,0,7,'bstock_orderstatustypes:status:SalesOrder_name:status:V',1276767496,1276767496),(166,25,0,8,'bstock_customers:company_name:Customers_company_name:company_name:V',1276767496,1276767496),(167,26,0,0,'bstock_customers:first_name:CustomersOrderItems_first_name:first_name:V',1276773443,1276773443),(168,26,0,1,'bstock_customers:last_name:CustomersOrderItems_last_name:last_name:V',1276773443,1276773443),(169,26,0,2,'bstock_customers:company_name:CustomersOrderItems_company_name:company_name:V',1276773444,1276773444),(170,26,0,3,'bstock_customers:mobile_number:CustomersOrderItems_mobile_number:mobile_number:V',1276773445,1276773445),(171,26,0,4,'bstock_orderitems:price:CustomersOrderItems_price:price:V',1276773445,1276773445),(172,26,0,5,'bstock_orderitems:profit_amount:CustomersOrderItems_profit_amount:profit_amount:I',1276773445,1276773445),(173,26,0,6,'bstock_orderitems:profit_percent:CustomersOrderItems_profit_percent:profit_percent:I',1276773445,1276773445),(174,27,0,0,'bstock_orderitems:price:CustomersOrderItems_price:price:V',1276775241,1276775241),(175,27,0,1,'bstock_orderitems:profit_amount:CustomersOrderItems_profit_amount:profit_amount:I',1276775241,1276775241),(176,27,0,2,'bstock_orderitems:profit_percent:CustomersOrderItems_profit_percent:profit_percent:I',1276775241,1276775241),(177,27,0,3,'bstock_customers:first_name:CustomersOrderItems_first_name:first_name:V',1276775241,1276775241),(178,27,0,4,'bstock_customers:last_name:CustomersOrderItems_last_name:last_name:V',1276775241,1276775241),(179,27,0,5,'bstock_customers:mobile_number:CustomersOrderItems_mobile_number:mobile_number:V',1276775241,1276775241),(180,28,0,0,'bstock_customers:username:CustomersOrderItems_username:username:V',1276780008,1276780008),(181,28,0,1,'bstock_customers:customer_password:CustomersOrderItems_customer_password:customer_password:V',1276780008,1276780008),(182,28,0,2,'bstock_customers:email:CustomersOrderItems_email:email:V',1276780008,1276780008),(183,28,0,3,'bstock_customers:first_name:CustomersOrderItems_first_name:first_name:V',1276780008,1276780008),(184,28,0,4,'bstock_customers:last_name:CustomersOrderItems_last_name:last_name:V',1276780008,1276780008),(185,28,0,5,'bstock_customers:company_name:CustomersOrderItems_company_name:company_name:V',1276780008,1276780008),(186,28,0,6,'bstock_customers:office_phone_number:CustomersOrderItems_office_phone_number:office_phone_number:V',1276780008,1276780008),(204,30,0,0,'bstock_customers:email:BestCustomer_email:email:V',1277189888,1277189888),(205,30,0,1,'bstock_customers:first_name:BestCustomer_first_name:first_name:V',1277189888,1277189888),(246,29,0,2,'bstock_customers:last_name:BestCustomer_last_name:last_name:V',1277299808,1277299808),(245,29,0,1,'bstock_customers:first_name:BestCustomer_first_name:first_name:V',1277299808,1277299808),(244,29,0,0,'bstock_customers:email:BestCustomer_email:email:V',1277299808,1277299808),(206,30,0,2,'bstock_customers:last_name:BestCustomer_last_name:last_name:V',1277189888,1277189888),(207,30,0,3,'bstock_customers:company_name:BestCustomer_company_name:company_name:V',1277189888,1277189888),(208,31,0,0,'bstock_vendors:vendor_name:BestVendor_vendor_name:vendor_name:V',1277199611,1277199611),(209,31,0,1,'bstock_vendors:email:BestVendor_email:email:V',1277199612,1277199612),(213,32,0,1,'bstock_vendors:email:BestVendor_email:email:V',1277202389,1277202389),(212,32,0,0,'bstock_vendors:vendor_name:BestVendor_vendor_name:vendor_name:V',1277202388,1277202388),(235,34,0,1,'bstock_orderitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277294934,1277294934),(234,34,0,0,'bstock_orderitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277294934,1277294934),(233,33,0,1,'bstock_orderitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277292443,1277292443),(232,33,0,0,'bstock_orderitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277292443,1277292443),(236,35,0,0,'bstock_orderitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277295055,1277295055),(237,35,0,1,'bstock_orderitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277295055,1277295055),(241,36,0,1,'bstock_pl_poitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277297631,1277297631),(240,36,0,0,'bstock_pl_poitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277297630,1277297630),(242,37,0,0,'bstock_pl_poitems:broker_id_1:BestBroker_broker_id_1:broker_id_1:I',1277297943,1277297943),(243,37,0,1,'bstock_pl_poitems:broker_id_2:BestBroker_broker_id_2:broker_id_2:I',1277297943,1277297943),(247,29,0,3,'bstock_customers:company_name:BestCustomer_company_name:company_name:V',1277299808,1277299808),(254,39,0,0,'bstock_countries:name:SalesOrder_name:name:V',1277373930,1277373930),(255,40,0,0,'bstock_pl_purchaseorder:id:Ledger_id:id:I',1277803475,1277803475),(1225,23,0,2,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1306316963,1306316963),(312,24,0,1,'bstock_vendors:first_name:Vendors_first_name:first_name:V',1278674856,1278674856),(1011,22,0,4,'bstock_pl_purchaseorder:subtotal:PurchaseOrder_subtotal:subtotal:I',1285053610,1285053610),(1010,22,0,3,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1285053610,1285053610),(1008,22,0,1,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1285053610,1285053610),(509,42,0,0,'trial_balance_entries:particulars:Accounting_particulars:particulars:V',1280208747,1280208747),(1082,41,0,13,'bstock_products:purchase_price_inr:Products_purchase_price_inr:purchase_price_inr:I',1285734994,1285734994),(1081,41,0,12,'bstock_products:piece_price_dollar:Products_piece_price_dollar:piece_price_dollar:I',1285734994,1285734994),(1080,41,0,11,'bstock_products:piece_price_inr:Products_piece_price_inr:piece_price_inr:I',1285734994,1285734994),(510,42,0,1,'trial_balance_entries:debit:Accounting_debit:debit:I',1280208747,1280208747),(511,42,0,2,'trial_balance_entries:credit:Accounting_credit:credit:I',1280208747,1280208747),(512,42,0,3,'trial_balance_entries:created_date:Accounting_created_date:created_date:I',1280208747,1280208747),(529,43,0,7,'bstock_orderitems:profit_percent:DetailedSalesReports_profit_percent:profit_percent:I',1280210777,1280210777),(528,43,0,6,'bstock_orderitems:profit_amount:DetailedSalesReports_profit_amount:profit_amount:I',1280210777,1280210777),(527,43,0,5,'bstock_orderitems:price:DetailedSalesReports_price:price:V',1280210777,1280210777),(526,43,0,4,'bstock_pl_poitems:listprice:DetailedSalesReports_listprice:listprice:I',1280210777,1280210777),(525,43,0,3,'bstock_products:color:DetailedSalesReports_color:color:V',1280210777,1280210777),(524,43,0,2,'bstock_products:size:DetailedSalesReports_size:size:I',1280210777,1280210777),(523,43,0,1,'bstock_products:shape:DetailedSalesReports_shape:shape:V',1280210777,1280210777),(522,43,0,0,'bstock_exporters:exporter_name:DetailedSalesReports_exporter_name:exporter_name:V',1280210777,1280210777),(530,43,0,8,'bstock_customers:company_name:DetailedSalesReports_company_name:company_name:V',1280210777,1280210777),(531,43,0,9,'bstock_customers:email:DetailedSalesReports_email:email:V',1280210777,1280210777),(540,44,0,3,'bstock_products:color:DetailedSalesReports_color:color:V',1280212568,1280212568),(539,44,0,2,'bstock_products:size:DetailedSalesReports_size:size:I',1280212568,1280212568),(538,44,0,1,'bstock_products:shape:DetailedSalesReports_shape:shape:V',1280212568,1280212568),(537,44,0,0,'bstock_exporters:exporter_name:DetailedSalesReports_exporter_name:exporter_name:V',1280212568,1280212568),(541,44,0,4,'bstock_orderitems:price:DetailedSalesReports_price:price:I',1280212568,1280212568),(542,45,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1280213104,1280213104),(543,45,0,1,'bstock_vendors:vendor_name:Vendors_vendor_name:vendor_name:V',1280213104,1280213104),(544,45,0,2,'bstock_products:shape:PurchaseOrder_shape:shape:V',1280213104,1280213104),(545,45,0,3,'bstock_products:size:PurchaseOrder_size:size:I',1280213104,1280213104),(546,45,0,4,'bstock_products:color:PurchaseOrder_color:color:V',1280213104,1280213104),(547,45,0,5,'bstock_pl_poitems:listprice:PurchaseOrder_listprice:listprice:I',1280213104,1280213104),(548,45,0,6,'bstock_pl_poitems:qty:PurchaseOrder_qty:qty:I',1280213104,1280213104),(971,46,0,5,'bstock_products:qty:StockReports_qty:qty:I',1285048636,1285048636),(970,46,0,4,'bstock_products:color:StockReports_color:color:V',1285048636,1285048636),(969,46,0,3,'bstock_products:size:StockReports_size:size:I',1285048636,1285048636),(968,46,0,2,'bstock_products:shape:StockReports_shape:shape:V',1285048636,1285048636),(967,46,0,1,'bstock_pl_purchaseorder:po_number:StockReports_po_number:po_number:V',1285048636,1285048636),(966,46,0,0,'bstock_customers:company_name:StockReports_company_name:company_name:V',1285048636,1285048636),(1009,22,0,2,'bstock_customers:company_name:Customers_company_name:company_name:V',1285053610,1285053610),(1224,23,0,1,'bstock_orders:contact_person:SalesOrder_contact_person:contact_person:V',1306316963,1306316963),(1079,41,0,10,'bstock_products:price:Products_price:price:V',1285734994,1285734994),(1078,41,0,9,'bstock_products:symmetry:Products_symmetry:symmetry:V',1285734994,1285734994),(1077,41,0,8,'bstock_products:polish:Products_polish:polish:V',1285734994,1285734994),(1223,23,0,0,'bstock_customers:company_name:Customers_company_name:company_name:V',1306316963,1306316963),(661,47,0,5,'bstock_pl_poitems:qty:DetailedSalesReports_qty:qty:I',1280293802,1280293802),(660,47,0,4,'bstock_exporters:exporter_name:DetailedSalesReports_exporter_name:exporter_name:V',1280293802,1280293802),(659,47,0,3,'bstock_products:color:DetailedSalesReports_color:color:V',1280293802,1280293802),(658,47,0,2,'bstock_products:size:DetailedSalesReports_size:size:I',1280293802,1280293802),(657,47,0,1,'bstock_products:shape:DetailedSalesReports_shape:shape:V',1280293802,1280293802),(656,47,0,0,'bstock_vendors:vendor_name:DetailedSalesReports_vendor_name:vendor_name:V',1280293802,1280293802),(663,47,0,7,'bstock_pl_poitems:created_date:DetailedSalesReports_created_date:created_date:I',1280293802,1280293802),(688,48,0,7,'bstock_pl_poitems:listprice:StockReports_listprice:listprice:I',1281116408,1281116408),(689,48,0,8,'bstock_pl_poitems:created_date:StockReports_created_date:created_date:I',1281116408,1281116408),(687,48,0,6,'bstock_pl_poitems:qty:StockReports_qty:qty:I',1281116408,1281116408),(686,48,0,5,'bstock_products:color:StockReports_color:color:V',1281116408,1281116408),(684,48,0,3,'bstock_products:size:StockReports_size:size:I',1281116408,1281116408),(685,48,0,4,'bstock_products:flourescence:StockReports_flourescence:flourescence:I',1281116408,1281116408),(683,48,0,2,'bstock_products:shape:StockReports_shape:shape:V',1281116408,1281116408),(682,48,0,1,'bstock_products:stoneid:StockReports_stoneid:stoneid:V',1281116408,1281116408),(681,48,0,0,'bstock_pl_poitems:po_number_id:StockReports_po_number_id:po_number_id:I',1281116408,1281116408),(1007,22,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1285053610,1285053610),(1076,41,0,7,'bstock_products:cut:Products_cut:cut:V',1285734994,1285734994),(1075,41,0,6,'bstock_products:lab:Products_lab:lab:V',1285734994,1285734994),(1074,41,0,5,'bstock_products:flourescence:Products_flourescence:flourescence:I',1285734994,1285734994),(885,49,0,13,'bstock_products:cash_back:Products_cash_back:cash_back:I',1283874192,1283874192),(886,49,0,14,'bstock_products:conversion_rate:Products_conversion_rate:conversion_rate:I',1283874192,1283874192),(887,49,0,15,'bstock_orderstatustypes:status:SalesOrder_status:status:V',1283874192,1283874192),(884,49,0,12,'bstock_products:discount:Products_discount:discount:V',1283874192,1283874192),(881,49,0,9,'bstock_products:flourescence:Products_flourescence:flourescence:I',1283874192,1283874192),(883,49,0,11,'bstock_products:inr_price:Products_inr_price:inr_price:I',1283874192,1283874192),(882,49,0,10,'bstock_products:rap_price:Products_rap_price:rap_price:I',1283874192,1283874192),(880,49,0,8,'bstock_products:clarity:Products_clarity:clarity:V',1283874192,1283874192),(879,49,0,7,'bstock_products:color:Products_color:color:V',1283874192,1283874192),(878,49,0,6,'bstock_products:size:Products_size:size:I',1283874192,1283874192),(877,49,0,5,'bstock_products:shape:Products_shape:shape:V',1283874192,1283874192),(875,49,0,3,'bstock_orderitems:total_in_inr:SalesOrder_total_in_inr:total_in_inr:I',1283874192,1283874192),(876,49,0,4,'bstock_products:purchase_price_inr:Products_purchase_price_inr:purchase_price_inr:I',1283874192,1283874192),(874,49,0,2,'bstock_orders:balance:SalesOrder_balance:balance:I',1283874192,1283874192),(873,49,0,1,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1283874192,1283874192),(872,49,0,0,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1283874192,1283874192),(941,50,0,15,'bstock_products:conversion_rate:PurchaseOrder_conversion_rate:conversion_rate:I',1283892330,1283892330),(940,50,0,14,'bstock_products:cash_back:PurchaseOrder_cash_back:cash_back:I',1283892330,1283892330),(939,50,0,13,'bstock_products:discount:PurchaseOrder_discount:discount:V',1283892330,1283892330),(938,50,0,12,'bstock_products:inr_price:PurchaseOrder_inr_price:inr_price:I',1283892330,1283892330),(937,50,0,11,'bstock_products:price:PurchaseOrder_price:price:I',1283892330,1283892330),(935,50,0,9,'bstock_products:clarity:PurchaseOrder_clarity:clarity:V',1283892330,1283892330),(936,50,0,10,'bstock_products:flourescence:PurchaseOrder_flourescence:flourescence:I',1283892330,1283892330),(934,50,0,8,'bstock_products:color:PurchaseOrder_color:color:V',1283892330,1283892330),(932,50,0,6,'bstock_products:shape:PurchaseOrder_shape:shape:V',1283892330,1283892330),(933,50,0,7,'bstock_products:size:PurchaseOrder_size:size:I',1283892330,1283892330),(931,50,0,5,'bstock_products:purchase_price_dollar:Products_purchase_price_dollar:purchase_price_dollar:I',1283892330,1283892330),(930,50,0,4,'bstock_products:purchase_price_inr:PurchaseOrder_purchase_price_inr:purchase_price_inr:I',1283892330,1283892330),(904,51,0,0,'bstock_brokers:broker_name:BestBroker_broker_name:broker_name:V',1283892221,1283892221),(905,51,0,1,'bstock_orderitems:order_id:BestBroker_order_id:order_id:I',1283892221,1283892221),(906,51,0,2,'bstock_orderitems:product_id:BestBroker_product_id:product_id:I',1283892221,1283892221),(907,51,0,3,'bstock_orderitems:brokerage_1:BestBroker_brokerage_1:brokerage_1:I',1283892221,1283892221),(908,51,0,4,'bstock_orderitems:brokerage_1_amt_inr:BestBroker_brokerage_1_amt_inr:brokerage_1_amt_inr:I',1283892221,1283892221),(929,50,0,3,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1283892330,1283892330),(928,50,0,2,'bstock_pl_purchaseorder:balance:PurchaseOrder_balance:balance:I',1283892330,1283892330),(927,50,0,1,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1283892330,1283892330),(926,50,0,0,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1283892330,1283892330),(942,50,0,16,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1283892330,1283892330),(943,52,0,0,'bstock_pl_purchaseorder:id:Ledger_id:id:I',1283895447,1283895447),(955,53,0,3,'bstock_karigar:karigar_name:KarigarReports_karigar_name:karigar_name:V',1283898236,1283898236),(954,53,0,2,'bstock_jwl_labour_info:balance:KarigarReports_balance:balance:I',1283898236,1283898236),(952,53,0,0,'bstock_orders:so_number:KarigarReports_so_number:so_number:V',1283898236,1283898236),(953,53,0,1,'bstock_jwl_labour_info:price:KarigarReports_price:price:V',1283898236,1283898236),(956,53,0,4,'bstock_jwl_labour_info:status:KarigarReports_status:status:V',1283898236,1283898236),(1106,54,0,4,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1294057547,1294057547),(1105,54,0,3,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1294057547,1294057547),(1104,54,0,2,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1294057547,1294057547),(972,46,0,6,'bstock_pl_poitems:listprice:StockReports_listprice:listprice:I',1285048636,1285048636),(1103,54,0,1,'bstock_pl_purchaseorder:transaction_date:PurchaseOrder_transaction_date:transaction_date:I',1294057547,1294057547),(1102,54,0,0,'bstock_pl_purchaseorder:id:PurchaseOrder_id:id:I',1294057547,1294057547),(1100,55,0,4,'bstock_orders:transaction_date:SalesOrder_transaction_date:transaction_date:I',1294044165,1294044165),(1099,55,0,3,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1294044165,1294044165),(1098,55,0,2,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1294044165,1294044165),(1097,55,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1294044165,1294044165),(1096,55,0,0,'bstock_orders:id:SalesOrder_id:id:I',1294044165,1294044165),(1050,56,0,3,'bstock_karigar_metal_info:date_given_timestamp:KarigarReports_date_given_timestamp:date_given_timestamp:I',1285678547,1285678547),(1047,56,0,0,'bstock_karigar_metal_info:id:KarigarReports_id:id:I',1285678547,1285678547),(1048,56,0,1,'bstock_karigar_metal_info:karigar_id:KarigarReports_karigar_id:karigar_id:I',1285678547,1285678547),(1049,56,0,2,'bstock_karigar_metal_info:metal_weight:KarigarReports_metal_weight:metal_weight:I',1285678547,1285678547),(1073,41,0,4,'bstock_products:clarity:Products_clarity:clarity:V',1285734994,1285734994),(1072,41,0,3,'bstock_products:size:Products_size:size:I',1285734994,1285734994),(1071,41,0,2,'bstock_products:shape:Products_shape:shape:V',1285734994,1285734994),(1069,41,0,0,'bstock_products:stoneid:Products_stoneid:stoneid:V',1285734994,1285734994),(1070,41,0,1,'bstock_products:color:Products_color:color:V',1285734994,1285734994),(1083,41,0,14,'bstock_products:purchase_price_dollar:Products_purchase_price_dollar:purchase_price_dollar:I',1285734994,1285734994),(1506,57,0,7,'bstock_pl_purchaseorder:net_total_usd:PurchaseOrder_net_total_usd:net_total_usd:I',1306404640,1306404640),(1507,57,0,8,'bstock_pl_purchaseorder:dollar_rate:PurchaseOrder_dollar_rate:dollar_rate:I',1306404640,1306404640),(1503,57,0,4,'bstock_pl_purchaseorder:balance:PurchaseOrder_balance:balance:I',1306404640,1306404640),(1504,57,0,5,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1306404640,1306404640),(1505,57,0,6,'bstock_pl_purchaseorder:vendor_id:PurchaseOrder_vendor_id:vendor_id:I',1306404640,1306404640),(1679,58,0,3,'bstock_orders:balance:SalesOrder_balance:balance:I',1306470982,1306470982),(1680,58,0,4,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1306470982,1306470982),(1681,58,0,5,'bstock_orders:transaction_date:SalesOrder_transaction_date:transaction_date:I',1306470982,1306470982),(1682,58,0,6,'bstock_orders:customer_id:SalesOrder_customer_id:customer_id:I',1306470982,1306470982),(1101,55,0,5,'bstock_orders:balance:SalesOrder_balance:balance:I',1294044165,1294044165),(1107,54,0,5,'bstock_pl_purchaseorder:balance:PurchaseOrder_balance:balance:I',1294057547,1294057547),(1686,58,0,10,'bstock_brokers:broker_name:Brokers_broker_name:broker_name:V',1306470982,1306470982),(1685,58,0,9,'bstock_orderstatustypes:status:SalesOrder_status:status:V',1306470982,1306470982),(1744,59,0,4,'bstock_pl_jhangad:due_date:Approval_due_date:due_date:I',1306746624,1306746624),(1745,59,0,5,'bstock_pl_jhangad:transaction_date:Approval_transaction_date:transaction_date:I',1306746624,1306746624),(1741,59,0,1,'bstock_pl_jhangad:jhangad_number:Approval_jhangad_number:jhangad_number:V',1306746624,1306746624),(1742,59,0,2,'bstock_pl_jhangad:customer_id:Approval_customer_id:customer_id:I',1306746624,1306746624),(1820,60,0,9,'bstock_pl_dailycashentries:amount:CashBookReports_amount:amount:I',1311837164,1311837164),(1821,60,0,10,'bstock_pl_dailycashentries:closing_balance:CashBookReports_closing_balance:closing_balance:I',1311837164,1311837164),(1819,60,0,8,'bstock_pl_dailycashentries:entry_type:CashBookReports_entry_type:entry_type:V',1311837164,1311837164),(1817,60,0,6,'bstock_bank:account_number:CashBookReports_account_number:account_number:V',1311837164,1311837164),(1818,60,0,7,'bstock_pl_dailycashentries:remarks:CashBookReports_remarks:remarks:V',1311837164,1311837164),(1816,60,0,5,'bstock_bank:bank_name:CashBookReports_bank_name:bank_name:V',1311837164,1311837164),(1444,61,0,7,'bstock_orders:customer_id:SalesOrder_customer_id:customer_id:I',1306400343,1306400343),(1443,61,0,6,'bstock_orders:broker_id:SalesOrder_broker_id:broker_id:I',1306400343,1306400343),(1442,61,0,5,'bstock_orders:brokerage_total:SalesOrder_brokerage_total:brokerage_total:I',1306400343,1306400343),(1441,61,0,4,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1306400343,1306400343),(1440,61,0,3,'bstock_orders:brokerage_balance:SalesOrder_brokerage_balance:brokerage_balance:I',1306400343,1306400343),(1439,61,0,2,'bstock_orders:transaction_date:SalesOrder_transaction_date:transaction_date:I',1306400343,1306400343),(1725,62,0,14,'bstock_pl_purchaseorder:vendor_id:ProfitLossReports_vendor_id:vendor_id:I',1306473428,1306473428),(1724,62,0,13,'bstock_pl_poitems:po_number_id:ProfitLossReports_po_number_id:po_number_id:I',1306473428,1306473428),(1723,62,0,12,'bstock_orders:dollar_rate:ProfitLossReports_dollar_rate:dollar_rate:I',1306473428,1306473428),(1720,62,0,9,'bstock_orderitems:size:ProfitLossReports_size:size:I',1306473428,1306473428),(1721,62,0,10,'bstock_products:purchase_price_dollar:ProfitLossReports_purchase_price_dollar:purchase_price_dollar:I',1306473428,1306473428),(1722,62,0,11,'bstock_products:purchase_price_inr:ProfitLossReports_purchase_price_inr:purchase_price_inr:I',1306473428,1306473428),(1719,62,0,8,'bstock_orders:brokerage_total:ProfitLossReports_brokerage_total:brokerage_total:I',1306473428,1306473428),(1718,62,0,7,'bstock_orders:customer_id:ProfitLossReports_customer_id:customer_id:I',1306473428,1306473428),(1717,62,0,6,'bstock_orders:broker_id:ProfitLossReports_broker_id:broker_id:I',1306473428,1306473428),(1716,62,0,5,'bstock_orders:transaction_date:ProfitLossReports_transaction_date:transaction_date:I',1306473428,1306473428),(1715,62,0,4,'bstock_orderitems:total_in_inr:ProfitLossReports_total_in_inr:total_in_inr:I',1306473428,1306473428),(1714,62,0,3,'bstock_orderitems:total_in_dollar:ProfitLossReports_total_in_dollar:total_in_dollar:I',1306473428,1306473428),(1683,58,0,7,'bstock_orders:delivery_status_id:SalesOrder_delivery_status_id:delivery_status_id:I',1306470982,1306470982),(1684,58,0,8,'bstock_orders:net_total_usd:SalesOrder_net_total_usd:net_total_usd:I',1306470982,1306470982),(1501,57,0,2,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1306404640,1306404640),(1743,59,0,3,'bstock_pl_jhangad:net_total:Approval_net_total:net_total:I',1306746624,1306746624),(1496,63,0,8,'bstock_pl_purchaseorder:dollar_rate:PurchaseOrder_dollar_rate:dollar_rate:I',1306404365,1306404365),(1495,63,0,7,'bstock_pl_purchaseorder:vendor_id:PurchaseOrder_vendor_id:vendor_id:I',1306404365,1306404365),(1494,63,0,6,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1306404365,1306404365),(1493,63,0,5,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I',1306404365,1306404365),(1492,63,0,4,'bstock_pl_purchaseorder:balance:PurchaseOrder_balance:balance:I',1306404365,1306404365),(1491,63,0,3,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1306404365,1306404365),(1707,64,0,8,'bstock_orders:net_total_usd:SalesOrder_net_total_usd:net_total_usd:I',1306471158,1306471158),(1709,64,0,10,'bstock_orders:dollar_rate:SalesOrder_dollar_rate:dollar_rate:I',1306471158,1306471158),(1708,64,0,9,'bstock_orderstatustypes:status:SalesOrder_status:status:V',1306471158,1306471158),(1706,64,0,7,'bstock_orders:delivery_status_id:SalesOrder_delivery_status_id:delivery_status_id:I',1306471158,1306471158),(1732,65,0,0,'bstock_pl_jhangad:id:Approval_id:id:I',1306746599,1306746599),(1733,65,0,1,'bstock_pl_jhangad:jhangad_number:Approval_jhangad_number:jhangad_number:V',1306746599,1306746599),(1734,65,0,2,'bstock_pl_jhangad:customer_id:Approval_customer_id:customer_id:I',1306746599,1306746599),(1735,65,0,3,'bstock_pl_jhangad:net_total:Approval_net_total:net_total:I',1306746599,1306746599),(1736,65,0,4,'bstock_pl_jhangad:due_date:Approval_due_date:due_date:I',1306746599,1306746599),(1737,65,0,5,'bstock_pl_jhangad:transaction_date:Approval_transaction_date:transaction_date:I',1306746599,1306746599),(1738,65,0,6,'bstock_pl_jhangad:status_id:Approval_status_id:status_id:I',1306746599,1306746599),(1746,59,0,6,'bstock_pl_jhangad:status_id:Approval_status_id:status_id:I',1306746624,1306746624),(1740,59,0,0,'bstock_pl_jhangad:id:Approval_id:id:I',1306746624,1306746624),(1739,65,0,7,'bstock_pl_jhangad:broker_id:Approval_broker_id:broker_id:I',1306746599,1306746599),(1705,64,0,6,'bstock_orders:transaction_date:SalesOrder_transaction_date:transaction_date:I',1306471158,1306471158),(1703,64,0,4,'bstock_orders:balance:SalesOrder_balance:balance:I',1306471158,1306471158),(1704,64,0,5,'bstock_orders:due_date:SalesOrder_due_date:due_date:I',1306471158,1306471158),(1488,63,0,0,'bstock_pl_purchaseorder:id:PurchaseOrder_id:id:I',1306404365,1306404365),(1489,63,0,1,'bstock_pl_purchaseorder:transaction_date:PurchaseOrder_transaction_date:transaction_date:I',1306404365,1306404365),(1490,63,0,2,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V',1306404365,1306404365),(1502,57,0,3,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I',1306404640,1306404640),(1499,57,0,0,'bstock_pl_purchaseorder:id:PurchaseOrder_id:id:I',1306404640,1306404640),(1500,57,0,1,'bstock_pl_purchaseorder:transaction_date:PurchaseOrder_transaction_date:transaction_date:I',1306404640,1306404640),(1702,64,0,3,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1306471158,1306471158),(1438,61,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1306400343,1306400343),(1437,61,0,0,'bstock_orders:id:SalesOrder_id:id:I',1306400343,1306400343),(1726,62,0,15,'bstock_pl_poitems:partner_id:ProfitLossReports_partner_id:partner_id:I',1306473428,1306473428),(1497,63,0,9,'bstock_pl_purchaseorder:net_total_usd:PurchaseOrder_net_total_usd:net_total_usd:I',1306404365,1306404365),(1498,63,0,10,'bstock_pl_purchaseorder:postatus_id:PurchaseOrder_postatus_id:postatus_id:I',1306404365,1306404365),(1508,57,0,9,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V',1306404640,1306404640),(1713,62,0,2,'bstock_orderitems:invoice_note:ProfitLossReports_invoice_note:invoice_note:V',1306473428,1306473428),(1711,62,0,0,'bstock_orderitems:id:ProfitLossReports_id:id:I',1306473428,1306473428),(1712,62,0,1,'bstock_orderitems:product_id:ProfitLossReports_product_id:product_id:I',1306473428,1306473428),(1701,64,0,2,'bstock_orders:customer_id:SalesOrder_customer_id:customer_id:I',1306471158,1306471158),(1700,64,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1306471158,1306471158),(1678,58,0,2,'bstock_orders:net_total:SalesOrder_net_total:net_total:I',1306470982,1306470982),(1676,58,0,0,'bstock_orders:id:SalesOrder_id:id:I',1306470982,1306470982),(1677,58,0,1,'bstock_orders:so_number:SalesOrder_so_number:so_number:V',1306470982,1306470982),(1687,58,0,11,'bstock_orders:dollar_rate:SalesOrder_dollar_rate:dollar_rate:I',1306470982,1306470982),(1710,64,0,11,'bstock_brokers:broker_name:SalesOrder_broker_name:broker_name:V',1306471158,1306471158),(1699,64,0,0,'bstock_orders:id:SalesOrder_id:id:I',1306471158,1306471158),(1727,62,0,16,'bstock_orderitems:percent_back:ProfitLossReports_percent_back:percent_back:I',1306473428,1306473428),(1728,62,0,17,'bstock_orderitems:aadat:ProfitLossReports_aadat:aadat:I',1306473428,1306473428),(1729,62,0,18,'bstock_orderitems:cash_back:ProfitLossReports_cash_back:cash_back:I',1306473428,1306473428),(1730,62,0,19,'bstock_orderitems:carat_selling_price_usd:ProfitLossReports_carat_selling_price_usd:carat_selling_price_usd:I',1306473428,1306473428),(1731,62,0,20,'bstock_orderitems:carat_selling_price:ProfitLossReports_carat_selling_price:carat_selling_price:I',1306473428,1306473428),(1747,59,0,7,'bstock_pl_jhangad:broker_id:Approval_broker_id:broker_id:I',1306746624,1306746624),(1815,60,0,4,'bstock_angadia:account_name:CashBookReports_account_name:account_name:V',1311837164,1311837164),(1814,60,0,3,'bstock_customers:last_name:CashBookReports_last_name:last_name:V',1311837164,1311837164),(1813,60,0,2,'bstock_customers:first_name:CashBookReports_first_name:first_name:V',1311837164,1311837164),(1812,60,0,1,'bstock_customers:company_name:CashBookReports_company_name:company_name:V',1311837164,1311837164),(1811,60,0,0,'bstock_pl_dailycashentries:date_timestamp:CashBookReports_date_timestamp:date_timestamp:I',1311837164,1311837164),(1822,60,0,11,'bstock_pl_dailycashentries:payment_mode:CashBookReports_payment_mode:payment_mode:V',1311837164,1311837164);

--
-- Table structure for table `bstock_pl_reportdatefilter`
--

CREATE TABLE `bstock_pl_reportdatefilter` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `report_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key of bstock_pl_reports table.',
  `date_column_name` varchar(255) NOT NULL COMMENT 'Column name of the date field.',
  `date_filter` varchar(50) NOT NULL COMMENT 'Name of the date filter i.e. custom, lastmonth, prevfy, etc.',
  `start_date` date NOT NULL COMMENT 'Start date of the chosen filter.',
  `end_date` date NOT NULL COMMENT 'End date of the chosen filter.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=215 DEFAULT CHARSET=latin1 COMMENT='Contains columnnames of date fields on which we set filters ';

--
-- Dumping data for table `bstock_pl_reportdatefilter`
--

INSERT INTO `bstock_pl_reportdatefilter` VALUES (1,1,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_Created_Date','thisfy','2010-01-01','2010-12-31',0,0),(4,7,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276586668,1276586668),(6,9,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276590739,1276590739),(7,10,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276591967,1276591967),(8,11,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276593741,1276593741),(9,12,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276598765,1276598765),(10,13,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276608023,1276608023),(11,14,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276608490,1276608490),(12,15,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1276684109,1276684109),(13,16,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1276687488,1276687488),(14,17,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1276691934,1276691934),(15,18,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1276692773,1276692773),(16,19,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1276693256,1276693256),(17,20,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1276693459,1276693459),(18,21,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1276693750,1276693750),(131,22,'bstock_pl_purchaseorder:due_date:due_date:PurchaseOrder_due_date','custom','2010-01-01','2010-12-31',1285053610,1285053610),(159,23,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1306316963,1306316963),(61,24,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1278674856,1278674856),(22,25,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1276767496,1276767496),(23,26,'bstock_customers:created_date:created_date:CustomersOrderItems_created_date','custom','0000-00-00','0000-00-00',1276773450,1276773450),(24,27,'bstock_customers:created_date:created_date:CustomersOrderItems_created_date','custom','0000-00-00','0000-00-00',1276775241,1276775241),(25,28,'bstock_customers:created_date:created_date:CustomersOrderItems_created_date','custom','0000-00-00','0000-00-00',1276780009,1276780009),(48,29,'Not Accessible','','0000-00-00','0000-00-00',1277299809,1277299809),(51,38,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1277302290,1277302290),(32,30,'bstock_customers:created_date:created_date:BestCustomer_created_date','custom','0000-00-00','0000-00-00',1277189889,1277189889),(33,31,'bstock_vendors:created_date:created_date:BestVendor_created_date','custom','0000-00-00','0000-00-00',1277199613,1277199613),(35,32,'bstock_vendors:created_date:created_date:BestVendor_created_date','custom','0000-00-00','0000-00-00',1277202389,1277202389),(42,33,'bstock_brokers:created_date:created_date:BestBroker_created_date','custom','0000-00-00','0000-00-00',1277292444,1277292444),(43,34,'bstock_brokers:created_date:created_date:BestBroker_created_date','custom','0000-00-00','0000-00-00',1277294934,1277294934),(44,35,'bstock_brokers:created_date:created_date:BestBroker_created_date','custom','0000-00-00','0000-00-00',1277295055,1277295055),(46,36,'bstock_brokers:created_date:created_date:BestBroker_created_date','custom','0000-00-00','0000-00-00',1277297631,1277297631),(47,37,'bstock_brokers:created_date:created_date:BestBroker_created_date','custom','0000-00-00','0000-00-00',1277297943,1277297943),(52,39,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1277373932,1277373932),(53,40,'bstock_pl_purchaseorder:created_date:created_date:Ledger_created_date','custom','0000-00-00','0000-00-00',1277803475,1277803475),(141,41,'bstock_products:created_date:created_date:Products_created_date','custom','0000-00-00','0000-00-00',1285734994,1285734994),(78,42,'trial_balance_entries:created_date:created_date:Accounting_created_date','custom','0000-00-00','0000-00-00',1280208747,1280208747),(80,43,'bstock_orderitems:created_date:created_date:DetailedSalesReports_created_date','custom','0000-00-00','0000-00-00',1280210777,1280210777),(82,44,'bstock_orderitems:created_date:created_date:DetailedSalesReports_created_date','custom','0000-00-00','0000-00-00',1280212568,1280212568),(83,45,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1280213104,1280213104),(127,46,'bstock_pl_poitems:created_date:created_date:StockReports_created_date','custom','0000-00-00','0000-00-00',1285048636,1285048636),(97,47,'Not Accessible','','0000-00-00','0000-00-00',1280293802,1280293802),(100,48,'bstock_pl_poitems:created_date:created_date:StockReports_created_date','thisfy','2010-01-01','2010-12-31',1281116408,1281116408),(117,49,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1283874192,1283874192),(121,50,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1283892330,1283892330),(119,51,'bstock_brokers:created_date:created_date:BestBroker_created_date','custom','0000-00-00','0000-00-00',1283892221,1283892221),(122,52,'bstock_pl_purchaseorder:created_date:created_date:Ledger_created_date','custom','0000-00-00','0000-00-00',1283895447,1283895447),(125,53,'bstock_jwl_labour_info:created_date:created_date:KarigarReports_created_date','custom','0000-00-00','0000-00-00',1283898236,1283898236),(145,54,'bstock_pl_purchaseorder:created_date:created_date:PurchaseOrder_created_date','custom','0000-00-00','0000-00-00',1294057547,1294057547),(144,55,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1294044165,1294044165),(139,56,'bstock_jwl_labour_info:created_date:created_date:KarigarReports_created_date','custom','0000-00-00','0000-00-00',1285678547,1285678547),(194,57,'bstock_pl_purchaseorder:transaction_date:transaction_date:PurchaseOrder_transaction_date','custom','0000-00-00','0000-00-00',1306404640,1306404640),(208,58,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1306470982,1306470982),(213,59,'bstock_pl_jhangad:transaction_date:transaction_date:Approval_transaction_date','custom','0000-00-00','0000-00-00',1306746624,1306746624),(214,60,'Not Accessible','','0000-00-00','0000-00-00',1311837164,1311837164),(188,61,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1306400343,1306400343),(211,62,'bstock_orderitems:created_date:created_date:ProfitLossReports_created_date','custom','0000-00-00','0000-00-00',1306473428,1306473428),(193,63,'bstock_pl_purchaseorder:transaction_date:transaction_date:PurchaseOrder_transaction_date','custom','0000-00-00','0000-00-00',1306404365,1306404365),(210,64,'bstock_orders:due_date:due_date:SalesOrder_due_date','custom','0000-00-00','0000-00-00',1306471158,1306471158),(212,65,'bstock_pl_jhangad:transaction_date:transaction_date:Approval_transaction_date','custom','0000-00-00','0000-00-00',1306746599,1306746599);

--
-- Table structure for table `bstock_pl_reportfolder`
--

CREATE TABLE `bstock_pl_reportfolder` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `folder_name` varchar(255) NOT NULL COMMENT 'Folder name will be stored here.',
  `description` text NOT NULL COMMENT 'Description for this folder.',
  `state` varchar(50) NOT NULL COMMENT 'State will be either ''SAVED'' or ''CUSTOMIZED''. ''SAVED'' will be for default folders & ''CUSTOMIZED'' will be for user created folders.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1 COMMENT='Stores the folder related data.';

--
-- Dumping data for table `bstock_pl_reportfolder`
--

INSERT INTO `bstock_pl_reportfolder` VALUES (1,'PurchaseOrder Reports','PurchaseOrder Reports','SAVED',0,0,'on'),(2,'SalesOrder Reports','SalesOrder Reports','SAVED',1276763466,1276763466,'on'),(4,'Intelligent Reports','Intelligent Reports','SAVED',1277184290,1277184290,'off'),(5,'Financial Reports','Financial Reports','SAVED',1277184290,1277184290,'on'),(7,'Accounting Reports','Accounting Reports','SAVED',0,0,'off'),(8,'Periodic Reports','Periodic Reports','CUSTOMIZED',0,0,'off'),(10,'Stock Reports','Stock Reports','SAVED',0,0,'on'),(11,'Karigar Reports','Karigar Reports','CUSTOMIZED',0,0,'off');

--
-- Table structure for table `bstock_pl_reportmodules`
--

CREATE TABLE `bstock_pl_reportmodules` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `report_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key of bstock_pl_reports table.',
  `primary_module` varchar(50) NOT NULL COMMENT 'Primary folder/module name selected while creating the report.',
  `secondary_modules` varchar(250) NOT NULL COMMENT 'Secondary folder/module name(s) selected while creating the report.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=62 DEFAULT CHARSET=latin1 COMMENT='Contains the primary & secondary modules of a particular rep';

--
-- Dumping data for table `bstock_pl_reportmodules`
--

INSERT INTO `bstock_pl_reportmodules` VALUES (1,1,'PurchaseOrder','Vendors',0,0),(3,7,'PurchaseOrder','Vendors',1276586667,1276586667),(5,9,'PurchaseOrder','Vendors',1276590739,1276590739),(6,10,'PurchaseOrder','Vendors',1276591967,1276591967),(7,11,'PurchaseOrder','Vendors',1276593726,1276593726),(8,12,'PurchaseOrder','Vendors',1276598761,1276598761),(9,13,'PurchaseOrder','Vendors',1276608018,1276608018),(10,14,'PurchaseOrder','Brokers',1276608489,1276608489),(11,15,'PurchaseOrder','',1276684108,1276684108),(12,16,'SalesOrder','Brokers',1276687488,1276687488),(13,17,'SalesOrder','Customers',1276691933,1276691933),(14,18,'SalesOrder','Customers',1276692770,1276692770),(15,19,'SalesOrder','Customers',1276693256,1276693256),(16,20,'SalesOrder','',1276693459,1276693459),(17,21,'SalesOrder','',1276693749,1276693749),(18,22,'PurchaseOrder','Customers',1276695042,1276695042),(19,23,'SalesOrder','Customers',1276763688,1276763688),(20,24,'PurchaseOrder','Vendors',1276767342,1276767342),(21,25,'SalesOrder','Customers',1276767496,1276767496),(22,26,'CustomersOrderItems','',1276773445,1276773445),(23,27,'CustomersOrderItems','',1276775241,1276775241),(24,28,'CustomersOrderItems','',1276780008,1276780008),(25,29,'BestCustomer','',1276780133,1276780133),(26,30,'BestCustomer','',1277189888,1277189888),(27,31,'BestVendor','',1277199612,1277199612),(28,32,'BestVendor','',1277201407,1277201407),(29,33,'BestBroker','',1277210594,1277210594),(30,34,'BestBroker','',1277294934,1277294934),(31,35,'BestBroker','',1277295055,1277295055),(32,36,'BestBroker','',1277295640,1277295640),(33,37,'BestBroker','',1277297943,1277297943),(35,39,'SalesOrder','',1277373930,1277373930),(36,40,'Ledger','',1277803475,1277803475),(37,41,'Products','',1280169197,1280169197),(38,42,'Accounting','',1280208747,1280208747),(39,43,'PeriodicReports','',1280210617,1280210617),(40,44,'PeriodicReports','',1280212486,1280212486),(41,45,'PurchaseOrder','Vendors',1280213104,1280213104),(42,46,'StockReports','',1280216443,1280216443),(43,47,'PeriodicReports','PO Items',1280233294,1280233294),(44,48,'StockReports','PO Items',1281116296,1281116296),(45,49,'SalesOrder','Products',1283868324,1283868324),(46,50,'PurchaseOrder','Products',1283886791,1283886791),(47,51,'BestBroker','Order Items',1283892221,1283892221),(48,52,'Ledger','',1283895447,1283895447),(49,53,'KarigarReports','',1283898167,1283898167),(50,54,'PurchaseOrder','CashBook',1284727408,1284727408),(51,55,'SalesOrder','CashBook',1285421632,1285421632),(52,56,'KarigarReports','Karigar Metal Info',1285669916,1285669916),(53,57,'PurchaseOrder','CashBook',1286260199,1286260199),(54,58,'SalesOrder','Brokers',1286279262,1286279262),(55,59,'Approval','',1299599072,1299599072),(56,60,'CashBookReports','DailyCashEntries',1305726771,1305726771),(57,61,'SalesOrder','Brokers',1305972075,1305972075),(58,62,'ProfitLossReports','Order Items',1306129485,1306129485),(59,63,'PurchaseOrder','CashBook',1306319667,1306319667),(60,64,'SalesOrder','Brokers',1306324374,1306324374),(61,65,'Approval','',1306325548,1306325548);

--
-- Table structure for table `bstock_pl_reports`
--

CREATE TABLE `bstock_pl_reports` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `folder_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_reportfolders table.',
  `report_name` varchar(255) NOT NULL COMMENT 'Report name.',
  `description` text NOT NULL COMMENT 'Description for the report.',
  `report_type` varchar(50) NOT NULL COMMENT 'Type of report i.e. summary or tabular',
  `query_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key of bstock_pl_selectquery table.',
  `state` varchar(50) NOT NULL COMMENT '''CUSTOMIZED'' or ''SAVED'' for user created & default reports, respectively.',
  `customizable` enum('0','1') NOT NULL COMMENT 'Whether this report can be customized or not.',
  `category` int(11) NOT NULL COMMENT 'The category to which the report belongs to, might not be used currently though.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  `is_active` enum('0','1') NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=66 DEFAULT CHARSET=latin1 COMMENT='Stores details of each report in the system.';

--
-- Dumping data for table `bstock_pl_reports`
--

INSERT INTO `bstock_pl_reports` VALUES (1,1,'PurchaseOrder by Contacts','PurchaseOrder by Contacts','summary',0,'SAVED','1',0,0,0,'0'),(30,4,'Best Customer by Sale','Best Customer by Sale','summary',0,'SAVED','1',0,1277189888,1277189888,'1'),(22,1,'Outstanding Payables','Outstanding Payables - Pending PO Payments','summary',0,'CUSTOM','1',0,1276695038,1276695038,'0'),(23,2,'Outstanding Receivables','Outstanding Receivables - Pending SO Payments','summary',0,'CUSTOM','1',0,1276763685,1276763685,'0'),(24,1,'PO Details','PO Details','summary',0,'CUSTOM','1',0,1276767341,1276767341,'0'),(25,2,'SO Details','SO Details','tabular',0,'CUSTOM','1',0,1276767496,1276767496,'0'),(29,4,'Best Customer by Profit','Best Customer by Profit','summary',0,'SAVED','1',0,1276780133,1276780133,'1'),(31,4,'Best Vendor by Profit','Best Vendor by Profit','summary',0,'SAVED','1',0,1277199610,1277199610,'1'),(32,4,'Best Vendor by Purchase','Best Vendor by Purchase','tabular',0,'SAVED','1',0,1277201402,1277201402,'1'),(33,4,'Best Broker by Profit','Best Broker by Profit','summary',0,'SAVED','1',0,1277210594,1277210594,'1'),(34,4,'Best Broker by Brokerage - SO','Best Broker by Brokerage - SO','summary',0,'SAVED','1',0,1277294934,1277294934,'0'),(35,4,'Best Broker by Sale','Best Broker by Sale','summary',0,'SAVED','1',0,1277295055,1277295055,'1'),(36,4,'Best Broker by Purchase','Best Broker by Purchase','summary',0,'SAVED','1',0,1277295640,1277295640,'0'),(37,4,'Best Broker by Brokerage - PO','Best Broker by Brokerage - PO','summary',0,'SAVED','1',0,1277297943,1277297943,'0'),(39,2,'Country wise sales','Country wise sales','summary',0,'CUSTOM','1',0,1277373930,1277373930,'0'),(40,5,'Purchase & Sales Ledger','Purchase & Sales Ledger','summary',0,'CUSTOM','1',0,1277803475,1277803475,'0'),(41,10,'Stock Ledger','Stock Ledger','summary',0,'SAVED','0',0,1280169197,1280169197,'1'),(42,7,'Trial Balance','Trial Balance','tabular',0,'CUSTOM','1',0,1280208747,1280208747,'0'),(43,8,'Monthly Sales','Monthly Sales','tabular',0,'CUSTOM','1',0,1280210617,1280210617,'0'),(44,8,'Profit/Loss for Vishal & Co.','Profit/Loss for Vishal & Co.','tabular',0,'CUSTOM','1',0,1280212486,1280212486,'0'),(46,10,'Pending Stock Report','Pending Stock Report','tabular',0,'CUSTOM','1',0,1280216443,1280216443,'0'),(47,8,'Monthly Purchase','Monthly Purchase','summary',0,'CUSTOM','1',0,1280233294,1280233294,'0'),(48,10,'Purchase Details','Details of materials purchased date-wise','summary',0,'CUSTOM','1',0,1281116296,1281116296,'0'),(49,2,'Party wise Sales Ledger','Party wise Sales Ledger','summary',0,'CUSTOM','1',0,1283868324,1283868324,'0'),(51,8,'Calculated Brokerage for Brokers','This report will pull the brokerage amount of brokers for the specified period.','tabular',0,'CUSTOM','1',0,1283892221,1283892221,'1'),(52,5,'Quarterly Payments','Quarterly Payments','summary',0,'CUSTOM','1',0,1283895447,1283895447,'0'),(53,11,'Karigar Cash Ledger','Karigar Cash Ledger','summary',0,'CUSTOM','1',0,1283898167,1283898167,'1'),(54,1,'Vendor wise Purchase Ledger','Vendor wise Purchase Ledger','tabular',0,'CUSTOM','1',0,1284727408,1284727408,'0'),(55,2,'Customer wise Sales Ledger','Customer wise Sales Ledger','tabular',0,'CUSTOM','1',0,1285421632,1285421632,'0'),(56,11,'Karigar Metal Ledger','Karigar Metal Ledger','summary',0,'CUSTOM','1',0,1285669916,1285669916,'1'),(57,1,'Customer wise Purchase Report - Detailed','Customer wise Purchase Report - Detailed','summary',0,'SAVED','0',0,1286260199,1286260199,'1'),(58,2,'Customer wise Sales Report - Detailed','Customer wise Sales Report - Detailed','summary',0,'SAVED','0',0,1286279262,1286279262,'1'),(59,2,'Customer wise Approval Report - Detailed','Customer wise Approval Report - Detailed','tabular',0,'SAVED','0',0,1299599072,1299599072,'1'),(60,5,'Daily Cashbook Report','Daily Cashbook Report','summary',0,'SAVED','0',0,1305726771,1305726771,'1'),(61,5,'Broker wise Report','Broker wise Report','tabular',0,'SAVED','0',0,1305972075,1305972075,'1'),(62,5,'Profit / Loss Report','Profit / Loss Report','summary',0,'SAVED','0',0,1306129485,1306129485,'1'),(63,1,'Pending Payments','Pending Payments','summary',0,'SAVED','0',0,1306319667,1306319667,'1'),(64,2,'Pending Receivables','Pending Receivables','summary',0,'SAVED','0',0,1306324374,1306324374,'1'),(65,2,'Pending Approvals','Pending Approvals','tabular',0,'SAVED','0',0,1306325548,1306325548,'1');

--
-- Table structure for table `bstock_pl_reportsortcol`
--

CREATE TABLE `bstock_pl_reportsortcol` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `report_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_reports table.',
  `column_name` varchar(250) NOT NULL COMMENT 'Name of the column on which to sort.',
  `sort_order` varchar(50) NOT NULL COMMENT 'Will contain ''Ascending'' or ''Descending'' order to sort.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=642 DEFAULT CHARSET=latin1 COMMENT='Contains fields that have been selected to ORDER BY while cr';

--
-- Dumping data for table `bstock_pl_reportsortcol`
--

INSERT INTO `bstock_pl_reportsortcol` VALUES (1,1,'bstock_pl_purchaseorder:net_total:PurchaseOrder_Net_Total:net_total:V','Descending',0,0),(2,1,'bstock_pl_purchaseorder:brokerage:PurchaseOrder_Brokerage:brokerage:V','Descending',0,0),(11,7,'none','Ascending',1276586668,1276586668),(10,7,'none','Ascending',1276586667,1276586667),(9,7,'none','Ascending',1276586667,1276586667),(17,9,'none','Ascending',1276590739,1276590739),(16,9,'none','Ascending',1276590739,1276590739),(15,9,'none','Ascending',1276590739,1276590739),(18,10,'none','Ascending',1276591967,1276591967),(19,10,'none','Ascending',1276591967,1276591967),(20,10,'none','Ascending',1276591967,1276591967),(21,11,'bstock_pl_purchaseorder:contact_person:PurchaseOrder_contact_person:contact_person:V','Ascending',1276593734,1276593734),(22,11,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I','Descending',1276593737,1276593737),(23,11,'none','Ascending',1276593741,1276593741),(24,12,'none','Ascending',1276598763,1276598763),(25,12,'none','Ascending',1276598764,1276598764),(26,12,'none','Ascending',1276598765,1276598765),(27,13,'none','Ascending',1276608020,1276608020),(28,13,'none','Ascending',1276608021,1276608021),(29,13,'none','Ascending',1276608022,1276608022),(30,14,'none','Ascending',1276608489,1276608489),(31,14,'none','Ascending',1276608489,1276608489),(32,14,'none','Ascending',1276608490,1276608490),(33,15,'none','Ascending',1276684108,1276684108),(34,15,'none','Ascending',1276684109,1276684109),(35,15,'none','Ascending',1276684109,1276684109),(36,16,'none','Ascending',1276687488,1276687488),(37,16,'none','Ascending',1276687488,1276687488),(38,16,'none','Ascending',1276687488,1276687488),(39,17,'none','Ascending',1276691933,1276691933),(40,17,'none','Ascending',1276691934,1276691934),(41,17,'none','Ascending',1276691934,1276691934),(42,18,'none','Ascending',1276692770,1276692770),(43,18,'none','Ascending',1276692770,1276692770),(44,18,'none','Ascending',1276692773,1276692773),(45,19,'bstock_orders:so_number:SalesOrder_so_number:so_number:V','Ascending',1276693256,1276693256),(46,19,'none','Ascending',1276693256,1276693256),(47,19,'none','Ascending',1276693256,1276693256),(48,20,'bstock_orders:so_number:SalesOrder_so_number:so_number:V','Ascending',1276693459,1276693459),(49,20,'none','Ascending',1276693459,1276693459),(50,20,'none','Ascending',1276693459,1276693459),(51,21,'bstock_orders:id:SalesOrder_id:id:I','Ascending',1276693749,1276693749),(52,21,'bstock_orders:so_number:SalesOrder_so_number:so_number:V','Ascending',1276693750,1276693750),(53,21,'none','Ascending',1276693750,1276693750),(180,24,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I','Descending',1278674856,1278674856),(63,25,'none','Ascending',1276767496,1276767496),(64,25,'none','Ascending',1276767496,1276767496),(65,25,'none','Ascending',1276767496,1276767496),(66,26,'bstock_customers:id:CustomersOrderItems_id:id:I','Ascending',1276773447,1276773447),(67,26,'none','Ascending',1276773448,1276773448),(68,26,'none','Ascending',1276773450,1276773450),(69,27,'bstock_customers:id:CustomersOrderItems_id:id:I','Ascending',1276775241,1276775241),(70,27,'none','Ascending',1276775241,1276775241),(71,27,'none','Ascending',1276775241,1276775241),(72,28,'bstock_customers:first_name:CustomersOrderItems_first_name:first_name:V','Ascending',1276780008,1276780008),(73,28,'bstock_customers:last_name:CustomersOrderItems_last_name:last_name:V','Ascending',1276780008,1276780008),(74,28,'none','Ascending',1276780009,1276780009),(143,29,'none','Ascending',1277299808,1277299808),(142,29,'none','Ascending',1277299808,1277299808),(141,29,'none','Ascending',1277299808,1277299808),(93,30,'none','Ascending',1277189888,1277189888),(94,30,'none','Ascending',1277189889,1277189889),(95,30,'none','Ascending',1277189889,1277189889),(96,31,'none','Ascending',1277199613,1277199613),(97,31,'none','Ascending',1277199613,1277199613),(98,31,'none','Ascending',1277199613,1277199613),(104,32,'none','Ascending',1277202389,1277202389),(103,32,'none','Ascending',1277202389,1277202389),(102,32,'none','Ascending',1277202389,1277202389),(125,33,'none','Ascending',1277292444,1277292444),(124,33,'none','Ascending',1277292444,1277292444),(123,33,'none','Ascending',1277292444,1277292444),(126,34,'none','Ascending',1277294934,1277294934),(127,34,'none','Ascending',1277294934,1277294934),(128,34,'none','Ascending',1277294934,1277294934),(129,35,'none','Ascending',1277295055,1277295055),(130,35,'none','Ascending',1277295055,1277295055),(131,35,'none','Ascending',1277295055,1277295055),(137,36,'none','Ascending',1277297631,1277297631),(136,36,'none','Ascending',1277297631,1277297631),(135,36,'none','Ascending',1277297631,1277297631),(138,37,'none','Ascending',1277297943,1277297943),(139,37,'none','Ascending',1277297943,1277297943),(140,37,'none','Ascending',1277297943,1277297943),(151,38,'none','Ascending',1277302290,1277302290),(152,38,'none','Ascending',1277302290,1277302290),(150,38,'bstock_vendors:country:Vendors_country:country:V','Ascending',1277302290,1277302290),(153,39,'none','Ascending',1277373930,1277373930),(154,39,'none','Ascending',1277373932,1277373932),(155,39,'none','Ascending',1277373932,1277373932),(156,40,'none','Ascending',1277803475,1277803475),(157,40,'none','Ascending',1277803475,1277803475),(158,40,'none','Ascending',1277803475,1277803475),(476,23,'none','Descending',1306316963,1306316963),(182,24,'none','Descending',1278674856,1278674856),(181,24,'none','Descending',1278674856,1278674856),(392,22,'bstock_pl_purchaseorder:net_total:PurchaseOrder_net_total:net_total:I','Descending',1285053610,1285053610),(391,22,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','Descending',1285053610,1285053610),(421,41,'none','Ascending',1285734994,1285734994),(231,42,'none','Ascending',1280208747,1280208747),(232,42,'none','Ascending',1280208747,1280208747),(233,42,'none','Ascending',1280208747,1280208747),(239,43,'none','Ascending',1280210777,1280210777),(238,43,'none','Ascending',1280210777,1280210777),(237,43,'none','Ascending',1280210777,1280210777),(245,44,'none','Ascending',1280212568,1280212568),(244,44,'none','Ascending',1280212568,1280212568),(243,44,'none','Ascending',1280212568,1280212568),(246,45,'none','Ascending',1280213104,1280213104),(247,45,'none','Ascending',1280213104,1280213104),(248,45,'none','Ascending',1280213104,1280213104),(380,46,'none','Ascending',1285048636,1285048636),(379,46,'none','Ascending',1285048636,1285048636),(378,46,'none','Ascending',1285048636,1285048636),(390,22,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I','Descending',1285053610,1285053610),(475,23,'bstock_orders:due_date:SalesOrder_due_date:due_date:I','Ascending',1306316963,1306316963),(288,47,'bstock_vendors:vendor_name:PeriodicReports_vendor_name:vendor_name:V','Ascending',1280293802,1280293802),(289,47,'none','Ascending',1280293802,1280293802),(290,47,'none','Ascending',1280293802,1280293802),(298,48,'none','Ascending',1281116408,1281116408),(299,48,'none','Ascending',1281116408,1281116408),(297,48,'bstock_pl_poitems:po_number_id:StockReports_po_number_id:po_number_id:I','Ascending',1281116408,1281116408),(474,23,'none','Ascending',1306316963,1306316963),(350,49,'bstock_orderstatustypes:status:SalesOrder_status:status:V','Ascending',1283874192,1283874192),(348,49,'bstock_orders:due_date:SalesOrder_due_date:due_date:I','Ascending',1283874192,1283874192),(349,49,'bstock_orders:so_number:SalesOrder_so_number:so_number:V','Ascending',1283874192,1283874192),(362,50,'bstock_pl_postatustypes:status:PurchaseOrder_status:status:V','Ascending',1283892330,1283892330),(360,50,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I','Ascending',1283892330,1283892330),(361,50,'bstock_pl_purchaseorder:po_number:PurchaseOrder_po_number:po_number:V','Ascending',1283892330,1283892330),(354,51,'none','Ascending',1283892221,1283892221),(355,51,'none','Ascending',1283892221,1283892221),(356,51,'none','Ascending',1283892221,1283892221),(363,52,'none','Ascending',1283895447,1283895447),(364,52,'none','Ascending',1283895447,1283895447),(365,52,'none','Ascending',1283895447,1283895447),(374,53,'none','Ascending',1283898236,1283898236),(373,53,'none','Ascending',1283898236,1283898236),(372,53,'none','Ascending',1283898236,1283898236),(433,54,'none','Ascending',1294057547,1294057547),(432,54,'bstock_pl_purchaseorder:due_date:PurchaseOrder_due_date:due_date:I','Ascending',1294057547,1294057547),(430,55,'none','Ascending',1294044165,1294044165),(429,55,'bstock_orders:due_date:SalesOrder_due_date:due_date:I','Ascending',1294044165,1294044165),(416,56,'none','Ascending',1285678547,1285678547),(415,56,'none','Ascending',1285678547,1285678547),(414,56,'none','Ascending',1285678547,1285678547),(420,41,'bstock_products:color:Products_color:color:V','Ascending',1285734994,1285734994),(422,41,'none','Ascending',1285734994,1285734994),(581,57,'none','Ascending',1306404640,1306404640),(580,57,'none','Ascending',1306404640,1306404640),(579,57,'none','Ascending',1306404640,1306404640),(623,58,'none','Ascending',1306470982,1306470982),(622,58,'none','Ascending',1306470982,1306470982),(621,58,'none','Ascending',1306470982,1306470982),(431,55,'none','Ascending',1294044165,1294044165),(434,54,'none','Ascending',1294057547,1294057547),(638,59,'none','Ascending',1306746624,1306746624),(637,59,'none','Ascending',1306746624,1306746624),(636,59,'none','Ascending',1306746624,1306746624),(641,60,'none','Ascending',1311837164,1311837164),(640,60,'none','Ascending',1311837164,1311837164),(639,60,'none','Ascending',1311837164,1311837164),(563,61,'none','Ascending',1306400343,1306400343),(562,61,'none','Ascending',1306400343,1306400343),(561,61,'none','Ascending',1306400343,1306400343),(632,62,'none','Ascending',1306473428,1306473428),(631,62,'none','Ascending',1306473428,1306473428),(630,62,'none','Ascending',1306473428,1306473428),(578,63,'none','Ascending',1306404365,1306404365),(577,63,'none','Ascending',1306404365,1306404365),(576,63,'none','Ascending',1306404365,1306404365),(629,64,'none','Ascending',1306471158,1306471158),(628,64,'none','Ascending',1306471158,1306471158),(627,64,'none','Ascending',1306471158,1306471158),(635,65,'none','Ascending',1306746599,1306746599),(634,65,'none','Ascending',1306746599,1306746599),(633,65,'none','Ascending',1306746599,1306746599);

--
-- Table structure for table `bstock_pl_reportsummary`
--

CREATE TABLE `bstock_pl_reportsummary` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `report_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_reports table.',
  `summary_type` int(11) NOT NULL COMMENT 'Contains the serial number of summary type fields for a particular report. Stores in format like 0,1,2,3 & so on.',
  `column_name` varchar(250) NOT NULL COMMENT 'Column name on which the operation of SUM, AVG, MIN or MAX is to be done.',
  `created_date` int(11) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=179 DEFAULT CHARSET=latin1 COMMENT='Contains fields that are selected to SUM, AVG, MIN or MAX fo';

--
-- Dumping data for table `bstock_pl_reportsummary`
--

INSERT INTO `bstock_pl_reportsummary` VALUES (1,1,0,'cb:bstock_orderitems:profit_percent:Avg_Profit_Percent_AVG:3',0,0),(2,1,2,'cb:bstock_pl_purchaseorder:net_total:Net_Total_SUM:2',0,0),(3,1,1,'cb:bstock_pl_purchaseorder:subtotal:Sub_Total_AVG:3',0,0),(4,1,3,'cb:bstock_pl_purchaseorder:net_total:Net_Total_AVG:3',0,0),(5,1,4,'cb:bstock_pl_purchaseorder:subtotal:Sub_Total_MIN:4',0,0),(6,1,5,'cb:bstock_pl_purchaseorder:net_total:Net_Total_MIN:4',0,0),(7,1,6,'cb:bstock_pl_purchaseorder:subtotal:Sub_Total_MAX:5',0,0),(8,1,7,'cb:bstock_pl_purchaseorder:net_total:Net_Total_MAX:5',0,0),(9,1,8,'cb:bstock_pl_purchaseorder:brokerage:Brokerage_SUM:2',0,0),(10,1,9,'cb:bstock_pl_purchaseorder:brokerage:Brokerage_AVG:3',0,0),(11,1,10,'cb:bstock_pl_purchaseorder:brokerage:Brokerage_MIN:4',0,0),(12,1,11,'cb:bstock_pl_purchaseorder:brokerage:Brokerage_MAX:5',0,0),(13,9,0,'cb:bstock_pl_purchaseorder:subtotal:subtotal_SUM:2',1276590739,1276590739),(14,9,1,'cb:bstock_pl_purchaseorder:subtotal:subtotal_AVG:3',1276590740,1276590740),(15,9,2,'cb:bstock_pl_purchaseorder:subtotal:subtotal_MIN:4',1276590740,1276590740),(16,9,3,'cb:bstock_pl_purchaseorder:subtotal:subtotal_MAX:5',1276590740,1276590740),(17,9,4,'cb:bstock_pl_purchaseorder:brokerage:brokerage_AVG:3',1276590740,1276590740),(18,9,5,'cb:bstock_pl_purchaseorder:net_total:net_total_SUM:2',1276590740,1276590740),(19,9,6,'cb:bstock_pl_purchaseorder:net_total:net_total_AVG:3',1276590740,1276590740),(20,9,7,'cb:bstock_pl_purchaseorder:net_total:net_total_MIN:4',1276590740,1276590740),(21,9,8,'cb:bstock_pl_purchaseorder:net_total:net_total_MAX:5',1276590740,1276590740),(22,11,0,'cb:bstock_pl_purchaseorder:subtotal:subtotal_SUM:2',1276593742,1276593742),(23,11,1,'cb:bstock_pl_purchaseorder:subtotal:subtotal_AVG:3',1276593745,1276593745),(24,11,2,'cb:bstock_pl_purchaseorder:subtotal:subtotal_MIN:4',1276593746,1276593746),(25,11,3,'cb:bstock_pl_purchaseorder:subtotal:subtotal_MAX:5',1276593749,1276593749),(26,11,4,'cb:bstock_pl_purchaseorder:brokerage:brokerage_AVG:3',1276593749,1276593749),(27,11,5,'cb:bstock_pl_purchaseorder:net_total:net_total_SUM:2',1276593750,1276593750),(28,11,6,'cb:bstock_pl_purchaseorder:net_total:net_total_AVG:3',1276593750,1276593750),(29,11,7,'cb:bstock_pl_purchaseorder:net_total:net_total_MIN:4',1276593750,1276593750),(30,11,8,'cb:bstock_pl_purchaseorder:net_total:net_total_MAX:5',1276593750,1276593750),(31,17,0,'cb:bstock_orders:brokerage:brokerage_SUM:2',1276691934,1276691934),(32,17,1,'cb:bstock_orders:brokerage:brokerage_AVG:3',1276691935,1276691935),(33,17,2,'cb:bstock_orders:brokerage:brokerage_MIN:4',1276691935,1276691935),(34,17,3,'cb:bstock_orders:brokerage:brokerage_MAX:5',1276691935,1276691935),(35,17,4,'cb:bstock_orders:net_total:net_total_SUM:2',1276691935,1276691935),(36,17,5,'cb:bstock_orders:net_total:net_total_AVG:3',1276691935,1276691935),(37,17,6,'cb:bstock_orders:net_total:net_total_MIN:4',1276691935,1276691935),(38,17,7,'cb:bstock_orders:net_total:net_total_MAX:5',1276691935,1276691935),(39,18,0,'cb:bstock_orders:net_total:net_total_SUM:2',1276692773,1276692773),(122,47,0,'cb:bstock_pl_poitems:listprice:listprice_SUM:2',1280293802,1280293802),(151,23,0,'cb:bstock_orders:net_total:net_total_SUM:2',1306316963,1306316963),(139,22,1,'cb:bstock_pl_purchaseorder:net_total:net_total_SUM:2',1285053610,1285053610),(138,22,0,'cb:bstock_pl_purchaseorder:subtotal:subtotal_SUM:2',1285053610,1285053610),(55,31,0,'cb:bstock_orderitems:profit_amount:profit_amount_SUM:2',1277199613,1277199613),(56,31,1,'cb:bstock_orderitems:profit_amount:profit_amount_AVG:3',1277199613,1277199613),(57,31,2,'cb:bstock_orderitems:profit_percent:profit_percent_SUM:2',1277199613,1277199613),(58,31,3,'cb:bstock_orderitems:profit_percent:profit_percent_AVG:3',1277199613,1277199613),(103,42,0,'cb:trial_balance_entries:debit:debit_SUM:2',1280208747,1280208747),(104,42,1,'cb:trial_balance_entries:credit:credit_SUM:2',1280208747,1280208747),(106,44,0,'cb:bstock_orderitems:profit_amount:profit_amount_SUM:2',1280212568,1280212568),(125,48,0,'cb:bstock_pl_poitems:listprice:listprice_SUM:2',1281116408,1281116408),(135,51,0,'cb:bstock_orderitems:brokerage_1_amt_inr:brokerage_1_amt_inr_SUM:2',1283892221,1283892221),(140,54,0,'cb:bstock_pl_purchaseorder:dollar_rate:dollar_rate_SUM:2',1294057547,1294057547),(141,54,1,'cb:bstock_pl_purchaseorder:dollar_rate:dollar_rate_MIN:4',1294057547,1294057547),(142,54,2,'cb:bstock_pl_purchaseorder:dollar_rate:dollar_rate_MAX:5',1294057547,1294057547),(174,63,0,'cb:bstock_pl_purchaseorder:net_total:net_total_SUM:2',1306404365,1306404365),(178,64,0,'cb:bstock_orders:net_total:net_total_SUM:2',1306471158,1306471158);

--
-- Table structure for table `bstock_pl_save_searches`
--

CREATE TABLE `bstock_pl_save_searches` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `search_name` varchar(50) NOT NULL COMMENT 'This is the search name entered by the user.',
  `shape` varchar(250) NOT NULL COMMENT 'Shape of the diamond.',
  `size_from` decimal(10,2) NOT NULL COMMENT 'Size of the diamond.',
  `size_to` decimal(10,2) NOT NULL,
  `color_from` varchar(10) NOT NULL COMMENT 'Color of the diamond.',
  `color_to` varchar(10) NOT NULL,
  `clarity_from` varchar(10) NOT NULL COMMENT 'Clarity of the diamond.',
  `clarity_to` varchar(10) NOT NULL,
  `cut_from` varchar(50) NOT NULL COMMENT 'Cut of the diamond.',
  `cut_to` varchar(50) NOT NULL,
  `polish_from` varchar(50) NOT NULL COMMENT 'Polish of the diamond.',
  `polish_to` varchar(50) NOT NULL,
  `symmetry_from` varchar(50) NOT NULL COMMENT 'Symmetry of the diamond.',
  `symmetry_to` varchar(50) NOT NULL,
  `lab` varchar(20) NOT NULL COMMENT 'Certified by which lab i.e. GIA, IGI, etc.',
  `flourescence_from` varchar(50) NOT NULL COMMENT 'Flourescence of the diamond.',
  `flourescence_to` varchar(50) NOT NULL,
  `location` varchar(50) NOT NULL COMMENT 'Location of the diamond.',
  `stone_id` varchar(50) NOT NULL COMMENT 'Stone id / lot number of the diamond.',
  `customer_id` int(10) NOT NULL COMMENT 'Customer id which is primary key of bstock_customers table.',
  `ip_address` varchar(50) NOT NULL COMMENT 'IP Address from where the customer is logged in.',
  `created_date` varchar(50) NOT NULL COMMENT 'Timestamp when the search record was created.',
  `modified_date` varchar(50) NOT NULL COMMENT 'Timestamp when the search record was modified.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores all the saved searches.';

--
-- Dumping data for table `bstock_pl_save_searches`
--


--
-- Table structure for table `bstock_pl_seeit`
--

CREATE TABLE `bstock_pl_seeit` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `product_id` int(50) NOT NULL,
  `customer_id` int(50) NOT NULL,
  `is_seeit` enum('0','1') NOT NULL DEFAULT '0' COMMENT 'This field shall be used to check if the diamond is under current see it or not.',
  `is_more_seeit` enum('0','1') NOT NULL DEFAULT '0' COMMENT 'This shall determine if some onelse has seen a see it.',
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_seeit`
--


--
-- Table structure for table `bstock_pl_selectquery`
--

CREATE TABLE `bstock_pl_selectquery` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
  `report_id` int(11) NOT NULL COMMENT 'Foreign key that corresponds to primary key from bstock_pl_reports table.',
  `start_index` int(11) NOT NULL COMMENT 'Not sure of the purpose of this field.',
  `num_of_objects` int(11) NOT NULL COMMENT 'Not sure of the purpose of this field.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Not sure what this table does. We may not need this table.';

--
-- Dumping data for table `bstock_pl_selectquery`
--


--
-- Table structure for table `bstock_pl_selectqueryseq`
--

CREATE TABLE `bstock_pl_selectqueryseq` (
  `id` int(11) NOT NULL COMMENT 'Contains the id of the last created report.'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Contains only one record of the latest report id. We may not';

--
-- Dumping data for table `bstock_pl_selectqueryseq`
--


--
-- Table structure for table `bstock_pl_wishlist`
--

CREATE TABLE `bstock_pl_wishlist` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `product_id` int(10) NOT NULL,
  `customer_id` int(10) NOT NULL,
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_pl_wishlist`
--


--
-- Table structure for table `bstock_plugins`
--

CREATE TABLE `bstock_plugins` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `plugin_label` varchar(25) NOT NULL,
  `plugin_desc` varchar(500) NOT NULL,
  `folder_name` varchar(25) NOT NULL COMMENT 'This will store the folder name of that plugin',
  `class_file_name` varchar(25) NOT NULL COMMENT 'This will store the main/class file name',
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(50) NOT NULL,
  `modified_date` varchar(50) NOT NULL,
  `icon` varchar(250) NOT NULL COMMENT 'Contains name of the plugin icon.',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_plugins`
--

INSERT INTO `bstock_plugins` VALUES (1,'Wishlist','Adding to wishlist','Wishlist','Wishlist','on','','1265469043','Wishlist.png'),(3,'AddToCart','AddToCart','AddToCart','AddToCart','on','','1263192828','home_big.gif'),(5,'ExportToExcel','ExportToExcel','ExportToExcel','ExportToExcel','off','1263281971','1263281971','home_big.gif'),(6,'PrintIt','PrintIt','PrintIt','PrintIt','on','1263298312','1263298312','home_big.gif'),(9,'Statistics','This will record the stats.','Statistics','Statistics','off','1264168261','1264168261','Statistics.png'),(10,'Product Upload','Uploading products to db using csv','ProductUpload','ProductUpload','on','','','home_big.gif'),(12,'SaveSearches','SaveSearches - this will save the searches made by client from the search result page - baba','SaveSearches','SaveSearches','off','','','home_big.gif'),(13,'ExportToExcelWithPercent','Export to Excel allowing the customer/broker to add a % to the price field.','ExportToExcelWithPercent','ExportToExcelWithPercent','off','','','home_big.gif'),(15,'Purchase Order','purchase order','PurchaseOrder','PurchaseOrder','on','','','home_big.gif'),(16,'Reports','Reports module','Reports','Report','on','','','home_big.gif'),(17,'Invoice','SalesOrder','SalesOrder','SalesOrder','on','1267005563','1267005563','home.gif'),(19,'Assemble Jewelry','Assemble Jewelry','Jewelry','Jewelry','off','','',''),(20,'Approval','Approval','Jhangad','Jhangad','on','1269635676','1269635676',''),(21,'Daily Cashbook Entries','Daily Cashbook Entries','DailyCashEntries','DailyCashEntries','on','','',''),(22,'Enquiry Management System','Enquiry Management System','Ems','Ems','on','1263281971','1263281971','enquiry_module.png'),(23,'Sticker Generation','Sticker Generation','StickerGeneration','StickerGeneration','on','','','barcode_generation.png'),(24,'Verify Stock','Verify Stock','VerifyStock','VerifyStock','on','','','verify_stock.png'),(25,'Courier Approval','Courier Management','Courier','Courier','on','','','home.gif'),(26,'Approval Issue','Approval Issue','JhangadIssued','JhangadIssued','on','','','approval_issue.png'),(27,'Approval Return','Approval Return','JhangadReturn','JhangadReturn','on','','','approval_return.png'),(28,'Parcel Mixing','Parcel Mixing','ParcelMixing','ParcelMixing','on','','','parcel_mixing.png'),(29,'Sales Order Issued','Sales Order Issued','SalesOrderIssued','SalesOrderIssued','on','','','salesorder_issue.png'),(30,'Sales Order Return','Sales Order Return','SalesOrderReturn','SalesOrderReturn','on','','','salesorder_return.png'),(31,'CourierSO','CourierSO','CourierSO','CourierSO','on','1286637172','1286637172','salesorder_courier.png'),(32,'Special Stones','Special stones','SpecialStones','SpecialStones','on','124534543','123435435','special_stones.png'),(33,'Rapnet Uploaded Stock','RapnetUploadedStock','RapnetUploadedStock','RapnetUploadedStock','on','124534543','123435435','rapnet_upload.png'),(34,'Customer Upload','Customer Upload','CustomerUpload','CustomerUpload','on','1213123213','1231231231','home.gif'),(35,'Jhangad Upload','Jhangad Upload','JhangadUpload','JhangadUpload','on','','','home.gif'),(36,'MyAccount','MyAccount','MyAccount','MyAccount','on','1213123213','1231231231','home.gif'),(37,'Update Sales Price','UpdateSalesPrice','UpdateSalesPrice','UpdateSalesPrice','on','','','home.gif'),(38,'Expense Tracking','Expense Tracking','ExpenseTracking','ExpenseTracking','on','','',''),(39,'Business Loans','Interest Finance - Loans taken / given','BusinessLoans','BusinessLoans','on','','','home.gif'),(40,'ParcelSplitting','Parcel Splitting','ParcelSplitting','ParcelSplitting','on','','',''),(41,'Packet Master','Packet Master','PacketMaster','PacketMaster','on','1263279097','1263279097',''),(42,'Accounting','Accounting','Accounting','Accounting','on','1263279097','1263279096','');

--
-- Table structure for table `bstock_product_discounts`
--

CREATE TABLE `bstock_product_discounts` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `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.',
  `order_id` int(10) NOT NULL COMMENT 'Will contain the product id of the product.',
  `purpose` varchar(255) NOT NULL COMMENT 'Expense purpose.',
  `price` varchar(20) NOT NULL COMMENT 'Actual Expenses Incurred.',
  `date` varchar(20) NOT NULL COMMENT 'Date of expense.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1 COMMENT='Store the expenses of products in the system.';

--
-- Dumping data for table `bstock_product_discounts`
--

INSERT INTO `bstock_product_discounts` VALUES (1,'1272440387','1272440387',37,'test','50','04/30/2010'),(2,'1272440414','1272440414',2,'test 12','100','04/28/2010'),(3,'1273217433','1273217433',4,'Cleaning.','100','05/04/2010'),(4,'1273217779','1273217779',4,'Polishing','200','05/03/2010'),(5,'1273218326','1273218326',5,'Polishing.','1500','05/04/2010'),(6,'1273274831','1273274831',645,'certification','50','05/04/2010'),(7,'1273274930','1273274930',645,'polishing.','100','05/06/2010'),(8,'1273361761','1273361761',644,'certification ','500','05/07/2010'),(9,'1273361800','1273361800',644,'polishing ','300','05/07/2010'),(10,'1273615692','1273615692',646,'certification','100','05/05/2010'),(11,'1274684194','1274684194',0,'test','333','1273560994'),(12,'1274684194','1274684194',0,'test','333','1273560994'),(13,'1274696539','1274696539',0,'test','1111','1274178139'),(14,'1274696778','1274696778',0,'test','42325','1273832778'),(15,'1274697267','1274697267',2,'test','32232','1273574067'),(16,'1277233812','1277233812',44,'testing for new discount','890','1276110612'),(17,'1282119125','1282119125',51,'Relation','2','');

--
-- Table structure for table `bstock_product_expenses`
--

CREATE TABLE `bstock_product_expenses` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `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(10) NOT NULL COMMENT 'Will contain the product id of the product.',
  `purpose` varchar(255) NOT NULL COMMENT 'Expense purpose.',
  `price` varchar(20) NOT NULL COMMENT 'Actual Expenses Incurred.',
  `percent` decimal(10,2) NOT NULL,
  `date` varchar(20) NOT NULL COMMENT 'Date of expense.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the expenses of products in the system.';

--
-- Dumping data for table `bstock_product_expenses`
--


--
-- Table structure for table `bstock_product_history`
--

CREATE TABLE `bstock_product_history` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `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.',
  `stoneid` varchar(50) NOT NULL,
  `product_id` int(10) NOT NULL COMMENT 'Will contain the product id of the product.',
  `shape` enum('ROUND','PRINCESS','PEAR','MARQUISE','EMERALD','HEART','OVAL','CUSHION','TRIANGLE','ASCHER','RADIANT') NOT NULL,
  `size` decimal(10,2) NOT NULL,
  `flourescence` enum('ANY','NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY SLIGHT') NOT NULL DEFAULT 'NONE',
  `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,
  `price` varchar(100) NOT NULL DEFAULT '0',
  `piece_price` varchar(50) NOT NULL,
  `carat_price` varchar(50) NOT NULL,
  `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,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the history of products in the system.';

--
-- Dumping data for table `bstock_product_history`
--


--
-- Table structure for table `bstock_product_master`
--

CREATE TABLE `bstock_product_master` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'this will be referred as product_id in all other tables',
  `type_id` int(10) NOT NULL COMMENT 'type_id is used to map the record with main type_master table to knw which type of product is this',
  `product_name` varchar(500) NOT NULL,
  `vendor_id` int(10) NOT NULL COMMENT 'vendor_id is used to map with particular vendor with vendoe master table',
  `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_product_master`
--


--
-- Table structure for table `bstock_products`
--

CREATE TABLE `bstock_products` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `store_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.',
  `stoneid` varchar(50) NOT NULL,
  `serial_no` int(11) NOT NULL,
  `typeofstone` enum('Loose','Single') NOT NULL DEFAULT 'Loose' COMMENT 'This field will inform us that this field is loose or single stone',
  `shape` enum('ROUND','PRINCESS','PEAR','EMERALD','MARQUISE','HEART','OVAL','CUSHION','TRIANGLE','ASCHER','RADIANT','CHOKHI','TAPPERS','BAGUETTES','PEARLS','COLOR STONES') NOT NULL,
  `size` decimal(10,2) NOT NULL,
  `location` enum('Mumbai','Delhi') NOT NULL DEFAULT 'Mumbai',
  `is_active` enum('on','off') NOT NULL,
  `flourescence` enum('ANY','NONE','FAINT','MEDIUM','STRONG','VERY STRONG','SLIGHT','VERY   SLIGHT') NOT NULL DEFAULT 'NONE',
  `lab` enum('All Labs','GIA','IGI','HRD','AGS','PGS','VGR','EGL USA','EGL Israel','EGL Other','DCLA','Uncertified','Other') NOT NULL,
  `symmetry` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR','Ideal','Poor') NOT NULL,
  `polish` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR','Ideal','Poor') NOT NULL,
  `cut` enum('ANY','EXCELLENT','VERY GOOD','GOOD','FAIR','Ideal','Poor') NOT NULL,
  `clarity` enum('ANY','IF','VVS1','VVS2','VS1','VS2','SI1','SI2','SI3','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,
  `price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT 'This field is used as RAP $ price instead of rap_price.',
  `rap_price` decimal(10,2) NOT NULL COMMENT 'This field is not being used for any calculations as the ''price'' field is used instead of this.',
  `inr_price` decimal(10,2) NOT NULL,
  `inr_sale_price_with_margin` decimal(10,2) NOT NULL COMMENT 'This will store the sales price of that diamond in aud- (inr_sale_price_with_margin = piece_price_dollar  * margin * conversion rate) ',
  `total_sales_piece_price_with_margin` decimal(10,2) NOT NULL,
  `current_rap_price` decimal(10,2) NOT NULL COMMENT 'This field will store the latest rap price of that product. this willbe updated during rap update',
  `total_piece_price_asper_rap` decimal(10,2) NOT NULL COMMENT 'This will store the total piece price as per the rapnet price per carat. ',
  `conversion_rate` decimal(10,3) NOT NULL,
  `margin` decimal(10,2) NOT NULL,
  `cash_back` decimal(10,2) NOT NULL,
  `aadat` decimal(10,2) NOT NULL,
  `brokerage` decimal(10,2) NOT NULL,
  `purchase_price_dollar` decimal(10,2) NOT NULL,
  `purchase_price_inr` decimal(10,2) NOT NULL,
  `certificate_id` varchar(50) NOT NULL,
  `certificate_status` enum('Given','Back') NOT NULL DEFAULT 'Back',
  `discount` varchar(50) NOT NULL,
  `length` decimal(10,0) NOT NULL,
  `width` varchar(5) NOT NULL,
  `height` varchar(5) NOT NULL,
  `measurement` varchar(50) NOT NULL,
  `depth_percent` varchar(50) NOT NULL,
  `table_percent` varchar(50) NOT NULL,
  `country` enum('India','Hong Kong','USA','Belgium') NOT NULL,
  `qty` varchar(10) NOT NULL DEFAULT '1',
  `orignal_qty` decimal(10,2) NOT NULL,
  `purchase_price` varchar(10) NOT NULL,
  `vendorname` varchar(500) NOT NULL,
  `sellqty` int(5) NOT NULL,
  `jwl_category` enum('Ring','Bangles','Necklace','Earnings','Bracelet','Nose Ring','Painjan','Bajuband','KamarPata') NOT NULL,
  `category` enum('Loose','Single') NOT NULL,
  `piece_price_inr` decimal(10,2) NOT NULL,
  `piece_price_dollar` decimal(10,2) NOT NULL,
  `rough_to_polish_cost_price_dollar` decimal(10,2) NOT NULL COMMENT 'Cost price of the rough (in dollar) that is calculated while publishing the stone from ''RoughToPolish'' module.',
  `rough_to_polish_cost_price_inr` decimal(10,2) NOT NULL COMMENT 'Cost price of the rough (in INR) that is calculated while publishing the stone from ''RoughToPolish'' module.',
  `last_verified_date` int(50) NOT NULL COMMENT 'store the verification date',
  `status` enum('In Stock','Sold','Approval Placed','Approval Issued','Approval Issued Partial','Approval Couriered Full','Approval Couriered Partial','Approval Partially Returned','Approval Returned Full','Order Placed','Order Issued','Order Issued Partial','Order Couriered Full','Order Couriered Partial','Order Partially Returned','Order Returned Full','Onhold','Out Of Stock','On Approval') NOT NULL COMMENT 'different status of the stock',
  `verified` enum('0','1','2') NOT NULL COMMENT 'Enum value to check and uncheck verification',
  `is_special_stone` enum('true','false') NOT NULL,
  `is_rapnet_uploaded` enum('true','false') NOT NULL,
  `barcode_number` varchar(20) NOT NULL,
  `parcel_id` int(10) NOT NULL COMMENT 'Stores the parcel id of the parcel of which this product is part of.',
  `girdle` varchar(255) NOT NULL,
  `certificate_filename` varchar(250) NOT NULL,
  `depth` varchar(5) NOT NULL,
  `description` varchar(250) NOT NULL,
  `published` enum('on','off') NOT NULL COMMENT 'published on website',
  `supplier_id` int(11) NOT NULL,
  `partner_id` int(11) NOT NULL,
  `crown_height` float(10,2) NOT NULL,
  `pavilion_height` float(10,2) NOT NULL,
  `crown_angle` float(10,2) NOT NULL,
  `pavilion_angle` float(10,2) NOT NULL,
  `girdle_percentage` float(10,2) NOT NULL,
  `culet` float(10,2) NOT NULL,
  `report_no` varchar(100) NOT NULL,
  `laser_inscription` float(10,2) NOT NULL,
  `laser_inclusion` float(10,2) NOT NULL,
  `report_date` int(10) NOT NULL,
  `report_comments` varchar(500) NOT NULL,
  `key_to_symbol` varchar(100) NOT NULL,
  `table_inclusion` float(10,2) NOT NULL,
  `black_inclusion` float(10,2) NOT NULL,
  `charni_from` enum('ANY','+2','+4','+6','+8','+10','+11','+14','-2','-4','-6','-8','-10','-11','-14') NOT NULL,
  `charni_to` enum('ANY','+2','+4','+6','+8','+10','+11','+14','-2','-4','-6','-8','-10','-11','-14') NOT NULL,
  `measurement_in_mm` enum('ANY','+2mm','+2.5mm','+3mm','+4mm','-2mm') NOT NULL,
  `shade` enum('ANY','White','TTLC','LC','PLC') NOT NULL,
  `no_of_pieces` int(10) NOT NULL,
  `parent_id` int(10) NOT NULL,
  `parent_product_id` int(10) NOT NULL,
  `is_assorted` enum('Assorted','Unassorted') NOT NULL COMMENT 'Whether this parcel is assorted or unassorted.',
  `dummy_stock` enum('1','0') NOT NULL COMMENT 'This is set to 1 if the product purchased is from dummy purchase entry.',
  `packet_master_id` int(11) NOT NULL DEFAULT '0' COMMENT 'This field will store the packet master id from packet_master_id table.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COMMENT='Store the products in the system.';

--
-- Dumping data for table `bstock_products`
--

INSERT INTO `bstock_products` VALUES (1,1,'1322727155','1322727155','10',0,'Loose','ROUND',30.00,'Mumbai','on','','','','','','','',1500.00,1500.00,67500.00,50625.00,1518750.00,0.00,0.00,45.000,0.00,0.00,0.00,0.00,33750.00,1518750.00,'','Back','25',0,'','','','','','India','',30.00,'','',0,'Ring','Loose',2025000.00,45000.00,0.00,0.00,0,'In Stock','0','true','true','10RITFF',0,'','','','','on',0,0,0.00,0.00,0.00,0.00,0.00,0.00,'',0.00,0.00,0,'','',0.00,0.00,'','','','',0,0,0,'Unassorted','0',0),(2,1,'1322727159','1322727159','11',0,'Loose','',20.00,'Mumbai','on','','','','','','','',1000.00,1000.00,45000.00,33750.00,675000.00,0.00,0.00,45.000,0.00,0.00,0.00,0.00,15000.00,675000.00,'','Back','25',0,'','','','','','India','',20.00,'','',0,'Ring','Loose',900000.00,20000.00,0.00,0.00,0,'In Stock','0','true','true','11',0,'','','','','on',0,0,0.00,0.00,0.00,0.00,0.00,0.00,'',0.00,0.00,0,'','',0.00,0.00,'','','','',0,0,0,'Unassorted','0',0),(3,1,'1322727200','1322727200','12',0,'Loose','',20.00,'Mumbai','on','','','','','','','',2000.00,2000.00,90000.00,72000.00,1440000.00,0.00,0.00,45.000,0.00,0.00,0.00,0.00,32000.00,1440000.00,'','Back','20',0,'','','','','','India','',20.00,'','',0,'Ring','Loose',1800000.00,40000.00,0.00,0.00,0,'In Stock','0','true','true','12',0,'','','','','on',0,0,0.00,0.00,0.00,0.00,0.00,0.00,'',0.00,0.00,0,'','',0.00,0.00,'','','','',0,0,0,'Unassorted','0',0);

--
-- Table structure for table `bstock_products_history`
--

CREATE TABLE `bstock_products_history` (
  `id` int(20) NOT NULL AUTO_INCREMENT COMMENT 'primary id for the table',
  `product_id` int(20) NOT NULL COMMENT 'Product 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_products` enum('In Stock','Sold','Approval Placed','Approval Issued','Approval Issued Partial','Approval Couriered Full','Approval Couriered Partial','Approval Partially Returned','Approval Returned Full','Order Placed','Order Issued','Order Issued Partial','Order Couriered Full','Order Couriered Partial','Order Partially Returned','Order Returned Full','Deleted','Onhold') 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='product life cycle in table structure';

--
-- Dumping data for table `bstock_products_history`
--


--
-- Table structure for table `bstock_products_history_new`
--

CREATE TABLE `bstock_products_history_new` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `product_id` int(10) NOT NULL,
  `status` enum('In Stock','Sold','Approval Placed','Approval Issued','Approval Issued Partial','Approval Couriered Full','Approval Couriered Partial','Approval Partially Returned','Approval Returned Full','Order Placed','Order Issued','Order Issued Partial','Order Couriered Full','Order Couriered Partial','Order Partially Returned','Order Returned Full','Onhold','Out Of Stock','Sales Price Updated','Purchased','Mass Upload','Parcel Mixing') NOT NULL,
  `size` decimal(10,3) NOT NULL,
  `no_of_pieces` int(8) NOT NULL DEFAULT '1',
  `amount` decimal(10,3) NOT NULL,
  `order_appro_id` int(8) unsigned zerofill NOT NULL COMMENT 'Order ID / Approval ID',
  `customer_id` int(10) NOT NULL,
  `old_price` decimal(10,3) NOT NULL COMMENT 'In case price being updated through Update Price module, this field will store the previous price of the stone.',
  `current_rap_price` float(10,2) NOT NULL,
  `discount` float(10,2) NOT NULL,
  `created_date` varchar(25) NOT NULL,
  `modified_date` varchar(25) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='product life cycle in table structure';

--
-- Dumping data for table `bstock_products_history_new`
--


--
-- Table structure for table `bstock_products_jwl`
--

CREATE TABLE `bstock_products_jwl` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_order_id` int(11) NOT NULL,
  `so_order_id` int(11) NOT NULL,
  `product_id` int(10) NOT NULL COMMENT 'This column is will map particular product from bstock_product_master',
  `dollar_rate` decimal(10,0) NOT NULL,
  `category_id` int(11) NOT NULL COMMENT 'this id is used to get the information abt category from pl_cateogry table',
  `quantity` int(11) NOT NULL,
  `description` varchar(255) NOT NULL,
  `item_number` varchar(50) NOT NULL COMMENT 'field is related to product code which is for internal use',
  `price` varchar(50) NOT NULL,
  `metal_color` varchar(50) NOT NULL,
  `metal_weight` varchar(50) NOT NULL,
  `metal_karat` varchar(50) NOT NULL,
  `width` varchar(50) NOT NULL,
  `price_type` varchar(50) NOT NULL,
  `condition` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=71 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_products_jwl`
--

INSERT INTO `bstock_products_jwl` VALUES (1,0,0,5,45,2,0,'14k White Gold 1cttw Journey Diamond Pendant ','46080W','100','White','.1','24','.1','Fixed','New','on','',''),(2,0,0,4,0,2,0,'14k White Gold 1/2cttw Journey Diamond Pendant ','46071W','200','Gold','.1','24','.1','FIxed','New','on','',''),(3,0,0,3,45,3,0,'Walk down your memory lane with this 1/2 carat diamond pendant that represents your journey of love! Five bezel set brilliant diamonds descend in size as they bend and curve on a white gold path towards the largest diamond. This lovely gift comes on a 14 ','46072W','300','Silver','.1','24','.1','Fixed','New','on','',''),(4,0,0,2,0,3,0,'Stud Diamond Rings','46073W','400','Gold','.1','24','.1','Fixed','New','on','',''),(5,0,0,1,0,3,0,'Single Diamond Ring','46074W','300','Gold','30','30','30','Fixed','New','on','',''),(6,0,0,6,0,3,0,'Gemstone Ring with diamonds','46075W','100','Gold','.1','.1','5','Fixed','New','on','',''),(7,0,0,7,0,3,0,'Diamond Studed Rings with Gold','46076W','200','Gold','.2','.2','10','Fixed','New','on','',''),(8,0,0,8,0,3,0,'Eternity Rings with White Gold','46077W','300','White Gold','.3','.3','15','Fixed','New','on','',''),(9,0,0,9,0,3,0,'Dedicated Rings with Silver platings','46078W','400','Silver','.4','.4','20','Fixed','New','on','',''),(10,0,0,10,0,3,0,'Wedding Ring for special occasions','46079W','500','Silver','.5','.5','25','Fixed','New','on','',''),(11,0,0,11,0,3,0,'Engagement Ring with Gold','46080W','600','Gold','.6','.6','30','Fixed','New','on','',''),(12,0,0,12,0,3,0,'Desinger Ring with Wide range of variety','46081W','700','White Gold','.7','.7','35','Fixed','New','on','',''),(13,0,0,13,0,3,0,'Touch of Gold Ring in all range','46082W','800','White Gold','.8','.8','40','Fixed','New','on','',''),(14,0,0,14,0,3,0,'Touch of Silver Ring in all range','46083W','900','Silver','.9','.9','45','Fixed','New','on','',''),(15,0,0,15,1,0,1,'','','1000','Gold','1.0','1.0','50','Fixed','New','on','','1283728343'),(16,0,0,16,0,4,0,'Solitaire Gemstone Ring with diamonds','46084W','100','Gold','.1','.1','5','Fixed','New','on','',''),(17,0,0,17,0,4,0,'Solitaire Diamond Studed Rings with Gold','46085W','200','Gold','.2','.2','10','Fixed','New','on','',''),(18,0,0,18,0,4,0,'Solitaire Eternity Rings with White Gold','46086W','300','White Gold','.3','.3','15','Fixed','New','on','',''),(19,0,0,19,0,4,0,'Solitaire Dedicated Rings with Silver platings','46087W','400','Silver','.4','.4','20','Fixed','New','on','',''),(20,0,0,20,0,4,0,'Solitaire Wedding Ring for special occasions','46088W','500','Silver','.5','.5','25','Fixed','New','on','',''),(21,0,0,21,0,4,0,'Solitaire Engagement Ring with Gold','46089W','600','Gold','.6','.6','30','Fixed','New','on','',''),(22,0,0,22,0,4,0,'Solitaire Desinger Ring with Wide range of variety','46090W','700','White Gold','.7','.7','35','Fixed','New','on','',''),(23,0,0,23,0,4,0,'Solitaire Touch of Gold Ring in all range','46091W','800','White Gold','.8','.8','40','Fixed','New','on','',''),(24,0,0,24,0,4,0,'Solitaire Touch of Silver Ring in all range','46092W','900','Silver','.9','.9','45','Fixed','New','on','',''),(25,0,0,25,0,5,0,'Sidestone Gemstone Ring with diamonds','46093W','100','Gold','.1','.1','5','Fixed','New','on','',''),(26,0,0,26,0,5,0,'Sidestone Diamond Studed Rings with Gold','46095W','200','Gold','.2','.2','10','Fixed','New','on','',''),(27,0,0,27,0,5,0,'Sidestone Eternity Rings with White Gold','46096W','300','White Gold','.3','.3','15','Fixed','New','on','',''),(28,0,0,28,0,5,0,'Sidestone Dedicated Rings with Silver platings','46097W','400','Silver','.4','.4','20','Fixed','New','on','',''),(29,0,0,29,0,5,0,'Sidestone Wedding Ring for special occasions','4609W','500','Silver','.5','.5','25','Fixed','New','on','',''),(30,0,55,55,0,5,0,'Sidestone Engagement Ring with Gold','46099','600','Gold','.6','.6','30','Fixed','New','on','',''),(31,0,0,31,0,5,0,'Sidestone Desinger Ring with Wide range of variety','4609W','700','White Gold','.7','.7','35','Fixed','New','on','',''),(32,0,0,32,0,5,0,'Sidestone Touch of Gold Ring in all range','4601W','800','White Gold','.8','.8','40','Fixed','New','on','',''),(33,0,0,33,0,5,0,'Sidestone Touch of Silver Ring in all range','4692W','900','Silver','.9','.9','45','Fixed','New','on','',''),(34,0,0,34,0,87,0,'Mone Gemstone Ring with diamonds','46093W','100','Gold','.1','.1','5','Fixed','New','on','',''),(35,0,0,35,0,87,0,'Mone Diamond Studed Rings with Gold','46095W','200','Gold','.2','.2','10','Fixed','New','on','',''),(36,0,0,36,0,87,0,'Mone Eternity Rings with White Gold','46096W','300','White Gold','.3','.3','15','Fixed','New','on','',''),(37,0,0,37,0,87,0,'Mone Dedicated Rings with Silver platings','46097W','400','Silver','.4','.4','20','Fixed','New','on','',''),(38,0,0,38,0,87,0,'Mone Wedding Ring for special occasions','4609W','500','Silver','.5','.5','25','Fixed','New','on','',''),(39,0,0,39,0,87,0,'Mone Engagement Ring with Gold','46099','600','Gold','.6','.6','30','Fixed','New','on','',''),(40,0,0,40,0,87,0,'Mone Desinger Ring with Wide range of variety','4609W','700','White Gold','.7','.7','35','Fixed','New','on','',''),(41,0,0,41,0,87,0,'Mone Touch of Gold Ring in all range','4601W','800','White Gold','.8','.8','40','Fixed','New','on','',''),(42,0,0,42,0,87,0,'Mone Touch of Silver Ring in all range','4692W','900','Silver','.9','.9','45','Fixed','New','on','',''),(43,0,0,34,0,79,0,'Tension Gemstone Ring with diamonds','46093W','100','Gold','.1','.1','5','Fixed','New','on','',''),(44,0,0,35,0,79,0,'Tension Diamond Studed Rings with Gold','46095W','200','Gold','.2','.2','10','Fixed','New','on','',''),(45,0,0,36,0,79,0,'Tension Eternity Rings with White Gold','46096W','300','White Gold','.3','.3','15','Fixed','New','on','',''),(46,0,0,37,0,79,0,'Tension Dedicated Rings with Silver platings','46097W','400','Silver','.4','.4','20','Fixed','New','on','',''),(47,0,0,38,0,79,0,'Tension Wedding Ring for special occasions','4609W','500','Silver','.5','.5','25','Fixed','New','on','',''),(48,0,0,39,0,79,0,'Tension Engagement Ring with Gold','46099','600','Gold','.6','.6','30','Fixed','New','on','',''),(49,0,0,40,0,79,0,'Tension Desinger Ring with Wide range of variety','4609W','700','White Gold','.7','.7','35','Fixed','New','on','',''),(50,0,0,41,0,79,0,'Tension Touch of Gold Ring in all range','4601W','800','White Gold','.8','.8','40','Fixed','New','on','',''),(51,0,0,42,0,79,0,'Tension Touch of Silver Ring in all range','4692W','900','Silver','.9','.9','45','Fixed','New','on','',''),(52,0,58,56,1,0,1,'','','','','','','','','','on','1283757521','1283757521'),(53,0,59,58,1,0,1,'','','','','','','','','','on','1283759338','1283759338'),(54,0,60,59,1,0,1,'','','','','','','','','','on','1283777612','1283777612'),(55,0,62,60,1,0,1,'','','','','','','','','','on','1283852927','1283852927'),(56,0,70,61,1,0,1,'','','','','','','','','','on','1283873378','1283873378'),(57,0,71,62,1,0,1,'','','','','','','','','','on','1283873848','1283873848'),(58,0,72,63,1,0,1,'','','','','','','','','','on','1283875146','1283875146'),(59,0,79,64,1,0,1,'','','','','','','','','','on','1285668597','1285668597'),(60,0,80,65,1,0,1,'','','','','','','','','','on','1285668708','1285668708'),(61,0,81,66,1,0,1,'','','','','','','','','','on','1285668868','1285668868'),(62,0,82,67,1,0,1,'','','','','','','','','','on','1285668956','1285668956'),(63,0,83,68,1,0,1,'','','','','','','','','','on','1285669106','1285669106'),(64,0,84,69,1,0,1,'','','','','','','','','','on','1285676716','1285676716'),(65,0,85,70,1,0,1,'','','','','','','','','','on','1285678016','1285678016'),(66,0,86,71,1,0,1,'','','','','','','','','','on','1285678155','1285678155'),(67,0,87,72,1,0,1,'','','','','','','','','','on','1285678201','1285678201'),(68,0,88,73,1,0,1,'','','','','','','','','','on','1285678485','1285678485'),(69,0,89,74,1,0,1,'','','','','','','','','','on','1285680273','1285680273'),(70,0,90,75,1,0,1,'','','','','','','','','','on','1285680330','1285680330');

--
-- Table structure for table `bstock_products_metal_master`
--

CREATE TABLE `bstock_products_metal_master` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'field is used as metal_id to get the detail of the metal purchased',
  `product_id` int(11) NOT NULL COMMENT 'this is used to get the name of the indivual product',
  `metal_type_id` int(11) NOT NULL,
  `price` varchar(10) NOT NULL,
  `weight` varchar(10) NOT NULL,
  `available_weight_for_sale` decimal(10,0) NOT NULL,
  `karat_id` varchar(10) 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_products_metal_master`
--

INSERT INTO `bstock_products_metal_master` VALUES (1,1,1,'100','100',100,'1','',''),(2,2,2,'200','200',200,'2','',''),(3,3,3,'300','300',300,'1','',''),(4,4,1,'400','400',400,'2','','');

--
-- Table structure for table `bstock_products_orig`
--

CREATE TABLE `bstock_products_orig` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `store_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.',
  `stoneid` varchar(50) NOT NULL,
  `serial_no` int(11) NOT NULL,
  `shape` enum('ROUND','PRINCESS','PAN','MARQUISE','CHOKHI','HEART','OVAL','CUSHION','TRIANGLE','ASCHER','RADIANT') NOT NULL,
  `size` decimal(10,2) NOT NULL,
  `location` enum('All','Antwerp','Hong Kong','Mumbai','New York') NOT NULL,
  `ABC` varchar(50) NOT NULL COMMENT 'This field corresponds to Location.',
  `is_active` enum('on','off') 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,
  `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` varchar(255) NOT NULL,
  `weight` varchar(100) NOT NULL,
  `price` varchar(100) NOT NULL DEFAULT '0',
  `certificate_id` varchar(50) NOT NULL,
  `discount` varchar(50) NOT NULL,
  `measurement` varchar(50) NOT NULL,
  `depth_percent` varchar(50) NOT NULL,
  `table_percent` varchar(50) NOT NULL,
  `percent` varchar(25) NOT NULL COMMENT 'Discount.',
  `country` enum('India','Hong Kong','USA','Belgium') NOT NULL,
  `qty` int(10) NOT NULL DEFAULT '1',
  `orignal_qty` int(11) NOT NULL,
  `purchase_price` varchar(10) NOT NULL,
  `vendorname` enum('None','Bigg Stock','Vendor 1','Vendor 2') NOT NULL,
  `customername` varchar(255) NOT NULL,
  `sellprice` varchar(20) NOT NULL,
  `sellqty` int(5) NOT NULL,
  `totalprice` varchar(20) NOT NULL,
  `comments` varchar(500) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=741 DEFAULT CHARSET=latin1 COMMENT='Store the products in the system.';

--
-- Dumping data for table `bstock_products_orig`
--

INSERT INTO `bstock_products_orig` VALUES (2,1,'1267005563','1267005563','90.60/9',0,'ROUND',0.90,'Mumbai','','off','FAINT','GIA','VERY GOOD','VERY GOOD','VERY GOOD','SI1','G','','','3366','1109747116','-0.34','','64','59','','India',-7,0,'','None','Vishal Kothari','200',2,'400','Good profits.'),(3,1,'1267005563','1267005563','90.60/10A',0,'PRINCESS',1.01,'Mumbai','','off','NONE','GIA','VERY GOOD','VERY GOOD','','VS2','J','','','2470','2106747260','-0.35','','75.8','79','','India',-3,0,'','None','Harshad','100',5,'500','Loss incurred.'),(4,1,'1267005563','1267005563','90.60/11',0,'ROUND',0.81,'Mumbai','','off','NONE','GIA','VERY GOOD','EXCELLENT','VERY GOOD','SI1','D','','','3266','5106747123','-0.29','','63.6','57','','India',-5,0,'','None','Bigg Stock','250',1,'250','Should yeild profit.'),(5,1,'1267005563','1267005563','90.60/12A',0,'ROUND',0.57,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','VS1','L','','','1188','2106747124','-0.34','','59.9','60','','India',-3,0,'','None','Vishal Kothari','4000',1,'4000','Looks good.'),(6,1,'1267005563','1267005563','90.60/14',0,'',1.51,'Mumbai','','off','NONE','IGI','VERY GOOD','VERY GOOD','','VVS1','K','','','2420','S2E77301','-0.45','','70.8','70.5','','India',2,0,'','None','','',0,'',''),(7,1,'1267005563','1267005563','90.60/22A',0,'ROUND',0.52,'Mumbai','','off','STRONG','GIA','EXCELLENT','VERY GOOD','EXCELLENT','VS2','E','','','2109','5106747122','-0.43','','61.8','58','','India',-1,0,'','None','','',0,'',''),(8,1,'1267005563','1267005563','90.60/25',0,'ROUND',0.76,'Mumbai','','off','NONE','GIA','VERY GOOD','VERY GOOD','VERY GOOD','VS2','K','','','1440','2106747127','-0.4','','63.3','57','','India',1,0,'','None','','',0,'',''),(9,1,'1267005563','1267005563','90.60/32A',0,'PRINCESS',1.01,'Mumbai','','off','NONE','IGI','VERY GOOD','VERY GOOD','','VVS1','G','','','4070','S2E77300','-0.45','','73.2','79','','India',0,0,'','None','','',0,'',''),(10,1,'1267005563','1267005563','90.60/34',0,'ROUND',0.90,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','SI1','I','','','2604','5106747117','-0.38','','62.5','57','','India',0,0,'','None','','',0,'',''),(12,1,'1267005563','1267005563','90.60/8',0,'ROUND',1.14,'Mumbai','','off','NONE','IGI','EXCELLENT','EXCELLENT','EXCELLENT','IF','N','','','0','S2E77303','-0.4','','63.2','55','','India',1,0,'','None','','',0,'',''),(13,1,'1267005563','1267005563','90.60/24',0,'',1.01,'Mumbai','','off','NONE','IGI','VERY GOOD','GOOD','','VVS2','I','','','2750','S2E77302','-0.45','','72.5','68.5','','India',2,0,'','None','','',0,'',''),(14,1,'1267005563','1267005563','90.60/30',0,'',1.09,'Mumbai','','off','NONE','IGI','VERY GOOD','VERY GOOD','','VVS1','I','','','2860','S2E79388','-0.45','','67','66.5','','India',0,0,'','None','','',0,'',''),(15,1,'1267005563','1267005563','90.60/37',0,'',0.92,'Mumbai','','off','NONE','IGI','VERY GOOD','VERY GOOD','','VS1','H','','','2530','S2E79387','-0.45','','66.4','64','','India',1,0,'','None','','',0,'',''),(16,1,'1267005563','1267005563','90.60/35',0,'ROUND',0.90,'Mumbai','','off','NONE','IGI','EXCELLENT','VERY GOOD','EXCELLENT','VVS2','L','','','2108','S2E82366','-0.32','','63.4','57','','India',-1,0,'','None','','',0,'',''),(17,1,'1267005563','1267005563','90.60/40',0,'ROUND',1.07,'Mumbai','','off','NONE','IGI','EXCELLENT','VERY GOOD','VERY GOOD','VVS2','I','','','4620','S2E82365','-0.3','','63.5','56.5','','India',1,0,'','None','','',0,'',''),(18,1,'1267005563','1267005563','90.60/2',0,'ROUND',1.13,'Mumbai','','off','NONE','IGI','EXCELLENT','VERY GOOD','VERY GOOD','VVS2','K','','','3150','S2E84690','-0.37','','63.1','56','','India',1,0,'','None','','',0,'',''),(19,1,'1267005563','1267005563','90.60/28',0,'ROUND',1.00,'Mumbai','','off','NONE','IGI','VERY GOOD','VERY GOOD','VERY GOOD','VVS2','K','','','3000','S2E84691','-0.4','','63.8','55','','India',1,0,'','None','','',0,'',''),(20,1,'1267005563','1267005563','90.60/4A',0,'ROUND',0.54,'Mumbai','','off','FAINT','GIA','EXCELLENT','EXCELLENT','EXCELLENT','VVS1','L','','','1300','2106790233','-0.35','','62.2','57','','India',1,0,'','None','','',0,'',''),(21,1,'1267005563','1267005563','90.60/20',0,'ROUND',0.76,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','VVS2','H','','','3015','2106790229','-0.33','','62.3','59','','India',-2,0,'','None','','',0,'',''),(22,1,'1267005563','1267005563','90.60/26',0,'ROUND',0.91,'Mumbai','','off','NONE','GIA','EXCELLENT','VERY GOOD','VERY GOOD','VVS2','F','','','5226','2106790231','-0.33','','61.6','59','','India',-2,0,'','None','','',0,'',''),(23,1,'1267005563','1267005563','90.60/36',0,'ROUND',0.82,'Mumbai','','off','NONE','GIA','VERY GOOD','EXCELLENT','EXCELLENT','VS2','J','','','2044','5106790226','-0.27','','61.9','59','','India',-2,0,'','None','','',0,'',''),(24,1,'1267005563','1267005563','90.60/41',0,'ROUND',0.81,'Mumbai','','off','NONE','GIA','VERY GOOD','VERY GOOD','VERY GOOD','VVS2','G','','','3774','5106790227','-0.26','','63.2','58','','India',1,0,'','None','','',0,'',''),(25,1,'1267005563','1267005563','90.60/1',0,'ROUND',1.23,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','VS2','J','','','3600','1109789950','-0.25','','62.3','57','','India',-1,0,'','None','','',0,'',''),(26,1,'1267005563','1267005563','90.60/42',0,'ROUND',0.70,'Mumbai','','off','NONE','GIA','VERY GOOD','EXCELLENT','VERY GOOD','VVS1','G','','','3575','5106790225','-0.35','','63.2','56','','India',1,0,'','None','','',0,'',''),(27,1,'1267005563','1267005563','90.60/16B',0,'ROUND',0.60,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','VS1','G','','','2664','2106790232','-0.28','','62.6','59','','India',1,0,'','None','','',0,'',''),(28,1,'1267005563','1267005563','90.60/12B',0,'ROUND',0.56,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','L','','','1365','2106790230','-0.35','','61.3','61','','India',1,0,'','None','','',0,'',''),(29,1,'1267005563','1267005563','90.60/17',0,'ROUND',1.09,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','VVS1','G','','','7275','2106789951','-0.25','','62.8','58','','India',1,0,'','None','','',0,'',''),(30,1,'1267005563','1267005563','90.60/5',0,'ROUND',0.70,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','VS1','E','','','3696','5106784511','-0.34','','62.8','58','','India',1,0,'','None','','',0,'',''),(31,1,'1267005563','1267005563','90.60/21',0,'ROUND',0.51,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','VS2','E','','','2479','5106784507','-0.33','','60.8','59','','India',1,0,'','None','','',0,'',''),(32,1,'1267005563','1267005563','90.60/21B',0,'ROUND',0.52,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','VVS2','E','','','3111','5106781899','-0.39','','59.6','60','','India',1,0,'','None','','',0,'',''),(33,1,'1267005563','1267005563','90.60/27',0,'ROUND',0.80,'Mumbai','','off','NONE','GIA','EXCELLENT','VERY GOOD','EXCELLENT','VVS1','H','','','4000','5106784001','-0.2','','63.5','57','','India',1,0,'','None','','',0,'',''),(34,1,'1267005563','1267005563','90.60/15',0,'ROUND',1.08,'Mumbai','','off','NONE','IGI','EXCELLENT','VERY GOOD','EXCELLENT','VVS2','K','','','3150','S2E87266','-0.37','','62.1','59','','India',1,0,'','None','','',0,'',''),(35,1,'1267005563','1267005563','90.60/33',0,'ROUND',1.01,'Mumbai','','off','NONE','IGI','VERY GOOD','EXCELLENT','EXCELLENT','VS2','I','','','3850','S2E87265','-0.3','','63.3','57.5','','India',1,0,'','None','','',0,'',''),(36,1,'1267005563','1267005563','1',0,'ROUND',0.32,'Mumbai','','off','NONE','GIA','EXCELLENT','VERY GOOD','VERY GOOD','SI1','D','','','1280','','-0.36','','60.2','57','','India',1,0,'','None','','',0,'',''),(37,1,'1267005563','1267005563','2',0,'ROUND',0.30,'Mumbai','','off','NONE','GIA','VERY GOOD','VERY GOOD','VERY GOOD','VVS1','E','','','2142','','-0.37','','64.7','55','','India',1,0,'','None','','',0,'',''),(38,1,'1267005564','1267005564','3',0,'ROUND',0.73,'Mumbai','','off','NONE','IGI','EXCELLENT','VERY GOOD','EXCELLENT','SI1','H','','','1972','','-0.42','','58.9','59','','India',1,0,'','None','','',0,'',''),(39,1,'1267005563','1267005563','4',0,'ROUND',0.31,'Mumbai','','off','NONE','GIA','EXCELLENT','VERY GOOD','VERY GOOD','VS1','E','','','1716','','-0.34','','61.6','57','','India',1,0,'','None','','',0,'',''),(40,1,'1267005564','1267005564','100',0,'ROUND',5.01,'Mumbai','','off','SLIGHT','IGI','EXCELLENT','EXCELLENT','EXCELLENT','VS2','J','','','12600','','-0.4','','62.8','53.5','','India',1,0,'','None','','',0,'',''),(41,1,'1267005563','1267005563','5',0,'ROUND',0.36,'Mumbai','','off','NONE','GIA','EXCELLENT','VERY GOOD','EXCELLENT','VS1','E','','','1716','','-0.34','','58.8','62','','India',0,0,'','None','','',0,'',''),(42,1,'1267005563','1267005563','6',0,'ROUND',0.31,'Mumbai','','off','NONE','GIA','EXCELLENT','GOOD','VERY GOOD','VS2','E','','','1512','','-0.37','','60.4','59','','India',1,0,'','None','','',0,'',''),(43,1,'1267005564','1267005564','7',0,'ROUND',0.80,'Mumbai','','off','','IGI','VERY GOOD','EXCELLENT','EXCELLENT','SI1','J','','','1512','','-0.44','','61.5','59','','India',1,0,'','None','','',0,'',''),(44,1,'1267005563','1267005563','8',0,'ROUND',0.36,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','VS1','F','','','1608','','-0.33','','61.5','57','','India',1,0,'','None','','',0,'',''),(45,1,'1267005563','1267005563','9',0,'ROUND',0.32,'Mumbai','','off','NONE','GIA','VERY GOOD','VERY GOOD','EXCELLENT','VS2','F','','','1452','','-0.34','','61.2','58','','India',1,0,'','None','','',0,'',''),(46,1,'1267005564','1267005564','10',0,'ROUND',1.00,'Mumbai','','off','NONE','IGI','VERY GOOD','EXCELLENT','VERY GOOD','IF','F','','','8294','','-0.42','','60.6','61','','India',1,0,'','None','','',0,'',''),(47,1,'1267005564','1267005564','11',0,'ROUND',1.00,'Mumbai','','off','NONE','IGI','VERY GOOD','EXCELLENT','EXCELLENT','SI1','F','','','3900','','-0.4','','61.9','55.5','','India',1,0,'','None','','',0,'',''),(48,1,'1267005564','1267005564','12',0,'ROUND',1.00,'Mumbai','','off','','IGI','GOOD','VERY GOOD','VERY GOOD','VS1','G','','','4698','','-0.42','','59.2','60.5','','India',1,0,'','None','','',0,'',''),(49,1,'1267005564','1267005564','13',0,'ROUND',0.37,'Mumbai','','off','NONE','GIA','EXCELLENT','VERY GOOD','EXCELLENT','VS2','G','','','1292','','-0.32','','59.5','58','','India',1,0,'','None','','',0,'',''),(50,1,'1267005564','1267005564','14',0,'ROUND',0.52,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','VVS2','D','','','3575','','-0.35','','62.8','59','','India',1,0,'','None','','',0,'',''),(51,1,'1267005564','1267005564','15',0,'ROUND',0.51,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','VVS2','E','','','3468','','-0.32','','60.5','59','','India',1,0,'','None','','',0,'',''),(52,1,'1267005564','1267005564','16',0,'ROUND',0.51,'Mumbai','','off','NONE','GIA','VERY GOOD','GOOD','VERY GOOD','VVS2','E','','','3213','','-0.37','','57.9','62','','India',1,0,'','None','','',0,'',''),(53,1,'1267005564','1267005564','17',0,'ROUND',0.55,'Mumbai','','off','NONE','GIA','EXCELLENT','VERY GOOD','EXCELLENT','VVS2','E','','','3417','','-0.33','','59.3','61','','India',1,0,'','None','','',0,'',''),(54,1,'1267005564','1267005564','19',0,'ROUND',0.51,'Mumbai','','off','NONE','GIA','VERY GOOD','VERY GOOD','GOOD','VS2','E','','','2183','','-0.41','','62','59','','India',1,0,'','None','','',0,'',''),(55,1,'1267005564','1267005564','21',0,'ROUND',1.16,'Mumbai','','off','','IGI','VERY GOOD','EXCELLENT','EXCELLENT','VS2','H','','','4030','','-0.35','','61.8','56.5','','India',1,0,'','None','','',0,'',''),(56,1,'1267005564','1267005564','89',0,'ROUND',0.55,'Mumbai','','off','NONE','GIA','VERY GOOD','VERY GOOD','EXCELLENT','VS1','F','','','2560','','-0.36','','60.5','61','','India',1,0,'','None','','',0,'',''),(57,1,'1267005564','1267005564','22',0,'ROUND',1.06,'Mumbai','','off','NONE','IGI','EXCELLENT','EXCELLENT','EXCELLENT','SI1','H','','','3654','','-0.37','','62.5','59.5','','India',1,0,'','None','','',0,'',''),(58,1,'1267005564','1267005564','23',0,'ROUND',0.50,'Mumbai','','off','NONE','GIA','VERY GOOD','EXCELLENT','VERY GOOD','VS2','F','','','2240','','-0.36','','59','62','','India',1,0,'','None','','',0,'',''),(59,1,'1267005564','1267005564','90',0,'ROUND',0.52,'Mumbai','','off','MEDIUM','GIA','EXCELLENT','EXCELLENT','VERY GOOD','VS1','G','','','2257','','-0.39','','62.1','58','','India',1,0,'','None','','',0,'',''),(60,1,'1267005564','1267005564','25',0,'ROUND',1.03,'Mumbai','','off','NONE','IGI','EXCELLENT','EXCELLENT','EXCELLENT','VVS2','I','','','4554','','-0.31','','62.8','58','','India',1,0,'','None','','',0,'',''),(61,1,'1267005564','1267005564','27',0,'ROUND',1.02,'Mumbai','','off','STRONG','IGI','VERY GOOD','EXCELLENT','EXCELLENT','VS1','I','','','3245','','-0.45','','61.2','61','','India',1,0,'','None','','',0,'',''),(62,1,'1267005564','1267005564','28',0,'ROUND',0.71,'Mumbai','','off','NONE','GIA','GOOD','EXCELLENT','VERY GOOD','VS2','E','','','3050','','-0.39','','58.9','61','','India',1,0,'','None','','',0,'',''),(63,1,'1267005564','1267005564','30',0,'ROUND',1.15,'Mumbai','','off','NONE','IGI','EXCELLENT','VERY GOOD','EXCELLENT','VVS2','J','','','3696','','-0.34','','62.8','57','','India',1,0,'','None','','',0,'',''),(64,1,'1267005564','1267005564','117',0,'ROUND',2.04,'Mumbai','','off','SLIGHT','IGI','EXCELLENT','EXCELLENT','EXCELLENT','VS1','I','','','6510','','-0.38','','63','57','','India',1,0,'','None','','',0,'',''),(65,1,'1267005564','1267005564','34',0,'ROUND',0.70,'Mumbai','','off','MEDIUM','GIA','VERY GOOD','VERY GOOD','VERY GOOD','SI2','H','','','1643','','-0.47','','63.3','57','','India',1,0,'','None','','',0,'',''),(66,1,'1267005564','1267005564','35',0,'ROUND',0.81,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','SI1','E','','','3212','','-0.27','','64.1','55','','India',1,0,'','None','','',0,'',''),(67,1,'1267005564','1267005564','36',0,'ROUND',0.80,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','VVS1','F','','','5332','','-0.14','','61.1','57','','India',1,0,'','None','','',0,'',''),(68,1,'1267005564','1267005564','102',0,'PRINCESS',1.07,'Mumbai','','off','NONE','IGI','VERY GOOD','VERY GOOD','','VVS1','G','','','4292','','-0.42','','70.3','80','','India',1,0,'','None','','',0,'',''),(69,1,'1267005564','1267005564','103',0,'ROUND',0.91,'Mumbai','','off','MEDIUM','GIA','EXCELLENT','VERY GOOD','EXCELLENT','VS1','E','','','4624','','-0.32','','61.5','58','','India',1,0,'','None','','',0,'',''),(70,1,'1267005564','1267005564','118',0,'ROUND',0.90,'Mumbai','','off','FAINT','GIA','EXCELLENT','EXCELLENT','VERY GOOD','SI1','F','','','3575','','-0.35','','62.6','59','','India',1,0,'','None','','',0,'',''),(71,1,'1267005564','1267005564','104',0,'ROUND',0.93,'Mumbai','','off','NONE','GIA','VERY GOOD','VERY GOOD','VERY GOOD','SI1','G','','','3213','','-0.37','','63.1','57','','India',1,0,'','None','','',0,'',''),(72,1,'1267005564','1267005564','39',0,'ROUND',1.11,'Mumbai','','off','NONE','GIA','VERY GOOD','EXCELLENT','EXCELLENT','VVS2','E','','','8946','','-0.29','','61.7','57','','India',1,0,'','None','','',0,'',''),(73,1,'1267005564','1267005564','41',0,'ROUND',1.01,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','SI1','E','','','4760','','-0.3','','61.3','60','','India',1,0,'','None','','',0,'',''),(74,1,'1267005564','1267005564','91',0,'ROUND',1.04,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','SI1','E','','','4760','','-0.3','','63.3','57','','India',1,0,'','None','','',0,'',''),(75,1,'1267005564','1267005564','92',0,'ROUND',1.05,'Mumbai','','off','MEDIUM','GIA','EXCELLENT','EXCELLENT','EXCELLENT','VVS2','F','','','7820','','-0.32','','60.7','60','','India',1,0,'','None','','',0,'',''),(76,1,'1267005564','1267005564','111',0,'PRINCESS',0.90,'Mumbai','','off','NONE','IGI','VERY GOOD','GOOD','','VS1','L','','','1219','','-0.47','','75.7','79.7','','India',1,0,'','None','','',0,'',''),(77,1,'1267005564','1267005564','42',0,'ROUND',1.07,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','VS2','G','','','5112','','-0.29','','59.6','59','','India',0,0,'','None','','',0,'',''),(78,1,'1267005564','1267005564','112',0,'ROUND',1.05,'Mumbai','','off','MEDIUM','GIA','EXCELLENT','EXCELLENT','EXCELLENT','SI1','G','','','3843','','-0.37','','62.7','57','','India',1,0,'','None','','',0,'',''),(79,1,'1267005564','1267005564','113',0,'ROUND',1.00,'Mumbai','','off','MEDIUM','GIA','EXCELLENT','EXCELLENT','GOOD','SI2','G','','','3180','','-0.4','','63.3','60','','India',1,0,'','None','','',0,'',''),(80,1,'1267005564','1267005564','95',0,'ROUND',1.14,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','VERY GOOD','SI2','H','','','3417','','-0.33','','63.5','56','','India',1,0,'','None','','',0,'',''),(81,1,'1267005564','1267005564','43',0,'ROUND',1.21,'Mumbai','','off','NONE','IGI','VERY GOOD','EXCELLENT','EXCELLENT','IF','I','','','4896','','-0.32','','63.2','57.5','','India',1,0,'','None','','',0,'',''),(82,1,'1267005564','1267005564','96',0,'ROUND',1.33,'Mumbai','','off','FAINT','GIA','EXCELLENT','EXCELLENT','EXCELLENT','VS1','F','','','7360','','-0.2','','61.6','57','','India',1,0,'','None','','',0,'',''),(83,1,'1267005564','1267005564','45',0,'ROUND',1.23,'Mumbai','','off','MEDIUM','GIA','VERY GOOD','EXCELLENT','EXCELLENT','VVS1','H','','','5904','','-0.28','','61.1','61','','India',1,0,'','None','','',0,'',''),(84,1,'1267005564','1267005564','47',0,'ROUND',1.50,'Mumbai','','off','NONE','GIA','GOOD','EXCELLENT','VERY GOOD','VVS2','E','','','11900','','-0.3','','60','60','','India',1,0,'','None','','',0,'',''),(85,1,'1267005564','1267005564','48',0,'ROUND',1.51,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','VVS1','G','','','9576','','-0.24','','62.9','55','','India',1,0,'','None','','',0,'',''),(86,1,'1267005564','1267005564','119',0,'ROUND',1.50,'Mumbai','','off','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','VS2','G','','','7056','','-0.28','','62.2','58','','India',1,0,'','None','','',0,'',''),(87,1,'1267005564','1267005564','114',0,'ROUND',1.56,'Mumbai','','off','STRONG','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','H','','','7280','','-0.3','','61.9','57','','India',1,0,'','None','','',0,'',''),(88,1,'1267005564','1267005564','120',0,'ROUND',1.55,'Mumbai','','off','FAINT','GIA','EXCELLENT','VERY GOOD','VERY GOOD','VVS1','H','','','7575','','-0.25','','62.9','58','','India',1,0,'','None','','',0,'',''),(89,1,'1267005564','1267005564','54',0,'ROUND',1.24,'Mumbai','','off','NONE','IGI','EXCELLENT','EXCELLENT','EXCELLENT','VVS2','J','','','3808','','-0.32','','62.9','58','','India',1,0,'','None','','',0,'',''),(90,1,'1267005564','1267005564','55',0,'ROUND',1.24,'Mumbai','','off','SLIGHT','IGI','VERY GOOD','EXCELLENT','EXCELLENT','VVS1','K','','','3276','','-0.37','','62.5','58','','India',1,0,'','None','','',0,'',''),(91,1,'1267005564','1267005564','56',0,'ROUND',1.26,'Mumbai','','off','STRONG','IGI','VERY GOOD','EXCELLENT','EXCELLENT','VVS2','K','','','3000','','-0.4','','61.2','60','','India',1,0,'','None','','',0,'',''),(92,1,'1267005564','1267005564','105',0,'PRINCESS',1.02,'Mumbai','','off','NONE','IGI','VERY GOOD','VERY GOOD','','VVS2','K','','','1908','','-0.47','','73.9','73.5','','India',1,0,'','None','','',0,'',''),(93,1,'1267005564','1267005564','106',0,'',1.11,'Mumbai','','off','NONE','IGI','VERY GOOD','VERY GOOD','','VVS1','K','','','1776','','-0.52','','67.4','63.5','','India',1,0,'','None','','',0,'',''),(94,1,'1267005564','1267005564','58',0,'',0.50,'Mumbai','','off','NONE','GIA','GOOD','EXCELLENT','','VS1','G','','','1260','','-0.55','','60','78','','India',1,0,'','None','','',0,'',''),(95,1,'1267005564','1267005564','59',0,'ROUND',1.20,'Mumbai','','off','NONE','IGI','EXCELLENT','EXCELLENT','EXCELLENT','SI1','K','','','2440','','-0.39','','62.3','57','','India',1,0,'','None','','',0,'',''),(96,1,'1267005564','1267005564','60',0,'',0.76,'Mumbai','','off','NONE','GIA','GOOD','VERY GOOD','','VVS2','G','','','2070','','-0.55','','66.3','75','','India',1,0,'','None','','',0,'',''),(97,1,'1267005564','1267005564','61',0,'',0.91,'Mumbai','','off','NONE','GIA','VERY GOOD','VERY GOOD','','VS1','F','','','2800','','-0.5','','66.5','74','','India',1,0,'','None','','',0,'',''),(98,1,'1267005564','1267005564','62',0,'ROUND',1.51,'Mumbai','','off','NONE','IGI','VERY GOOD','EXCELLENT','VERY GOOD','VS1','H','','','5874','','-0.34','','64','55.5','','India',1,0,'','None','','',0,'',''),(99,1,'1267005564','1267005564','63',0,'ROUND',1.56,'Mumbai','','off','NONE','IGI','EXCELLENT','EXCELLENT','EXCELLENT','VS2','H','','','5893','','-0.29','','60.7','56.5','','India',1,0,'','None','','',0,'',''),(100,1,'1267005564','1267005564','64',0,'ROUND',1.50,'Mumbai','','off','NONE','IGI','VERY GOOD','VERY GOOD','VERY GOOD','VS2','H','','','5312','','-0.36','','64','55.5','','India',1,0,'','None','','',0,'',''),(643,1,NULL,'1272311174','111',0,'ROUND',5.00,'Antwerp','','off','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','D','','','1000','222','40','2','4','4','','India',5,0,'','None','','',0,'',''),(644,1,'1272313608','1272313608','999',0,'ROUND',1.00,'All','','off','FAINT','IGI','VERY GOOD','EXCELLENT','EXCELLENT','VVS1','D','','','2000','888','50','4','1','1','','India',5,0,'2000','Bigg Stock','Vishal Kothari','12000',1,'12000','Enter order comments here.'),(645,1,'1273274684','1273274684','abc',0,'ROUND',0.20,'All','','off','NONE','GIA','VERY GOOD','VERY GOOD','EXCELLENT','IF','D','','','4000','111','0.4','1','1','1','','India',1,0,'2000','Bigg Stock','Vishal Kothari','2500',1,'2500','small profit.'),(647,22,'1267005563','1267005563','323',0,'ROUND',1.00,'All','','off','FAINT','All Labs','ANY','ANY','ANY','ANY','ANY','2342','1','1000','1','10','1','1','1','','India',1,0,'111','Bigg Stock','test ','1000',1,'1111','comment comments'),(648,1275047202,'1275047202','time()','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','',',','','','','','','India',0,0,'','Bigg Stock','','',0,'','comments'),(649,1,'1275047690','1275047690','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','',',','','','','','','India',0,0,'','Bigg Stock','','',0,'','comments'),(650,1,'1275137955','1275137955','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','','ANY',' ','','ANY',',','','','','','','India',0,0,'ANY','Bigg Stock','','',0,'ANY','comments'),(651,1,'1275288300','1275288300','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(652,1,'1275288428','1275288428','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(653,1,'1275288459','1275288459','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(654,1,'1275288653','1275288653','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(655,1,'1275294070','1275294070','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(656,1,'1275297932','1275297932','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(657,1,'1275307959','1275307959','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(658,1,'1275309207','1275309207','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(659,1,'1275309370','1275309370','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(660,1,'1275309403','1275309403','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(661,1,'1275309422','1275309422','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(662,1,'1275309565','1275309565','',0,'',0.00,'','','off','','','','','ANY','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(663,1,'1275309593','1275309593','',0,'',0.00,'','','off','','','','','ANY','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(664,1,'1275310965','1275310965','',0,'',0.00,'','','off','','','','','ANY','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(665,1,'1275311141','1275311141','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','','EXCELLENT','','ANY',' ','','IF',',','','','','','','India',0,0,'IF','None','','',0,'IF','comments'),(666,1,'1275311452','1275311452','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','','EXCELLENT','IF','ANY',' ','','333',',','','','','','','India',2,0,'333','None','','',0,'333','comments'),(667,1,'1275311787','1275311787','34',0,'ROUND',1.00,'Antwerp','','off','FAINT','GIA','EXCELLENT','','EXCELLENT','IF','D',' ','','4444',',222222222','25','1','1','1','','',3,0,'4444','','','',0,'4444','comments'),(668,1,'1275315023','1275315023','2223',0,'PRINCESS',0.23,'All','','off','ANY','All Labs','ANY','GOOD','EXCELLENT','IF','D',' ','','2222',',34242','2','1','1','1','','India',2,0,'2222','','','',0,'2222','comments'),(669,1,'1275315857','1275315857','2222',0,'',1.00,'All','','off','STRONG','GIA','EXCELLENT','EXCELLENT','EXCELLENT','VVS1','E',' ','','2222',',222222222','22','2','5','7','','',3,0,'2222','Bigg Stock','','',0,'2222','comments'),(670,1,'1275315864','1275315864','2222',0,'',1.00,'All','','off','STRONG','GIA','EXCELLENT','EXCELLENT','EXCELLENT','VVS1','E',' ','','2222',',222222222','22','2','5','7','','',2,0,'2222','Bigg Stock','','',0,'2222','comments'),(671,1,'1275388586','1275388586','111',0,'ROUND',2.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','786',',23234243243','65','1','1','1','','India',6,0,'786','Bigg Stock','','',0,'786','comments'),(672,1,'1275388661','1275388661','111',0,'ROUND',2.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','786',',23234243243','65','1','1','1','','India',6,0,'786','Bigg Stock','','',0,'786','comments'),(673,1,'1275389199','1275389199','2323',0,'PRINCESS',1.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','222',',3423423423','','1','11','1','','India',34,0,'222','','','',0,'222','comments'),(674,1,'1275397492','1275397492','',0,'',0.00,'','','off','','','','','','','',' ','','0',',','','','','','','',0,0,'0','','','',0,'0','comments'),(675,1,'1275449590','1275449590','2342',0,'MARQUISE',1.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','333',',3242423423','12','1','1','1','','India',2,0,'333','','','',0,'333','comments'),(676,1,'1275458671','1275458671','',0,'ROUND',1.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','33333',',','','','','','','India',1,0,'33333','Bigg Stock','','',0,'33333','comments'),(677,1,'1275461287','1275461287','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','432',',','','','','','','India',2,0,'432','None','','',0,'432','comments'),(678,1,'1275485692','1275485692','3242',0,'ROUND',1.00,'Antwerp','','off','FAINT','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','D',' ','','2342',',23423423423423432','2','2','1','1','','USA',2,0,'2342','','','',0,'2342','comments'),(679,1,'1275485721','1275485721','3242',0,'ROUND',1.00,'Antwerp','','off','FAINT','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','D',' ','','2342',',23423423423423432','2','2','1','1','','USA',2,0,'2342','','','',0,'2342','comments'),(680,1,'1275587069','1275587069','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2233',',','','','','','','India',22,0,'2233','','','',0,'2233','comments'),(681,1,'1275718232','1275718232','333',0,'RADIANT',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','322',',555','1','1','1','1','','India',3,0,'322','','','',0,'322','comments'),(682,1,'1275718232','1275718232','333',0,'RADIANT',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','322',',555','1','1','1','1','','India',3,0,'322','','','',0,'322','comments'),(683,1,'1275718232','1275718232','333',0,'RADIANT',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','322',',555','1','1','1','1','','India',3,0,'322','','','',0,'322','comments'),(684,1,'1275718467','1275718467','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','33333',',','','','','','','India',2,0,'33333','Bigg Stock','','',0,'33333','comments'),(685,1,'1275718467','1275718467','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','33333',',','','','','','','India',2,0,'33333','Bigg Stock','','',0,'33333','comments'),(686,1,'1275718467','1275718467','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','33333',',','','','','','','India',2,0,'33333','Bigg Stock','','',0,'33333','comments'),(687,1,'1275718814','1275718814','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2342',',','','','','','','India',1,0,'2342','Bigg Stock','','',0,'2342','comments'),(688,1,'1275719177','1275719177','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','333',',','','','','','','India',3,0,'333','None','','',0,'333','comments'),(689,1,'1275719901','1275719901','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','333',',','','','','','','India',2,0,'333','','','',0,'333','comments'),(690,1,'1275729302','1275729302','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2342',',','','','','','','India',2,0,'2342','','','',0,'2342','comments'),(691,1,'1275730445','1275730445','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2342',',','','','','','','India',2,0,'2342','','','',0,'2342','comments'),(692,1,'1275732085','1275732085','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','322',',','','','','','','India',1,0,'322','Bigg Stock','','',0,'322','comments'),(693,1,'1276066363','1276066363','',0,'ROUND',0.57,'','','off','','','','EXCELLENT','EXCELLENT','VS1','L',' ','','1188',',','','','','','','',1,0,'1188','','','',0,'1188','comments'),(694,1,'1276066604','1276066604','',0,'ROUND',0.57,'','','off','','','','EXCELLENT','EXCELLENT','VS1','L',' ','','1188',',','','','','','','',1,0,'1188','','','',0,'1188','comments'),(695,1,'1276094427','1276094427','',0,'ROUND',0.85,'','','off','','','','VERY GOOD','VERY GOOD','SI1','L',' ','','1400',',','','','','','','',1,0,'1400','','','',0,'1400','comments'),(696,1,'1276242984','1276242984','',0,'',1.51,'','','off','','','','VERY GOOD','','VVS1','K',' ','','2420',',','','','','','','',1,0,'2420','','','',0,'2420','comments'),(697,1,'1276520041','1276520041','9090',0,'PRINCESS',0.80,'New York','','off','ANY','IGI','FAIR','GOOD','VERY GOOD','VVS1','D',' ','','100',',1234','30','2','1','2','','USA',5,0,'100','','','',0,'100','comments'),(698,1,'1276520636','1276520636','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(699,1,'1276520636','1276520636','',0,'',2.00,'All','','off','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','F',' ','','200',',','','','','','','India',2,0,'200','Bigg Stock','','',0,'200','comments'),(700,1,'1276520747','1276520747','',0,'',1.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','200',',','','','','','','India',2,0,'200','','','',0,'200','comments'),(701,1,'1276520863','1276520863','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(702,1,'1276520881','1276520881','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(703,1,'1276520953','1276520953','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(704,1,'1276521306','1276521306','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','100',',','','','','','','India',1,0,'100','Bigg Stock','','',0,'100','comments'),(705,1,'1276581400','1276581400','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2342',',','','','','','','India',2,0,'2342','','','',0,'2342','comments'),(706,1,'1276586239','1276586239','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(707,1,'1276586295','1276586295','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(708,1,'1276586447','1276586447','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(709,1,'1276586506','1276586506','',0,'',0.00,'','','off','','','','','','','',' ','','',',','','','','','','',0,0,'','','','',0,'','comments'),(710,1,'1277402702','1277402702','',0,'ROUND',2.00,'All','','off','ANY','All Labs','EXCELLENT','EXCELLENT','EXCELLENT','IF','D',' ','','3421',',','','','','','','India',22,0,'3421','None','','',0,'3421','comments'),(711,1,'1277402890','1277402890','',0,'ROUND',2.00,'All','','off','NONE','All Labs','EXCELLENT','EXCELLENT','EXCELLENT','VVS1','D',' ','','2342',',','','','','','','India',32,0,'2342','','','',0,'2342','comments'),(712,1,'1277402927','1277402927','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2343',',','','','','','','India',23,0,'2343','','','',0,'2343','comments'),(713,1,'1277403112','1277403112','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2343',',','','','','','','India',23,0,'2343','','','',0,'2343','comments'),(714,1,'1277405569','1277405569','',0,'ROUND',2.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','3453',',','','','','','','India',23,0,'3453','','','',0,'3453','comments'),(715,1,'1277405654','1277405654','',0,'ROUND',2.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','3453',',','','','','','','India',23,0,'3453','','','',0,'3453','comments'),(716,1,'1277809664','1277809664','',0,'ROUND',2.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2322',',','','','','','','India',2,2,'2322','Bigg Stock','','',0,'2322','comments'),(717,1,'1277812121','1277812121','',0,'ROUND',1.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2422',',','','','','','','India',2,2,'2422','Bigg Stock','','',0,'2422','comments'),(718,1,'1277812711','1277812711','',0,'ROUND',2.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','3322',',','','','','','','India',2,2,'3322','','','',0,'3322','comments'),(719,1,'1277814773','1277814773','',0,'ROUND',1.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2322',',','','','','','','India',3,3,'2322','','','',0,'2322','comments'),(720,1,'1277814862','1277814862','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2322',',','','','','','','India',33,33,'2322','Bigg Stock','','',0,'2322','comments'),(721,1,'1277901971','1277901971','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','4.444',',','','','','','','India',3,3,'4.444','','','',0,'4.444','comments'),(722,1,'1277902017','1277902017','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','4.444',',','','','','','','India',3,3,'4.444','','','',0,'4.444','comments'),(723,1,'1277903024','1277903024','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','3343',',','','','','','','India',2,2,'3343','Bigg Stock','','',0,'3343','comments'),(724,1,'1277903901','1277903901','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','333',',','','','','','','India',3,3,'333','','','',0,'333','comments'),(725,1,'1277904553','1277904553','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2222',',','','','','','','India',2,2,'2222','','','',0,'2222','comments'),(726,1,'1277904809','1277904809','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','4000',',','','','','','','India',2,2,'4000','','','',0,'4000','comments'),(727,1,'1277965748','1277965748','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','3423',',','','','','','','India',2,0,'3423','','','',0,'3423','comments'),(728,1,'1277967705','1277967705','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','3.333',',','','','','','','India',3,0,'3.333','Bigg Stock','','',0,'3.333','comments'),(729,1,'1277969543','1277969543','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2222',',','','','','','','India',3,0,'2222','','','',0,'2222','comments'),(730,1,'1277970076','1277970076','',0,'ROUND',0.00,'All','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2.222',',','','','','','','India',3,0,'2.222','','','',0,'2.222','comments'),(731,1,'1278339932','1278339932','A12B',0,'',9.00,'Mumbai','','off','MEDIUM','GIA','EXCELLENT','EXCELLENT','EXCELLENT','SI1','S',' ','','300',',ADC1234','12','10','4','4','','India',100,0,'300','','','',0,'300','comments'),(732,1,'1281616632','1281616632','111',0,'PRINCESS',0.90,'All','','off','NONE','GIA','VERY GOOD','VERY GOOD','EXCELLENT','VVS1','D','','','1200','222','-0.3','1','66','54','','India',1,0,'','None','','',0,'',''),(733,1,'1281619445','1281619445','111',0,'ROUND',0.90,'','','off','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','D',' ','','1455',',222','-0.3','1','66','54','','',1,0,'1455','','','',0,'1455','comments'),(734,1,'1281619568','1281619568','222',0,'PRINCESS',1.20,'','','off','NONE','GIA','VERY GOOD','GOOD','VERY GOOD','VVS1','E',' ','','900',',333','0.35','1','64','52','','',1,0,'900','','','',0,'900','comments'),(735,1,'1281962239','1281962239','90909',0,'ROUND',0.80,'','','off','NONE','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','D',' ','','200',',1234','30','2','1','2','','',1,0,'200','','','',0,'200','comments'),(736,1,'1281965033','1281965033','9090',0,'ROUND',2.00,'','','off','MEDIUM','GIA','EXCELLENT','EXCELLENT','EXCELLENT','IF','D',' ','','4900',',','','','','','','',2,0,'4900','','','',0,'4900','comments'),(737,1,'1283364225','1283364225','',0,'ROUND',1.00,'','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','1000',',','','','','','','',2,0,'1000','','','',0,'1000','comments'),(738,1,'1283364225','1283364225','',0,'ROUND',2.00,'','','off','ANY','All Labs','VERY GOOD','VERY GOOD','EXCELLENT','VVS1','E',' ','','500',',','','','','','','',3,0,'500','','','',0,'500','comments'),(739,1,'1283367442','1283367442','',0,'ROUND',2.00,'','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','2500',',','','','','','','',2,0,'2500','','','',0,'2500','comments'),(740,1,'1283367442','1283367442','',0,'ROUND',1.00,'','','off','ANY','All Labs','ANY','ANY','ANY','ANY','ANY',' ','','1000',',','','','','','','',1,0,'1000','','','',0,'1000','comments');

--
-- Table structure for table `bstock_products_polish_master`
--

CREATE TABLE `bstock_products_polish_master` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `product_id` int(10) NOT NULL,
  `item_nbr` int(10) NOT NULL DEFAULT '1' COMMENT 'Can be used in future if multiple  stores are added.',
  `created_date` int(11) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was created.',
  `modified_date` int(11) DEFAULT NULL COMMENT 'This will contain the timestamp when this product was last modified.',
  `product_name` varchar(50) NOT NULL,
  `shape` enum('ROUND','PRINCESS','PEAR','MARQUISE','EMERALD','HEART','OVAL','CUSHION','TRIANGLE','ASCHER','RADIANT') NOT NULL,
  `product_desc` varchar(255) NOT NULL,
  `location` enum('All','Antwerp','Hong Kong','Mumbai','New York') NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `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,
  `is_promotional` enum('off','on') NOT NULL,
  `is_month_offer` enum('off','on') NOT NULL,
  `is_featured` enum('off','on') NOT NULL,
  `certificate` varchar(255) NOT NULL,
  `promotional_price` decimal(25,0) NOT NULL,
  `price` varchar(100) NOT NULL DEFAULT '0',
  `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,
  `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,
  `country` enum('India','Hong Kong','USA','Belgium') NOT NULL,
  `qty` varchar(10) NOT NULL DEFAULT '1',
  `product_category` varchar(100) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=676 DEFAULT CHARSET=latin1 COMMENT='Store the products in the system.';

--
-- Dumping data for table `bstock_products_polish_master`
--

INSERT INTO `bstock_products_polish_master` VALUES (673,4,1,0,0,'Round Diamond Jewelry','ROUND','Round Diamond Jewelry','All','on','NONE','All Labs','EXCELLENT','EXCELLENT','on','on','on','yes',100,'122.00','1','1','1','1','1','1','1','1','1','1','1','1','India','1','1'),(674,4,1,0,0,'Princess Diamond Jewelry','PRINCESS','Princess Diamond Jewelry','All','on','NONE','All Labs','ANY','ANY','on','on','on','2',1000,'1200.00','2','1300.00','2','2','2','2','2','2','2','2','2','2','India','2',''),(675,4,1,0,0,'Pear Diamond Jewelry','PEAR','Pear Diamond Jewelry','All','on','NONE','All Labs','ANY','ANY','on','on','on','3',10,'12.00','3','14.00','3','3','3','3','3','3','3','3','3','3','India','3','3');

--
-- Table structure for table `bstock_productscf`
--

CREATE TABLE `bstock_productscf` (
  `product_id` int(10) NOT NULL COMMENT 'This is the foreign key. It corresponds to the Primary Key of the products table.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will store the created date when this record is entered in this table.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will store the last modified date when this record is modified.',
  `cf_1` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store custom fields added to products module.';

--
-- Dumping data for table `bstock_productscf`
--


--
-- Table structure for table `bstock_profilefieldprivileges`
--

CREATE TABLE `bstock_profilefieldprivileges` (
  `id` int(10) NOT NULL AUTO_INCREMENT 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.',
  `field_id` int(10) NOT NULL COMMENT 'This is the foreign key of the fields table & is mapped to the primary key of the fields table.',
  `profile_id` int(10) NOT NULL COMMENT 'This is the foreign key of the profiles table & is mapped to primary key of profiles table.',
  `is_enabled` enum('on','off') NOT NULL DEFAULT 'on' COMMENT 'This field will contain 0 or 1. 0  Would mean this field is disabled  For the corresponding profile_id &  module_id.  1 would mean the field is  accessible to profile_id & module_id.',
  `is_visible_on_search` enum('on','off') NOT NULL DEFAULT 'on' COMMENT 'This field determine whether the fields is visible on search form or not.',
  `is_visible_on_search_result` enum('on','off') NOT NULL DEFAULT 'on' COMMENT 'This field determine whether the fields is visible on search result form or not.',
  `type` enum('user','customer') NOT NULL,
  `created_date` varchar(50) NOT NULL COMMENT 'This will be the created date for this particular record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will be the last modified date for this particular record.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=655 DEFAULT CHARSET=latin1 COMMENT='Store the privileges for specific fields in every profile';

--
-- Dumping data for table `bstock_profilefieldprivileges`
--

INSERT INTO `bstock_profilefieldprivileges` VALUES (161,1,112,87,'on','on','on','user','','1316588342'),(159,1,110,87,'off','on','off','user','','1316588342'),(160,1,111,87,'off','on','off','user','','1316588342'),(152,3,103,87,'on','on','on','user','','1316588342'),(8,3,8,87,'on','on','on','user','','1316588342'),(9,3,9,87,'on','on','on','user','','1316588342'),(150,2,101,87,'on','on','on','user','','1283886221'),(11,2,11,87,'off','on','off','user','','1316588342'),(12,2,12,87,'off','on','off','user','','1316588342'),(13,2,13,87,'on','on','on','user','','1316588342'),(14,2,14,87,'on','on','on','user','','1316588342'),(15,2,15,87,'on','on','on','user','','1316588342'),(16,2,16,87,'on','on','on','user','','1316588342'),(17,2,17,87,'on','on','on','user','','1316588342'),(18,2,18,87,'on','on','on','user','','1316588342'),(19,2,19,87,'on','on','on','user','','1283886221'),(20,2,20,87,'on','on','on','user','','1283886221'),(151,3,102,87,'on','on','on','user','','1316588342'),(96,5,42,87,'on','on','on','user','','1316588342'),(81,4,35,87,'off','on','off','user','','1290113547'),(82,5,21,87,'on','on','on','user','','1316588342'),(83,5,22,87,'on','on','on','user','','1316588342'),(84,5,23,87,'on','on','on','user','','1316588342'),(85,5,24,87,'on','on','on','user','','1316588342'),(86,5,25,87,'on','on','on','user','','1316588342'),(87,5,26,87,'on','on','on','user','','1316588342'),(88,5,27,87,'on','on','on','user','','1316588342'),(89,5,28,87,'on','on','on','user','','1316588342'),(90,5,29,87,'on','on','on','user','','1316588342'),(91,5,30,87,'on','on','on','user','','1316588342'),(92,5,31,87,'on','on','on','user','','1316588342'),(93,5,32,87,'on','on','on','user','','1316588342'),(94,5,33,87,'on','on','on','user','','1316588342'),(95,5,34,87,'on','on','on','user','','1316588342'),(167,1,118,87,'on','on','on','user','','1316588342'),(138,5,89,87,'on','on','on','user','','1316588342'),(166,1,117,87,'on','on','on','user','','1316588342'),(165,1,116,87,'on','on','on','user','','1316588342'),(164,1,115,87,'on','on','on','user','','1316588342'),(163,1,114,87,'on','on','on','user','','1316588342'),(162,1,113,87,'on','on','on','user','','1316588342'),(140,5,91,87,'on','on','on','user','','1316588342'),(142,5,93,87,'off','on','on','user','',''),(158,1,109,87,'on','on','on','user','','1316588342'),(157,1,108,87,'on','on','on','user','','1316588342'),(156,1,107,87,'on','on','on','user','','1316588342'),(266,1,190,87,'off','on','off','user','','1316588342'),(213,1,119,87,'on','on','on','user','','1316588342'),(214,1,120,87,'off','on','off','user','','1316588342'),(215,1,121,87,'on','on','on','user','','1316588342'),(217,4,123,87,'on','on','on','user','','1290113547'),(218,4,124,87,'on','on','on','user','','1290113547'),(219,4,126,87,'on','on','on','user','','1290113547'),(220,4,127,87,'on','on','on','user','','1290113547'),(221,4,128,87,'on','on','on','user','','1290113547'),(222,4,129,87,'on','on','on','user','','1290113547'),(223,4,130,87,'off','on','off','user','','1290113547'),(224,4,125,87,'off','on','off','user','','1290113547'),(225,2,136,87,'off','on','off','user','','1316588342'),(226,6,137,87,'on','on','on','user','','1316588342'),(227,6,138,87,'on','on','on','user','','1316588342'),(228,6,140,87,'on','on','on','user','','1316588342'),(229,6,141,87,'on','on','on','user','','1316588342'),(230,6,142,87,'on','on','on','user','','1316588342'),(231,8,153,87,'on','on','on','user','','1290113547'),(232,8,154,87,'on','on','on','user','','1290113547'),(233,8,155,87,'on','on','on','user','','1290113547'),(234,8,156,87,'on','on','on','user','','1290113547'),(235,8,157,87,'on','on','on','user','','1290113547'),(236,8,158,87,'on','on','on','user','','1290113547'),(237,8,159,87,'on','on','on','user','','1290113547'),(238,8,160,87,'on','on','on','user','','1290113547'),(239,7,163,87,'off','on','off','user','','1316588342'),(240,9,164,87,'on','on','on','user','','1316588342'),(241,9,165,87,'on','on','on','user','','1316588342'),(242,9,166,87,'on','on','on','user','','1316588342'),(243,1,167,87,'on','on','on','user','','1316588342'),(244,1,168,87,'on','on','on','user','','1281601707'),(245,1,169,87,'off','on','off','user','','1316588342'),(246,1,170,87,'on','on','on','user','','1316588342'),(247,1,171,87,'on','on','on','user','','1281601707'),(248,1,172,87,'on','on','on','user','','1281601707'),(249,1,173,87,'on','on','off','user','','1281601707'),(250,1,174,87,'on','on','on','user','','1281601707'),(251,1,175,87,'on','on','on','user','','1316588342'),(252,1,176,87,'on','on','on','user','','1316588342'),(253,1,177,87,'on','on','on','user','','1316588342'),(254,1,178,87,'on','on','on','user','','1316588342'),(255,1,179,87,'off','on','off','user','','1316588342'),(256,1,180,87,'on','on','on','user','','1316588342'),(257,10,181,87,'on','on','on','user','','1316588342'),(258,10,182,87,'on','on','on','user','','1316588342'),(259,10,183,87,'on','on','on','user','','1316588342'),(260,10,184,87,'on','on','on','user','','1316588342'),(261,10,185,87,'on','on','on','user','','1316588342'),(262,10,186,87,'on','on','on','user','','1316588342'),(263,10,187,87,'on','on','on','user','','1316588342'),(264,10,188,87,'on','on','on','user','','1316588342'),(265,1,189,87,'on','on','on','user','','1297058537'),(267,1,191,87,'on','on','on','user','','1316588342'),(268,3,192,87,'on','on','on','user','','1316588342'),(269,3,194,87,'on','on','on','user','','1316588342'),(270,1,108,91,'on','on','on','user','',''),(271,11,196,87,'on','on','on','user','','1316588342'),(272,11,197,87,'on','on','on','user','','1316588342'),(273,11,198,87,'on','on','on','user','','1316588342'),(274,11,199,87,'on','on','on','user','','1316588342'),(275,11,200,87,'on','on','on','user','','1316588342'),(276,11,201,87,'on','on','on','user','','1316588342'),(277,11,202,87,'on','on','on','user','','1316588342'),(278,11,203,87,'on','on','on','user','','1316588342'),(279,1,204,87,'on','on','on','user','','1316588342'),(280,1,205,87,'on','on','on','user','','1316588342'),(281,1,206,87,'off','on','off','user','','1283886221'),(282,1,207,87,'off','on','off','user','','1316588342'),(283,1,208,87,'on','on','on','user','','1316588342'),(284,1,209,87,'on','on','on','user','','1316588342'),(285,1,210,87,'off','on','off','user','','1316588342'),(286,1,211,87,'on','on','on','user','','1285651598'),(287,1,213,87,'on','on','on','user','','1316588342'),(288,1,214,87,'off','on','off','user','','1316588342'),(289,1,216,87,'off','on','off','user','','1316588342'),(290,1,217,87,'off','on','off','user','','1316588342'),(291,1,218,87,'on','on','on','user','','1316588342'),(512,11,198,97,'off','on','off','user','','1291268565'),(511,11,197,97,'off','on','off','user','','1291268565'),(510,11,196,97,'off','on','off','user','','1291268565'),(509,10,188,97,'off','on','off','user','','1291268565'),(508,10,187,97,'off','on','off','user','','1291268565'),(507,10,186,97,'off','on','off','user','','1291268565'),(506,10,185,97,'off','on','off','user','','1291268565'),(505,10,184,97,'off','on','off','user','','1291268565'),(504,10,183,97,'off','on','off','user','','1291268565'),(503,10,182,97,'off','on','off','user','','1291268565'),(502,10,181,97,'off','on','off','user','','1291268565'),(501,9,166,97,'on','on','on','user','','1291268565'),(500,9,165,97,'on','on','on','user','','1291268565'),(499,9,164,97,'on','on','on','user','','1291268565'),(498,8,160,97,'off','on','off','user','','1291268565'),(497,8,159,97,'off','on','off','user','','1291268565'),(496,8,158,97,'off','on','off','user','','1291268565'),(495,8,157,97,'off','on','off','user','','1291268565'),(494,8,156,97,'off','on','off','user','','1291268565'),(493,8,155,97,'off','on','off','user','','1291268565'),(492,8,154,97,'off','on','off','user','','1291268565'),(491,8,153,97,'off','on','off','user','','1291268565'),(490,7,163,97,'off','on','off','user','','1291268565'),(489,6,142,97,'off','on','off','user','','1291268565'),(488,6,141,97,'off','on','off','user','','1291268565'),(487,6,140,97,'off','on','off','user','','1291268565'),(486,6,138,97,'off','on','off','user','','1291268565'),(485,6,137,97,'off','on','off','user','','1291268565'),(484,5,91,97,'off','on','off','user','','1291268565'),(483,5,89,97,'off','on','off','user','','1291268565'),(482,5,42,97,'off','on','off','user','','1291268565'),(481,5,34,97,'off','on','off','user','','1291268565'),(480,5,33,97,'off','on','off','user','','1291268565'),(479,5,32,97,'off','on','off','user','','1291268565'),(478,5,31,97,'off','on','off','user','','1291268565'),(477,5,30,97,'off','on','off','user','','1291268565'),(476,5,29,97,'off','on','off','user','','1291268565'),(475,5,28,97,'off','on','off','user','','1291268565'),(474,5,27,97,'off','on','off','user','','1291268565'),(473,5,26,97,'off','on','off','user','','1291268565'),(472,5,25,97,'off','on','off','user','','1291268565'),(471,5,24,97,'off','on','off','user','','1291268565'),(470,5,23,97,'off','on','off','user','','1291268565'),(469,5,22,97,'off','on','off','user','','1291268565'),(468,5,21,97,'off','on','off','user','','1291268565'),(467,4,125,97,'off','on','off','user','','1291268565'),(466,4,130,97,'off','on','off','user','','1291268565'),(465,4,129,97,'off','on','off','user','','1291268565'),(464,4,128,97,'off','on','off','user','','1291268565'),(463,4,127,97,'off','on','off','user','','1291268565'),(462,4,126,97,'off','on','off','user','','1291268565'),(461,4,124,97,'off','on','off','user','','1291268565'),(460,4,123,97,'off','on','off','user','','1291268565'),(459,4,35,97,'off','on','off','user','','1291268565'),(458,3,194,97,'off','on','off','user','','1291268565'),(457,3,192,97,'off','on','off','user','','1291268565'),(456,3,103,97,'off','on','off','user','','1291268565'),(455,3,102,97,'off','on','off','user','','1291268565'),(454,3,9,97,'off','on','off','user','','1291268565'),(453,3,8,97,'off','on','off','user','','1291268565'),(452,2,220,97,'off','on','off','user','','1291268565'),(451,2,219,97,'off','on','off','user','','1291268565'),(450,2,136,97,'off','on','off','user','','1291268565'),(449,2,18,97,'off','on','off','user','','1291268565'),(448,2,17,97,'off','on','off','user','','1291268565'),(447,2,16,97,'off','on','off','user','','1291268565'),(446,2,15,97,'off','on','off','user','','1291268565'),(445,2,14,97,'off','on','off','user','','1291268565'),(444,2,13,97,'off','on','off','user','','1291268565'),(443,2,12,97,'on','on','on','user','','1291268565'),(442,2,11,97,'on','on','on','user','','1291268565'),(441,1,221,97,'off','on','off','user','','1291268565'),(440,1,218,97,'off','on','off','user','','1291268565'),(439,1,217,97,'off','on','off','user','','1291268565'),(438,1,216,97,'off','on','off','user','','1291268565'),(437,1,214,97,'off','on','off','user','','1291268565'),(436,1,213,97,'off','on','off','user','','1291268565'),(435,1,210,97,'off','on','off','user','','1291268565'),(434,1,209,97,'off','on','off','user','','1291268565'),(433,1,208,97,'off','on','off','user','','1291268565'),(432,1,207,97,'off','on','off','user','','1291268565'),(431,1,205,97,'off','on','off','user','','1291268565'),(430,1,191,97,'off','on','off','user','','1291268565'),(429,1,190,97,'off','on','off','user','','1291268565'),(428,1,189,97,'off','on','off','user','','1291268565'),(427,1,180,97,'off','on','off','user','','1291268565'),(426,1,179,97,'off','on','off','user','','1291268565'),(425,1,178,97,'off','on','off','user','','1291268565'),(424,1,177,97,'off','on','off','user','','1291268565'),(423,1,176,97,'off','on','off','user','','1291268565'),(422,1,175,97,'off','on','off','user','','1291268565'),(421,1,170,97,'off','on','off','user','','1291268565'),(420,1,169,97,'off','on','off','user','','1291268565'),(419,1,167,97,'off','on','off','user','','1291268565'),(418,1,121,97,'off','on','off','user','','1291268565'),(417,1,120,97,'off','on','off','user','','1291268565'),(416,1,119,97,'off','on','off','user','','1291268565'),(415,1,107,97,'off','on','off','user','','1291268565'),(414,1,108,97,'on','on','on','user','','1291268565'),(413,1,109,97,'on','on','on','user','','1291268565'),(412,1,112,97,'on','on','on','user','','1291268565'),(411,1,113,97,'on','on','on','user','','1291268565'),(410,1,114,97,'on','on','on','user','','1291268565'),(409,1,115,97,'on','on','on','user','','1291268565'),(408,1,116,97,'on','on','on','user','','1291268565'),(407,1,117,97,'on','on','on','user','','1291268565'),(406,1,118,97,'on','on','on','user','','1291268565'),(405,1,110,97,'off','on','off','user','','1291268565'),(404,1,111,97,'on','on','on','user','','1291268565'),(401,2,219,87,'on','on','on','user','','1316588342'),(402,2,220,87,'on','on','on','user','','1316588342'),(403,1,221,87,'on','on','on','user','','1316588342'),(513,11,199,97,'off','on','off','user','','1291268565'),(514,11,200,97,'off','on','off','user','','1291268565'),(515,11,201,97,'off','on','off','user','','1291268565'),(516,11,202,97,'off','on','off','user','','1291268565'),(517,11,203,97,'off','on','off','user','','1291268565'),(518,1,222,87,'off','on','off','user','','1316588342'),(519,1,111,99,'off','on','off','user','','1298361477'),(520,1,110,99,'off','on','off','user','','1298361477'),(521,1,118,99,'off','on','off','user','','1298361477'),(522,1,117,99,'off','on','off','user','','1298361477'),(523,1,116,99,'off','on','off','user','','1298361477'),(524,1,115,99,'off','on','off','user','','1298361477'),(525,1,114,99,'off','on','off','user','','1298361477'),(526,1,113,99,'off','on','off','user','','1298361477'),(527,1,112,99,'off','on','off','user','','1298361477'),(528,1,109,99,'off','on','off','user','','1298361477'),(529,1,108,99,'off','on','off','user','','1298361477'),(530,1,107,99,'off','on','off','user','','1298361477'),(531,1,119,99,'off','on','off','user','','1298361477'),(532,1,120,99,'off','on','off','user','','1298361477'),(533,1,121,99,'off','on','off','user','','1298361477'),(534,1,167,99,'off','on','off','user','','1298361477'),(535,1,169,99,'off','on','off','user','','1298361477'),(536,1,170,99,'off','on','off','user','','1298361477'),(537,1,175,99,'off','on','off','user','','1298361477'),(538,1,176,99,'off','on','off','user','','1298361477'),(539,1,177,99,'off','on','off','user','','1298361477'),(540,1,178,99,'off','on','off','user','','1298361477'),(541,1,179,99,'off','on','off','user','','1298361477'),(542,1,180,99,'off','on','off','user','','1298361477'),(543,1,189,99,'off','on','off','user','','1293023950'),(544,1,190,99,'off','on','off','user','','1298361477'),(545,1,191,99,'off','on','off','user','','1293023950'),(546,1,205,99,'off','on','off','user','','1298361477'),(547,1,207,99,'off','on','off','user','','1298361477'),(548,1,208,99,'off','on','off','user','','1298361477'),(549,1,209,99,'off','on','off','user','','1298361477'),(550,1,210,99,'off','on','off','user','','1298361477'),(551,1,213,99,'off','on','off','user','','1298361477'),(552,1,214,99,'off','on','off','user','','1298361477'),(553,1,216,99,'off','on','off','user','','1298361477'),(554,1,217,99,'off','on','off','user','','1298361477'),(555,1,218,99,'off','on','off','user','','1298361477'),(556,1,221,99,'off','on','off','user','','1298361477'),(557,1,222,99,'off','on','off','user','','1298361477'),(558,2,11,99,'off','on','off','user','','1298361477'),(559,2,12,99,'off','on','off','user','','1298361477'),(560,2,13,99,'off','on','off','user','','1298361477'),(561,2,14,99,'off','on','off','user','','1298361477'),(562,2,15,99,'off','on','off','user','','1298361477'),(563,2,16,99,'off','on','off','user','','1298361477'),(564,2,17,99,'off','on','off','user','','1298361477'),(565,2,18,99,'off','on','off','user','','1298361477'),(566,2,136,99,'off','on','off','user','','1298361477'),(567,2,219,99,'off','on','off','user','','1298361477'),(568,2,220,99,'off','on','off','user','','1298361477'),(569,3,8,99,'off','on','off','user','','1298361477'),(570,3,9,99,'off','on','off','user','','1298361477'),(571,3,102,99,'off','on','off','user','','1298361477'),(572,3,103,99,'off','on','off','user','','1298361477'),(573,3,192,99,'off','on','off','user','','1298361477'),(574,3,194,99,'off','on','off','user','','1298361477'),(575,6,137,99,'off','on','off','user','','1298361477'),(576,6,138,99,'off','on','off','user','','1298361477'),(577,6,140,99,'off','on','off','user','','1298361477'),(578,6,141,99,'off','on','off','user','','1298361477'),(579,6,142,99,'off','on','off','user','','1298361477'),(580,7,163,99,'off','on','off','user','','1298361477'),(581,1,223,87,'on','on','on','user','','1316588342'),(582,1,224,87,'off','on','off','user','','1316588342'),(583,1,225,87,'on','on','on','user','','1316588342'),(584,1,226,87,'on','on','on','user','','1316588342'),(585,1,227,87,'on','on','on','user','','1297058537'),(586,1,228,87,'on','on','on','user','','1316588342'),(587,1,229,87,'on','on','on','user','','1316588342'),(588,1,230,87,'on','on','on','user','','1316588342'),(589,1,231,87,'on','on','on','user','','1316588342'),(590,1,232,87,'on','on','on','user','','1316588342'),(591,1,233,87,'off','on','off','user','','1316588342'),(592,1,234,87,'off','on','off','user','','1316588342'),(593,1,235,87,'off','on','off','user','','1316588342'),(594,1,236,87,'off','on','off','user','','1316588342'),(595,1,237,87,'off','on','off','user','','1316588342'),(596,1,238,87,'on','on','on','user','','1316588342'),(597,1,204,99,'off','on','off','user','','1298361477'),(598,1,223,99,'off','on','off','user','','1298361477'),(599,1,224,99,'off','on','off','user','','1298361477'),(600,1,225,99,'off','on','off','user','','1298361477'),(601,1,226,99,'off','on','off','user','','1298361477'),(602,1,228,99,'off','on','off','user','','1298361477'),(603,1,229,99,'off','on','off','user','','1298361477'),(604,1,230,99,'off','on','off','user','','1298361477'),(605,1,231,99,'off','on','off','user','','1298361477'),(606,1,233,99,'off','on','off','user','','1298361477'),(607,1,234,99,'off','on','off','user','','1298361477'),(608,1,235,99,'off','on','off','user','','1298361477'),(609,1,236,99,'off','on','off','user','','1298361477'),(610,1,237,99,'off','on','off','user','','1298361477'),(611,1,238,99,'off','on','off','user','','1298361477'),(612,5,21,99,'off','on','off','user','','1298361477'),(613,5,22,99,'off','on','off','user','','1298361477'),(614,5,23,99,'off','on','off','user','','1298361477'),(615,5,24,99,'off','on','off','user','','1298361477'),(616,5,25,99,'off','on','off','user','','1298361477'),(617,5,26,99,'off','on','off','user','','1298361477'),(618,5,27,99,'off','on','off','user','','1298361477'),(619,5,28,99,'off','on','off','user','','1298361477'),(620,5,29,99,'off','on','off','user','','1298361477'),(621,5,30,99,'off','on','off','user','','1298361477'),(622,5,31,99,'off','on','off','user','','1298361477'),(623,5,32,99,'off','on','off','user','','1298361477'),(624,5,33,99,'off','on','off','user','','1298361477'),(625,5,34,99,'off','on','off','user','','1298361477'),(626,5,42,99,'off','on','off','user','','1298361477'),(627,5,89,99,'off','on','off','user','','1298361477'),(628,5,91,99,'off','on','off','user','','1298361477'),(629,12,239,87,'on','on','on','user','','1316588342'),(630,12,240,87,'on','on','off','user','','1316588342'),(631,12,241,87,'on','on','on','user','','1316588342'),(632,12,242,87,'on','on','on','user','','1316588342'),(633,12,243,87,'on','on','on','user','','1316588342'),(634,12,244,87,'on','on','on','user','','1316588342'),(635,12,245,87,'on','on','on','user','','1316588342'),(636,12,246,87,'on','on','on','user','','1316588342'),(637,12,247,87,'off','on','off','user','','1316588342'),(638,12,248,87,'off','on','off','user','','1316588342'),(639,12,249,87,'on','on','off','user','','1316588342'),(640,12,239,99,'off','on','off','user','','1298361477'),(641,12,240,99,'off','on','off','user','','1298361477'),(642,12,241,99,'off','on','off','user','','1298361477'),(643,12,242,99,'off','on','off','user','','1298361477'),(644,12,243,99,'off','on','off','user','','1298361477'),(645,12,244,99,'off','on','off','user','','1298361477'),(646,12,245,99,'off','on','off','user','','1298361477'),(647,12,246,99,'off','on','off','user','','1298361477'),(648,12,247,99,'off','on','off','user','','1298361477'),(649,12,248,99,'off','on','off','user','','1298361477'),(650,12,249,99,'off','on','off','user','','1298361477'),(651,14,250,87,'on','on','on','user','','1316588342'),(652,14,251,87,'on','on','on','user','','1316588342'),(653,14,252,87,'on','on','on','user','','1316588342'),(654,14,253,87,'on','on','on','user','','1316588342');

--
-- Table structure for table `bstock_profilemoduleoperationprivileges`
--

CREATE TABLE `bstock_profilemoduleoperationprivileges` (
  `id` int(10) NOT NULL AUTO_INCREMENT 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.',
  `profile_id` int(10) NOT NULL COMMENT 'This is the foreign key for profiles & is mapped to primary key of profiles table.',
  `operation_id` int(10) NOT NULL COMMENT 'This field will contain 0,1,2,3.  0 – Create, 1 – Edit, 2 – Delete, 3 – View',
  `is_enabled` enum('on','off') NOT NULL DEFAULT 'on' COMMENT 'This field will contain 0 or 1. 0  Would mean this operation is disabled  For the corresponding profile_id &  module_id.  1 would mean the operation is  accessible to profile_id & module_id.',
  `type` enum('user','customer') NOT NULL COMMENT 'This field will contain whether this is profile of user or customer.',
  `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 (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=69 DEFAULT CHARSET=latin1 COMMENT='Store what operations are allowed on modules to different pr';

--
-- Dumping data for table `bstock_profilemoduleoperationprivileges`
--

INSERT INTO `bstock_profilemoduleoperationprivileges` VALUES (26,3,87,5,'on','user','','1316588342'),(27,1,87,5,'on','user','','1316588342'),(28,2,87,5,'on','user','','1316588342'),(29,5,87,5,'on','user','','1316588342'),(30,4,87,5,'on','user','','1290113547'),(31,6,87,5,'on','user','','1316588342'),(32,7,87,5,'on','user','','1316588342'),(33,8,87,5,'on','user','','1290113547'),(34,9,87,5,'on','user','','1316588342'),(35,10,87,5,'on','user','','1316588342'),(36,11,87,5,'on','user','','1316588342'),(58,11,97,1,'on','user','','1291268565'),(57,10,97,1,'on','user','','1291268565'),(56,9,97,5,'on','user','','1291268565'),(55,8,97,1,'on','user','','1291268565'),(54,7,97,1,'on','user','','1291268565'),(53,6,97,1,'on','user','','1291268565'),(52,5,97,1,'on','user','','1291268565'),(51,4,97,1,'on','user','','1291268565'),(50,3,97,1,'on','user','','1291268565'),(49,2,97,5,'on','user','','1291268565'),(48,1,97,5,'on','user','','1291268565'),(59,1,99,1,'on','user','','1298361477'),(60,2,99,1,'on','user','','1298361477'),(61,3,99,3,'on','user','','1298361477'),(62,6,99,1,'on','user','','1298361477'),(63,7,99,1,'on','user','','1298361477'),(64,5,99,1,'on','user','','1298361477'),(65,12,87,5,'on','user','','1316588342'),(66,12,99,1,'on','user','','1298361477'),(67,13,87,5,'on','user','','1316588342'),(68,14,87,5,'on','user','','1316588342');

--
-- Table structure for table `bstock_profilemoduleprivileges`
--

CREATE TABLE `bstock_profilemoduleprivileges` (
  `id` int(10) NOT NULL AUTO_INCREMENT 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.',
  `profile_id` int(10) NOT NULL COMMENT 'This is the foreign key for profiles & is mapped to primary key of profiles table.',
  `is_enabled` enum('on','off') NOT NULL DEFAULT 'on' COMMENT 'This field will contain 0 or 1. 0  Would mean this module is disabled  For the corresponding profile_id.  1 would mean the module is  Accessible to profile_id.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will be the date when this record was created / inserted.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will be the last modified date for this record..',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=69 DEFAULT CHARSET=latin1 COMMENT='Store what modules are allowed to be accessed by profiles.';

--
-- Dumping data for table `bstock_profilemoduleprivileges`
--

INSERT INTO `bstock_profilemoduleprivileges` VALUES (1,1,91,'on','','1261392304'),(2,2,91,'on','','1261392304'),(3,3,91,'on','','1261392304'),(5,1,85,'on','','1259609910'),(6,2,85,'off','','1259609910'),(7,3,85,'off','','1259609910'),(8,1,86,'on','','1259650566'),(9,2,86,'on','','1259650566'),(10,3,86,'off','','1259650566'),(14,4,91,'on','','1261392304'),(15,5,91,'on','','1261392304'),(16,1,89,'on','','1261381121'),(17,2,89,'off','','1261381121'),(18,3,89,'off','','1261381121'),(19,4,89,'off','','1261381121'),(20,5,89,'off','','1261381121'),(21,1,91,'on','1261381762','1261381762'),(22,2,91,'off','1261381762','1261381762'),(23,3,91,'off','1261381762','1261381762'),(24,4,91,'off','1261381762','1261381762'),(25,5,91,'off','1261381762','1261381762'),(26,3,87,'on','','1316588342'),(27,1,87,'on','','1316588342'),(28,2,87,'on','','1316588342'),(29,5,87,'on','','1316588342'),(30,4,87,'on','','1290113547'),(31,6,87,'off','','1316588342'),(32,7,87,'on','','1316588342'),(33,8,87,'on','','1290113547'),(34,9,87,'on','','1316588342'),(35,10,87,'on','','1316588342'),(36,11,87,'on','','1316588342'),(37,1,96,'on','','1289802117'),(38,2,96,'off','','1289802117'),(39,3,96,'off','','1289802117'),(40,4,96,'off','','1289802117'),(41,5,96,'off','','1289802117'),(42,6,96,'off','','1289802117'),(43,7,96,'off','','1289802117'),(44,8,96,'off','','1289802117'),(45,9,96,'off','','1289802117'),(46,10,96,'off','','1289802117'),(47,11,96,'off','','1289802117'),(48,1,97,'on','','1291268565'),(49,2,97,'on','','1291268565'),(50,3,97,'off','','1291268565'),(51,4,97,'off','','1291268565'),(52,5,97,'off','','1291268565'),(53,6,97,'off','','1291268565'),(54,7,97,'off','','1291268565'),(55,8,97,'off','','1291268565'),(56,9,97,'on','','1291268565'),(57,10,97,'off','','1291268565'),(58,11,97,'off','','1291268565'),(59,1,99,'on','','1298361477'),(60,2,99,'off','','1298361477'),(61,3,99,'on','','1298361477'),(62,6,99,'off','','1298361477'),(63,7,99,'off','','1298361477'),(64,5,99,'off','','1298361477'),(65,12,87,'on','','1316588342'),(66,12,99,'off','','1298361477'),(67,13,87,'on','','1316588342'),(68,14,87,'on','','1316588342');

--
-- Table structure for table `bstock_profilepluginprivileges`
--

CREATE TABLE `bstock_profilepluginprivileges` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `plugin_id` int(10) NOT NULL COMMENT 'This is the foreign key for the modules & is mapped to primary key of modules table.',
  `profile_id` int(10) NOT NULL COMMENT 'This is the foreign key for profiles & is mapped to primary key of profiles table.',
  `is_enabled` enum('on','off') NOT NULL DEFAULT 'on' COMMENT 'This field will contain 0 or 1. 0  Would mean this module is disabled  For the corresponding profile_id.  1 would mean the module is  Accessible to profile_id.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will be the date when this record was created / inserted.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will be the last modified date for this record..',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=128 DEFAULT CHARSET=latin1 COMMENT='Store what modules are allowed to be accessed by profiles.';

--
-- Dumping data for table `bstock_profilepluginprivileges`
--

INSERT INTO `bstock_profilepluginprivileges` VALUES (1,1,91,'on','','1261392304'),(2,2,91,'on','','1261392304'),(3,3,91,'on','','1261392304'),(5,1,85,'on','','1259609910'),(6,2,85,'off','','1259609910'),(7,3,85,'off','','1259609910'),(8,1,86,'on','','1259650566'),(9,2,86,'on','','1259650566'),(10,3,86,'off','','1259650566'),(14,4,91,'on','','1261392304'),(15,5,91,'on','','1261392304'),(16,1,89,'on','','1261381121'),(17,2,89,'off','','1261381121'),(18,3,89,'off','','1261381121'),(19,4,89,'off','','1261381121'),(20,5,89,'off','','1261381121'),(21,1,91,'on','1261381762','1261381762'),(22,2,91,'off','1261381762','1261381762'),(23,3,91,'off','1261381762','1261381762'),(24,4,91,'off','1261381762','1261381762'),(25,5,91,'off','1261381762','1261381762'),(26,3,87,'off','','1316588342'),(27,1,87,'off','','1316588342'),(28,2,87,'on','','1292397332'),(29,5,87,'on','','1290113547'),(30,4,87,'on','','1290113547'),(31,6,87,'off','','1316588342'),(32,7,87,'on','','1292397332'),(33,8,87,'on','','1290113547'),(34,9,87,'off','','1290113548'),(35,10,87,'on','','1316588342'),(36,11,87,'on','','1290113547'),(37,1,96,'on','','1289802117'),(38,2,96,'off','','1289802117'),(39,3,96,'off','','1289802117'),(40,4,96,'off','','1289802117'),(41,5,96,'off','','1289802117'),(42,6,96,'off','','1289802117'),(43,7,96,'off','','1289802117'),(44,8,96,'off','','1289802117'),(45,9,96,'off','','1289802117'),(46,10,96,'off','','1289802117'),(47,11,96,'off','','1289802117'),(48,1,97,'on','','1291268565'),(49,2,97,'on','','1291268565'),(50,3,97,'off','','1291268565'),(51,4,97,'off','','1291268565'),(52,5,97,'off','','1291268565'),(53,6,97,'off','','1291268565'),(54,7,97,'off','','1291268565'),(55,8,97,'off','','1291268565'),(56,9,97,'on','','1291268565'),(57,10,97,'off','','1291268565'),(58,11,97,'off','','1291268565'),(59,23,87,'off','','1316588342'),(60,1,0,'off','1293013584','1293013584'),(61,3,0,'off','1293013584','1293013584'),(62,6,0,'off','1293013584','1293013584'),(63,10,0,'off','1293013584','1293013584'),(64,15,0,'on','1293013584','1293013584'),(65,16,0,'off','1293013584','1293013584'),(66,17,0,'on','1293013584','1293013584'),(67,20,0,'off','1293013584','1293013584'),(68,22,0,'off','1293013584','1293013584'),(69,23,0,'off','1293013584','1293013584'),(70,24,0,'off','1293013584','1293013584'),(71,25,0,'off','1293013584','1293013584'),(72,26,0,'off','1293013584','1293013584'),(73,27,0,'off','1293013584','1293013584'),(74,28,0,'off','1293013584','1293013584'),(75,29,0,'off','1293013584','1293013584'),(76,30,0,'off','1293013584','1293013584'),(77,31,0,'off','1293013584','1293013584'),(78,32,0,'off','1293013584','1293013584'),(79,33,0,'off','1293013584','1293013584'),(80,1,99,'off','1293013623','1298361477'),(81,3,99,'off','1293013623','1298361477'),(82,6,99,'off','1293013623','1298361477'),(83,10,99,'off','1293013623','1298361477'),(84,15,99,'on','1293013623','1298361477'),(85,16,99,'off','1293013623','1298361477'),(86,17,99,'on','1293013623','1298361477'),(87,20,99,'on','1293013623','1298361477'),(88,22,99,'off','1293013623','1298361477'),(89,23,99,'off','1293013623','1298361477'),(90,24,99,'off','1293013623','1298361477'),(91,25,99,'off','1293013623','1298361477'),(92,26,99,'off','1293013623','1298361477'),(93,27,99,'off','1293013623','1298361477'),(94,28,99,'on','1293013623','1298361477'),(95,29,99,'off','1293013623','1298361477'),(96,30,99,'off','1293013623','1298361477'),(97,31,99,'on','1293013623','1298361477'),(98,32,99,'off','1293013623','1298361477'),(99,33,99,'off','1293013623','1298361477'),(100,15,87,'on','1293021520','1316588342'),(101,16,87,'on','1293021520','1316588342'),(102,17,87,'on','1293021520','1316588342'),(103,20,87,'off','1293021520','1316588342'),(104,22,87,'off','1293021520','1316588342'),(105,24,87,'off','1293021520','1316588342'),(106,25,87,'off','1293021520','1316588342'),(107,26,87,'off','1293021520','1316588342'),(108,27,87,'off','1293021520','1316588342'),(109,28,87,'on','1293021520','1316588342'),(110,29,87,'off','1293021520','1316588342'),(111,30,87,'on','1293021520','1316588342'),(112,31,87,'off','1293021520','1316588342'),(113,32,87,'off','1293021520','1316588342'),(114,33,87,'off','1293021520','1316588342'),(115,21,87,'on','1295872223','1316588342'),(116,34,87,'on','1296134039','1316588342'),(117,35,87,'on','1296641883','1316588342'),(118,21,99,'on','1297682655','1298361477'),(119,34,99,'off','1297682655','1298361477'),(120,35,99,'off','1297682655','1298361477'),(121,36,87,'on','1298368122','1316588342'),(122,37,87,'on','1299912128','1316588342'),(123,38,87,'on','1303383479','1316588342'),(124,39,87,'on','1303879119','1316588342'),(125,40,87,'on','1313573834','1316588342'),(126,41,87,'on','1316177554','1316588342'),(127,42,87,'on','1316588342','1316588342');

--
-- Table structure for table `bstock_purchaseorderpaymentstaxes`
--

CREATE TABLE `bstock_purchaseorderpaymentstaxes` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(5) NOT NULL,
  `tax_amount` decimal(10,2) NOT NULL,
  `tax_id` int(5) NOT NULL COMMENT ' This is the foreign key of the tax table & mapped to it''s',
  `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_purchaseorderpaymentstaxes`
--


--
-- Table structure for table `bstock_reportsgroupby`
--

CREATE TABLE `bstock_reportsgroupby` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key.',
  `report_id` int(11) NOT NULL COMMENT 'Report id.',
  `column_name` varchar(500) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store fields that have been selected to be grouped by.';

--
-- Dumping data for table `bstock_reportsgroupby`
--


--
-- Table structure for table `bstock_savedsearches`
--

CREATE TABLE `bstock_savedsearches` (
  `saved_search_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.',
  `name` varchar(50) NOT NULL COMMENT 'This will be the name of the saved search entered by the customer.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will contain the created date for this saved search.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will contain the last modified date for this saved search.',
  PRIMARY KEY (`saved_search_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the searches that are saved by the customer.';

--
-- Dumping data for table `bstock_savedsearches`
--


--
-- Table structure for table `bstock_settings`
--

CREATE TABLE `bstock_settings` (
  `config_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `name` text NOT NULL COMMENT 'Name of the configuration parameter.',
  `value` text NOT NULL COMMENT 'Value of the configuration parameter.',
  PRIMARY KEY (`config_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store configuration parameters of the system.';

--
-- Dumping data for table `bstock_settings`
--


--
-- Table structure for table `bstock_shippingtax`
--

CREATE TABLE `bstock_shippingtax` (
  `shipping_tax_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `type` varchar(250) NOT NULL COMMENT 'Name of the shipping tax type.',
  `percent` varchar(50) NOT NULL COMMENT 'Percentage amount for this shipping tax type.',
  `is_active` enum('0','1') NOT NULL COMMENT 'If active, then only this shipping tax will be displayed while creating invoices / placing orders.',
  `created_date` varchar(50) NOT NULL COMMENT 'This field will contain the created date for this shipping tax type.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This field will contain the last modified date for this shipping tax type.',
  PRIMARY KEY (`shipping_tax_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the different shipping tax types that are being used i';

--
-- Dumping data for table `bstock_shippingtax`
--


--
-- Table structure for table `bstock_specialstoneshistory`
--

CREATE TABLE `bstock_specialstoneshistory` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `stone_id` int(10) NOT NULL,
  `month` int(10) NOT NULL,
  `year` int(10) NOT NULL,
  `user_id` int(10) NOT NULL,
  `created_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_specialstoneshistory`
--


--
-- Table structure for table `bstock_states`
--

CREATE TABLE `bstock_states` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `country_id` int(100) NOT NULL,
  `state_code` varchar(10) NOT NULL,
  `name` varchar(100) NOT NULL,
  `notes` varchar(500) DEFAULT NULL,
  `created_date` int(10) DEFAULT NULL,
  `modified_date` int(10) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=140 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_states`
--

INSERT INTO `bstock_states` VALUES (1,840,'AL','Alabama','',0,0),(2,840,'AK','Alaska','',0,0),(3,840,'ms','missing state','',0,0),(4,840,'AZ','Arizona','',0,0),(5,840,'AR','Arkansas','',0,0),(6,840,'AF','Armed Forces Africa','',0,0),(7,840,'AA','Armed Forces Americas','',0,0),(8,840,'AC','Armed Forces Canada','',0,0),(9,840,'AE','Armed Forces Europe','',0,0),(10,840,'AM','Armed Forces Middle East','',0,0),(11,840,'AP','Armed Forces Pacific','',0,0),(12,840,'CA','California','',0,0),(13,840,'CO','Colorado','',0,0),(14,840,'CT','Connecticut','',0,0),(15,840,'DE','Delaware','',0,0),(16,840,'DC','District of Columbia','',0,0),(17,840,'FM','Federated States Of Micronesia','',0,0),(18,840,'FL','Florida','',0,0),(19,840,'GA','Georgia','',0,0),(20,840,'GU','Guam','',0,0),(21,840,'HI','Hawaii','',0,0),(22,840,'ID','Idaho','',0,0),(23,840,'IL','Illinois','',0,0),(24,840,'IN','Indiana','',0,0),(25,840,'IA','Iowa','',0,0),(26,840,'KS','Kansas','',0,0),(27,840,'KY','Kentucky','',0,0),(28,840,'LA','Louisiana','',0,0),(29,840,'ME','Maine','',0,0),(30,840,'MH','Marshall Islands','',0,0),(31,840,'MD','Maryland','',0,0),(32,840,'MA','Massachusetts','',0,0),(33,840,'MI','Michigan','',0,0),(34,840,'MN','Minnesota','',0,0),(35,840,'MS','Mississippi','',0,0),(36,840,'MO','Missouri','',0,0),(37,840,'MT','Montana','',0,0),(38,840,'NE','Nebraska','',0,0),(39,840,'NV','Nevada','',0,0),(40,840,'NH','New Hampshire','',0,0),(41,840,'NJ','New Jersey','',0,0),(42,840,'NM','New Mexico','',0,0),(43,840,'NY','New York','',0,0),(44,840,'NC','North Carolina','',0,0),(45,840,'ND','North Dakota','',0,0),(46,840,'MP','Northern Mariana Islands','',0,0),(47,840,'OH','Ohio','',0,0),(48,840,'OK','Oklahoma','',0,0),(49,840,'OR','Oregon','',0,0),(50,840,'PW','Palau','',0,0),(51,840,'PA','Pennsylvania','',0,0),(52,840,'PR','Puerto Rico','',0,0),(53,840,'RI','Rhode Island','',0,0),(54,840,'SC','South Carolina','',0,0),(55,840,'SD','South Dakota','',0,0),(56,840,'TN','Tennessee','',0,0),(57,840,'TX','Texas','',0,0),(58,840,'UT','Utah','',0,0),(59,840,'VT','Vermont','',0,0),(60,840,'VI','Virgin Islands','',0,0),(61,840,'VA','Virginia','',0,0),(62,840,'WA','Washington','',0,0),(63,840,'WV','West Virginia','',0,0),(64,840,'WI','Wisconsin','',0,0),(65,840,'WY','Wyoming','',0,0),(66,356,'AP','Andhra Pradesh','',0,0),(67,356,'AR','Arunachal Pradesh','',0,0),(68,356,'AS','Assam','',0,0),(69,356,'BR','Bihar','',0,0),(70,356,'CG','Chattisgarh','',0,0),(71,356,'GA','Goa','',0,0),(72,356,'GJ','Gujarat','',0,0),(73,356,'HR','Haryana','',0,0),(74,356,'HP','Himachal Pradesh','',0,0),(75,356,'JK','Jammu & Kashmir','',0,0),(76,356,'JH','Jharkhand','',0,0),(77,356,'KA','Karnataka','',0,0),(78,356,'KL','Kerala','',0,0),(79,356,'MP','Madhya Pradesh','',0,0),(80,356,'MH','Maharashtra','',0,0),(81,356,'MN','Manipur','',0,0),(82,356,'ML','Meghalaya','',0,0),(83,356,'MZ','Mizoram','',0,0),(84,356,'NL','Nagaland','',0,0),(85,356,'OR','Orissa','',0,0),(86,356,'PB','Punjab','',0,0),(87,356,'RJ','Rajasthan','',0,0),(88,356,'SK','Sikkim','',0,0),(89,356,'TN','Tamil Nadu','',0,0),(90,356,'TR','Tripura','',0,0),(91,356,'UA','Uttarakhand','',0,0),(92,356,'UP','Uttar Pradesh','',0,0),(93,356,'WB','West Bengal','',0,0),(94,356,'AN','Andaman & Nicobar','',0,0),(95,356,'CH','Chandigarh','',0,0),(96,356,'DN','Dadra and Nagar Haveli','',0,0),(97,356,'DD','Daman & Diu','',0,0),(98,356,'DL','Delhi','',0,0),(99,842,'NSW','New South Wales','',0,0),(100,842,'VCT','Victoria','',0,0),(101,842,'QLD','Queensland','',0,0),(102,842,'SA','South Australia','',0,0),(103,842,'WA','Western Australia','',0,0),(104,842,'TAS','Tasmania','',0,0),(105,842,'NT','Northern Territory','',0,0),(106,1,'ASSAM','ASSAM',NULL,0,2011),(107,1,'AP','ARUNACHAL PRADESH',NULL,0,2011),(108,1,'GUJ','GUJRAT',NULL,0,2011),(109,1,'BIHAR','BIHAR',NULL,0,2011),(110,1,'HARYANA','HARYANA',NULL,0,2011),(111,1,'HP','HIMACHAL PRADESH',NULL,0,2011),(112,1,'J&K','JAMMU & KASHMIR',NULL,0,2011),(113,1,'KARNA','KARNATAKA',NULL,0,2011),(114,1,'KEERLA','KERALA',NULL,0,2011),(115,1,'MP','MADHYA PRADESH',NULL,0,2011),(116,1,'MAHA','MAHARASHTRA',NULL,0,2011),(117,1,'MANIPUR','MANIPUR',NULL,0,2011),(118,1,'MEGHALAYA','MEGHALAYA',NULL,0,2011),(119,1,'MIZORAM','MIZORAM',NULL,0,2011),(120,1,'NAGALAND','NAGALAND',NULL,0,2011),(121,1,'ORISSA','ORISSA',NULL,0,2011),(122,1,'PUNJ','PUNJAB',NULL,0,2011),(123,1,'RAJAS','RAJASTHAN',NULL,0,2011),(124,1,'SIKKIM','SIKKIM',NULL,0,2011),(125,1,'TAMIL','TAMIL NADU',NULL,0,2011),(126,1,'TRIPURA','TRIPURA',NULL,0,2011),(127,1,'UP','UTTAR PRADESH',NULL,0,2011),(128,1,'WB','WEST BENGAL',NULL,0,2011),(129,1,'DELHI','DELHI',NULL,0,2011),(130,1,'GOA','GOA',NULL,0,2011),(131,1,'PONDI','PONDICHERY',NULL,0,2011),(132,1,'LAKS','LAKSHDWEEP',NULL,0,2011),(133,1,'DAMAN','DAMAN & DIU',NULL,0,2011),(134,1,'DADRA','DADRA & NAGAR',NULL,0,2011),(135,1,'CHANDI','CHANDIGARH',NULL,0,2011),(136,1,'ANDAMAN','ANDAMAN & NICOBAR',NULL,0,2011),(137,1,'UTTARA','UTTARANCHAL',NULL,0,2011),(138,1,'JHARKHAND','JHARKHAND',NULL,0,2011),(139,1,'CHATTI','CHATTISGARH',NULL,0,2011);

--
-- Table structure for table `bstock_statssettings`
--

CREATE TABLE `bstock_statssettings` (
  `stat_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `name` varchar(250) NOT NULL COMMENT 'Name of the type of statistic / report.',
  `value` varchar(250) NOT NULL COMMENT 'Value of the type of statistic / report i.e. enabled / disabled.',
  `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 (`stat_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Store the various reports/statistics like login history,last';

--
-- Dumping data for table `bstock_statssettings`
--


--
-- Table structure for table `bstock_stores`
--

CREATE TABLE `bstock_stores` (
  `store_id` int(10) NOT NULL COMMENT 'This is the primary key.',
  `name` varchar(100) NOT NULL COMMENT 'This field will contain the name of the store.',
  `description` text NOT NULL COMMENT 'This field will contain the description about the store.',
  `status` enum('0','1') NOT NULL COMMENT 'This field will contain whether this store is currently active or not.',
  PRIMARY KEY (`store_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='This table will store the data about multiple stores / shops';

--
-- Dumping data for table `bstock_stores`
--


--
-- Table structure for table `bstock_systemuserloginhistory`
--

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

--
-- Dumping data for table `bstock_systemuserloginhistory`
--


--
-- Table structure for table `bstock_systemusers`
--

CREATE TABLE `bstock_systemusers` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `user_name` varchar(50) NOT NULL COMMENT 'Username that will be used to login by the user to the system.',
  `password` varchar(100) NOT NULL COMMENT 'Password of the user stored in MD5 format.',
  `password1` varchar(300) NOT NULL,
  `email` varchar(250) NOT NULL COMMENT 'Email address of the user.',
  `first_name` varchar(100) NOT NULL COMMENT 'First name of the user.',
  `last_name` varchar(100) NOT NULL COMMENT 'Last name of the user.',
  `company_name` varchar(250) NOT NULL COMMENT 'Company name of the user.',
  `office_phone_number` varchar(50) NOT NULL COMMENT 'Office Phone number of the user.',
  `mobile_number` varchar(50) NOT NULL COMMENT 'This will be the mobile number of the user.',
  `last_login` varchar(50) NOT NULL COMMENT 'This will contain the last login date & time of the user.',
  `is_active` enum('on','off') NOT NULL COMMENT 'THis will determine whether the user is currently active or is blocked from using the system.',
  `profile_id` int(10) NOT NULL COMMENT 'This will be the foreign key from the profiles table & is mapped to the ''profile_id'' primary key.',
  `transaction_type_id` int(10) NOT NULL DEFAULT '1',
  `divisor` int(10) NOT NULL,
  `created_date` varchar(50) NOT NULL COMMENT 'This field will contain the created date for this user record.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This field will contain the last modified date for this user record.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1 COMMENT='Store details of system users. They are not customers.';

--
-- Dumping data for table `bstock_systemusers`
--

INSERT INTO `bstock_systemusers` VALUES (1,'admin','5f4dcc3b5aa765d61d8327deb882cf99','b136ee6c797c1a851260b9c1ab5ff414','harshad.narvekar@gmail.com','admin','lastname','biggventures','3333333333','999999999','','on',87,1,0,'',''),(2,'kothari','05f768ca0ba16fcd99f611c16c96adc2','','kotharivishal@gmail.com','vishal','kothari','bigg','3232323232','9819322550','','on',99,1,0,'','1298359728'),(3,'harshad','5f4dcc3b5aa765d61d8327deb882cf99','','harshad@biggventures.com','harshad','n','bigg','290232324','98989898989','','on',99,2,0,'',''),(4,'vishal','d5895585f7ab41ce1dbf0b7202b1799f','','vishal@finestardiamonds.com.au','Vishal','','FineStar Diamonds Pty Ltd','','','','on',87,1,0,'','1298361278'),(5,'yash','90e43c5db1f1731f54d82c45234bccb7','','yash@finestardiamonds.com.au','Yash','','FineStar Diamonds Pty Ltd','','','','on',87,1,0,'',''),(6,'roger','c729258fb9fc3fc74a2c492a3ca2ef4f','','roger@finestardiamonds.com.au','Roger','','FineStar Diamonds Pty Ltd','','','','on',87,1,0,'',''),(7,'khosrow','224c2dcd58022b08c6cc7e89b7531729','','khosrow@finestardiamonds.com.au','Khosrow','','FineStar Diamonds Pty Ltd','','','','on',87,1,0,'',''),(8,'stefani','3103a0b5969afd553e74463b3e6b7b8d','','stefani@finestardiamonds.com.au','Stefani','','FineStar Diamonds Pty Ltd','','','','on',87,1,0,'',''),(10,'swapna','65a6f195d252b62f6d170f2881aec6cf','','swapna@biggventures.com','Swapna','Patil','Bigg Ventures','111222','333444555','','on',87,1,0,'','1298366931');

--
-- Table structure for table `bstock_taxtypes`
--

CREATE TABLE `bstock_taxtypes` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `name` varchar(250) NOT NULL COMMENT 'Name of the tax type.',
  `html_taxtype` varchar(255) NOT NULL,
  `type` enum('Percent','Direct') NOT NULL COMMENT 'This field will determine whether this tax is to be deducted as per Percentage or as per the value entered.',
  `percent` varchar(50) NOT NULL COMMENT 'Percentage amount for this tax type.',
  `is_active` enum('0','1') NOT NULL COMMENT 'If active, then only this will be displayed while creating invoices / placing orders.',
  `created_date` varchar(50) NOT NULL COMMENT 'This field will contain the created date for this tax type.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This field will contain the last modified date for this tax type.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 COMMENT='Store the different tax types that are being used in the sys';

--
-- Dumping data for table `bstock_taxtypes`
--

INSERT INTO `bstock_taxtypes` VALUES (1,'GST','gst','Percent','4','1','',''),(4,'Insurance ','insurance','Percent','3','0','',''),(2,'Octroi','octroi','Percent','5','0','','');

--
-- Table structure for table `bstock_type_master`
--

CREATE TABLE `bstock_type_master` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'field is used as type_id in all other table to get the info regarding main products in the system',
  `type` varchar(255) NOT NULL,
  `description` varchar(524) NOT NULL,
  `created_date` int(50) NOT NULL,
  `modified_date` int(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bstock_type_master`
--

INSERT INTO `bstock_type_master` VALUES (1,'Platinum','Platinum',0,0),(2,'Gold','Gold',0,0),(3,'Silver','Silver',0,0),(4,'Diamond','Diamond',0,0),(5,'Jewelry','Jewelry',0,0);

--
-- Table structure for table `bstock_userprofiles`
--

CREATE TABLE `bstock_userprofiles` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `profile_name` varchar(100) NOT NULL COMMENT 'This will contain the profile name.',
  `description` text NOT NULL COMMENT 'This will contain the description of the profile.',
  `transaction_type_id` int(10) NOT NULL DEFAULT '1',
  `divisor` int(10) NOT NULL,
  `is_active` enum('on','off') NOT NULL DEFAULT 'on' COMMENT 'Whether this profile is currently active or not. If not active, none of the users of this profile shall be able to login.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will contain the created date for this profile.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will contain the last modified date for this profile.',
  `baseprofile` enum('Administrator','Sub-Admin','Customer') NOT NULL,
  `basepro` set('Administrator','Sub-Admin','Customer') NOT NULL,
  `transaction_types` enum('All','White','Black') NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=100 DEFAULT CHARSET=latin1 COMMENT='Store the different user profiles that are used in the syste';

--
-- Dumping data for table `bstock_userprofiles`
--

INSERT INTO `bstock_userprofiles` VALUES (87,'Admin','',1,0,'on','','1316588342','Administrator','','All'),(97,'Sub admin','Sub admin',1,0,'on','','1291268565','Administrator','','All'),(99,'test','',1,0,'on','','1298361477','Administrator','','All');

--
-- Table structure for table `bstock_vendors`
--

CREATE TABLE `bstock_vendors` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This will be the primary key.',
  `vendor_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='Stores vendor related information like Name, Address, etc.';

--
-- Dumping data for table `bstock_vendors`
--

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

--
-- Table structure for table `bstock_verification_history`
--

CREATE TABLE `bstock_verification_history` (
  `id` int(10) NOT NULL COMMENT 'primary id for table',
  `product_id` int(10) NOT NULL COMMENT 'foreign key with bstock_product table',
  `status` enum('Sold','Jhangad','In stock','Return Stock') NOT NULL COMMENT 'Different status of stock',
  `verified_date` varchar(50) NOT NULL COMMENT 'verification date',
  `verified` enum('0','1') NOT NULL COMMENT 'verified 0 or 1',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='It will store stock''s transaction history';

--
-- Dumping data for table `bstock_verification_history`
--


--
-- Table structure for table `carrier_id`
--

CREATE TABLE `carrier_id` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `carrier_id`
--

INSERT INTO `carrier_id` VALUES (1,'None','','off','1263042946','1263042946'),(2,'Drop off','','off','1263042946','1263042946'),(3,'Platinium Express Post','','off','1263042946','1263042946'),(4,'Express Post','','off','1263042946','1263042946'),(5,'Courier','','on','1263042946','1263042946'),(6,'Pickup','','on','1263042946','1263042946'),(7,' Lemiur','','off','1263042946','1263042946');

--
-- Table structure for table `category`
--

CREATE TABLE `category` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) 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=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `category`
--

INSERT INTO `category` VALUES (1,'None','','1','1285661515','1285661515'),(2,'C4','','1','1285661515','1285661515'),(3,'CP','','1','1285661515','1285661515'),(4,'CF','','1','1285661515','1285661515'),(5,'NC','','1','1285661515','1285661515');

--
-- Table structure for table `charni_from`
--

CREATE TABLE `charni_from` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `charni_from`
--

INSERT INTO `charni_from` VALUES (1,'ANY','','on','',''),(2,'+2','','on','1307534721','1307534721'),(3,'+4','','on','1307534721','1307534721'),(4,'+6','','on','1307534721','1307534721'),(5,'+8','','on','1307534721','1307534721'),(6,'+10','','on','1307534721','1307534721'),(7,'+11','','on','1307534721','1307534721'),(8,'+14','','on','1307534721','1307534721'),(9,'-2','','on','1307534721','1307534721'),(10,'-4','','on','1307534721','1307534721'),(11,'-6','','on','1307534721','1307534721'),(12,'-8','','on','1307534721','1307534721'),(13,'-10','','on','1307534721','1307534721'),(14,'-11','','on','1307534721','1307534721'),(15,'-14','','on','1307534721','1307534721');

--
-- Table structure for table `charni_to`
--

CREATE TABLE `charni_to` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `charni_to`
--

INSERT INTO `charni_to` VALUES (1,'ANY','','on','',''),(2,'+2','','on','1307534721','1307534721'),(3,'+4','','on','1307534721','1307534721'),(4,'+6','','on','1307534721','1307534721'),(5,'+8','','on','1307534721','1307534721'),(6,'+10','','on','1307534721','1307534721'),(7,'+11','','on','1307534721','1307534721'),(8,'+14','','on','1307534721','1307534721'),(9,'-2','','on','1307534721','1307534721'),(10,'-4','','on','1307534721','1307534721'),(11,'-6','','on','1307534721','1307534721'),(12,'-8','','on','1307534721','1307534721'),(13,'-10','','on','1307534721','1307534721'),(14,'-11','','on','1307534721','1307534721'),(15,'-14','','on','1307534721','1307534721');

--
-- Table structure for table `city_of_destination`
--

CREATE TABLE `city_of_destination` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') 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 `city_of_destination`
--

INSERT INTO `city_of_destination` VALUES (1,'Mumbai','','on','1263044479','1263044479'),(2,'Antwerp','','on','1263044479','1263044479'),(3,'New York','','on','1263044479','1263044479'),(4,'Hong Kong','','on','1263044479','1263044479');

--
-- Table structure for table `clarity`
--

CREATE TABLE `clarity` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `clarity`
--

INSERT INTO `clarity` VALUES (1,'ANY','','on','1261227023','1261227023'),(2,'IF','','on','1261227023','1261227023'),(3,'VVS1','','on','1261227023','1261227023'),(4,'VVS2','','on','1261227023','1261227023'),(5,'VS1','','on','1261227023','1261227023'),(6,'VS2','','on','1261227023','1261227023'),(7,'SI1','','on','1261227023','1261227023'),(8,'SI2','','on','1261227023','1261227023'),(9,'SI3','','on','1261227023','1261227023'),(10,'I1','','on','1261227023','1261227023'),(11,'I2','','on','1261227023','1261227023'),(12,'I3','','on','','');

--
-- Table structure for table `color`
--

CREATE TABLE `color` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=30 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `color`
--

INSERT INTO `color` VALUES (1,'ANY','','on','1261227132','1261227132'),(2,'D','','on','1261227132','1261227132'),(3,'E','','on','1261227132','1261227132'),(4,'F','','on','1261227132','1261227132'),(5,'G','','on','1261227132','1261227132'),(6,'H','','on','1261227132','1261227132'),(7,'I','','on','1261227132','1261227132'),(8,'J','','on','1261227132','1261227132'),(9,'K','','on','1261227132','1261227132'),(10,'L','','on','1261227132','1261227132'),(11,'M','','on','1261227132','1261227132'),(12,'N','','on','1261227132','1261227132'),(13,'O','','on','1261227132','1261227132'),(14,'P','','on','1261227132','1261227132'),(15,'Q','','on','1261227132','1261227132'),(16,'R','','on','1261227132','1261227132'),(17,'S','','on','1261227132','1261227132'),(18,'T','','on','1261227132','1261227132'),(19,'U','','on','1261227132','1261227132'),(20,'V','','on','1261227132','1261227132'),(25,'Pink','','on','',''),(26,'Cognac','','on','',''),(27,'Black','','on','',''),(28,'Orange','','on','',''),(29,'Yellow','','on','','');

--
-- Table structure for table `country`
--

CREATE TABLE `country` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) 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=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `country`
--

INSERT INTO `country` VALUES (1,'India','','1','1264598444','1264598444'),(2,' Hong Kong','','1','1264598444','1264598444'),(3,' USA','','1','1264598444','1264598444'),(4,' Belgium','','1','1264598444','1264598444');

--
-- Table structure for table `country_of_destination`
--

CREATE TABLE `country_of_destination` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') 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 `country_of_destination`
--

INSERT INTO `country_of_destination` VALUES (1,'NA','','on','1263273314','1263273314'),(2,'India','','on','1263273314','1263273314'),(3,'Belgium','','on','1263273314','1263273314');

--
-- Table structure for table `country_of_origin`
--

CREATE TABLE `country_of_origin` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') 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 `country_of_origin`
--

INSERT INTO `country_of_origin` VALUES (1,'NA','','on','1263273123','1263273123'),(2,'India','','on','1263273123','1263273123'),(3,'Belgium','','on','1263273123','1263273123');

--
-- Table structure for table `customerprofiles`
--

CREATE TABLE `customerprofiles` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primary key.',
  `dropdown_values` varchar(250) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('0','1') NOT NULL COMMENT 'Whether this profile is currently active or not. If not active, none of the customers of this profile shall be able to login.',
  `created_date` varchar(50) NOT NULL COMMENT 'This will contain the created date for this profile.',
  `modified_date` varchar(50) NOT NULL COMMENT 'This will contain the last modified date for this profile.',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COMMENT='Store the different user profiles that are used in the syste';

--
-- Dumping data for table `customerprofiles`
--

INSERT INTO `customerprofiles` VALUES (1,'User','','1','',''),(2,'Customer','','1','','');

--
-- Table structure for table `cut`
--

CREATE TABLE `cut` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `cut`
--

INSERT INTO `cut` VALUES (1,'ANY','','on','1261226805','1261226805'),(2,'EXCELLENT','','on','1261226805','1261226805'),(3,'VERY GOOD','','on','1261226805','1261226805'),(4,'GOOD','','on','1261226805','1261226805'),(5,'FAIR','','on','',''),(6,'Ideal','','on','123123124','123123124'),(7,'Poor','','on','123123124','123123124');

--
-- Table structure for table `delivery_types`
--

CREATE TABLE `delivery_types` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `icon` varchar(50) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COMMENT='Stores delivery types used for sending approvals & orders.';

--
-- Dumping data for table `delivery_types`
--

INSERT INTO `delivery_types` VALUES (1,'Courier','','on'),(2,'Express Post','','on'),(3,'Platinum','','on');

--
-- Table structure for table `departments`
--

CREATE TABLE `departments` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `department_name` varchar(250) NOT NULL COMMENT 'Department name',
  `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=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `departments`
--

INSERT INTO `departments` VALUES (1,'Atit','','on',0,0),(2,'Nirav','','on',0,0),(3,'Fenil','','on',0,0);

--
-- Table structure for table `disount_offers`
--

CREATE TABLE `disount_offers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(500) NOT NULL,
  `desc` varchar(1000) NOT NULL,
  `image` 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=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `disount_offers`
--

INSERT INTO `disount_offers` VALUES (1,'Save 15% For Limited Time','Online Exclusives','img1.jpg','on',1286637172,1286637172),(2,'Matching Pair ','BUY NOW ','img2.jpg','on',1286637172,1286637172);

--
-- Table structure for table `flourescence`
--

CREATE TABLE `flourescence` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `flourescence`
--

INSERT INTO `flourescence` VALUES (1,'ANY','','on','1261225411','1261225411'),(2,'NONE','','on','1261225411','1261225411'),(3,'FAINT','','on','1261225411','1261225411'),(4,'MEDIUM','','on','1261225411','1261225411'),(5,'STRONG','','on','1261225411','1261225411'),(6,'VERY STRONG','','on','1261225411','1261225411'),(7,'SLIGHT','','on','1261225411','1261225411'),(8,'VERY SLIGHT','','on','1261225411','1261225411');

--
-- Table structure for table `html_field_types`
--

CREATE TABLE `html_field_types` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) 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=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `html_field_types`
--

INSERT INTO `html_field_types` VALUES (1,'text','','1','',''),(2,'textarea','','1','',''),(3,'checkbox','','1','',''),(4,'radio','','1','',''),(5,'option','','1','',''),(6,'multiple','','1','',''),(7,'file','','1','',''),(8,'password','','1','','');

--
-- Table structure for table `jwl_category`
--

CREATE TABLE `jwl_category` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) 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=10 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `jwl_category`
--

INSERT INTO `jwl_category` VALUES (1,'Ring','','1','1285164756','1285164756'),(2,' Bangles','','1','1285164756','1285164756'),(3,' Necklace','','1','1285164756','1285164756'),(4,' Earnings','','1','1285164756','1285164756'),(5,' Bracelet','','1','1285164756','1285164756'),(6,' Nose Ring','','1','1285164756','1285164756'),(7,' Painjan','','1','1285164756','1285164756'),(8,' Bajuband','','1','1285164756','1285164756'),(9,' KamarPata','','1','1285164756','1285164756');

--
-- Table structure for table `lab`
--

CREATE TABLE `lab` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `lab`
--

INSERT INTO `lab` VALUES (2,'GIA','','on','',''),(3,'IGI','','on','',''),(4,'EGL Israel','','on','',''),(5,'EGL USA','','on','',''),(6,'EGL Other','','on','',''),(7,'GSL','','on','',''),(8,'GSL Verbal','','on','',''),(9,'IGL','','on','',''),(10,'IGL Verbal','','on','',''),(11,'DCLA','','on','',''),(12,'DCLA Verbal','','on','',''),(13,'Other','','on','',''),(14,'Uncertified','','on','','');

--
-- Table structure for table `location`
--

CREATE TABLE `location` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) 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=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `location`
--

INSERT INTO `location` VALUES (1,'All','','1','1261224120','1261224120'),(2,'Antwerp','','1','1261224120','1261224120'),(3,'Hong Kong','','1','1261224120','1261224120'),(4,'Mumbai','','1','1261224120','1261224120'),(5,'New York','','1','1261224120','1261224120');

--
-- Table structure for table `measurement_in_mm`
--

CREATE TABLE `measurement_in_mm` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `measurement_in_mm`
--

INSERT INTO `measurement_in_mm` VALUES (1,'ANY','','on','',''),(2,'+2mm','','on','1307534889','1307534889'),(3,'+2.5mm','','on','1307534889','1307534889'),(4,'+3mm','','on','1307534889','1307534889'),(5,'+4mm','','on','1307534889','1307534889'),(6,'-2mm','','on','1307534889','1307534889');

--
-- Table structure for table `payment_terms_id`
--

CREATE TABLE `payment_terms_id` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `no_of_days` decimal(10,0) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `payment_terms_id`
--

INSERT INTO `payment_terms_id` VALUES (1,'COD',0,'','on','1263279097','1263279097'),(2,'30 Days',30,'','on','1263279097','1263279097'),(3,'60 Days',60,'','on','1263279097','1263279097'),(4,'90 Days',90,'','on','1263279097','1263279097'),(5,'120 Days',120,'','on','',''),(6,'1 Week',7,'','on','',''),(7,'10 Days',10,'','','',''),(8,'15 Days',15,'','on','',''),(9,'45 days',45,'','on','1261227023','1261227023');

--
-- Table structure for table `place_of_receipt`
--

CREATE TABLE `place_of_receipt` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') 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 `place_of_receipt`
--

INSERT INTO `place_of_receipt` VALUES (1,'NA','','on','1263044185','1263044185'),(2,'Mumbai','','on','1263044185','1263044185'),(3,'Antwerp','','on','1263044185','1263044185');

--
-- Table structure for table `polish`
--

CREATE TABLE `polish` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `polish`
--

INSERT INTO `polish` VALUES (1,'ANY','','on','1261226805','1261226805'),(2,'EXCELLENT','','on','1261226805','1261226805'),(3,'VERY GOOD','','on','1261226805','1261226805'),(4,'GOOD','','on','1261226805','1261226805'),(5,'FAIR','','on','1261226805','1261226805'),(6,'Ideal','','on','123123124','123123124'),(7,'Poor','','on','123123124','123123124');

--
-- Table structure for table `port_of_discharge`
--

CREATE TABLE `port_of_discharge` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') 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 `port_of_discharge`
--

INSERT INTO `port_of_discharge` VALUES (1,'NA','','on','1263044308','1263044308'),(2,'India','','on','1263044308','1263044308'),(3,'Belgium','','on','1263044308','1263044308');

--
-- Table structure for table `port_of_loading`
--

CREATE TABLE `port_of_loading` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') 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 `port_of_loading`
--

INSERT INTO `port_of_loading` VALUES (1,'NA','','on','1263044308','1263044308'),(2,'Mumbai','','on','1263044308','1263044308'),(3,'Antwerp','','on','1263044308','1263044308');

--
-- Table structure for table `products_certification_history`
--

CREATE TABLE `products_certification_history` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `product_id` int(10) NOT NULL,
  `created_by_id` int(10) NOT NULL,
  `type` varchar(500) NOT NULL COMMENT 'This field will store the type of entry added here.It wil help while showing in history popup. For this it will be certification.',
  `certification_cost` float(10,2) NOT NULL,
  `certificate_status` enum('Given','Back') NOT NULL,
  `certification_type` enum('GIA','IGI') NOT NULL,
  `certification_changed_parameters` varchar(1000) NOT NULL,
  `discount` float(10,2) NOT NULL,
  `current_rap_price` float(10,2) NOT NULL,
  `created_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `products_certification_history`
--


--
-- Table structure for table `purchase_order_expense`
--

CREATE TABLE `purchase_order_expense` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `po_number_id` int(5) NOT NULL,
  `purpose` varchar(255) NOT NULL,
  `price` decimal(10,2) NOT NULL,
  `date` int(10) NOT NULL,
  `created_date` int(10) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `purchase_order_expense`
--

INSERT INTO `purchase_order_expense` VALUES (1,2,'test',33333.00,1273574188,1274697388,1274697388),(2,2,'test2',2222.00,1273574241,1274697441,1274697441),(3,2,'test3',1000.00,1273574259,1274697459,1274697459),(4,3,'test1',22.00,1275536011,1275449611,1275449611),(5,8,'test',3343.00,1275552309,1275638709,1275638709),(6,9,'test test',22.00,1275631832,1275718232,1275718232),(7,9,'test test',22.00,1275631832,1275718232,1275718232),(8,9,'test test',22.00,1275631832,1275718232,1275718232),(9,11,'test',233.00,1275632414,1275718814,1275718814),(10,12,'test',333.00,1275632777,1275719177,1275719177),(11,14,'test et et s',22.00,1275555636,1275728436,1275728436),(12,15,'test etst',2323.00,1275555824,1275728624,1275728624),(13,1,'test',333.00,1275575211,1276007211,1276007211),(14,22,'Cleaning.',500.00,1276001638,1276520038,1276520038),(15,23,'Polishing',1000.00,1275571602,1276522002,1276522002),(16,37,'test',342.00,1277881304,1277967704,1277967704);

--
-- Table structure for table `registers`
--

CREATE TABLE `registers` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `register_name` varchar(250) NOT NULL COMMENT 'Register name',
  `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=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `registers`
--

INSERT INTO `registers` VALUES (1,'M. Shailesh & Co.','','on',0,0),(2,'M/S Jewel','','on',0,0),(3,'Cash','','on',0,0);

--
-- Table structure for table `sales_order_expense`
--

CREATE TABLE `sales_order_expense` (
  `id` int(5) NOT NULL AUTO_INCREMENT,
  `so_number_id` int(5) NOT NULL,
  `purpose` varchar(255) NOT NULL,
  `price` decimal(10,2) NOT NULL,
  `date` int(10) NOT NULL,
  `created_date` int(10) NOT NULL,
  `modified_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `sales_order_expense`
--

INSERT INTO `sales_order_expense` VALUES (1,2,'test',33333.00,1273574188,1274697388,1274697388),(2,2,'test2',2222.00,1273574241,1274697441,1274697441),(3,2,'test3',1000.00,1273574259,1274697459,1274697459),(4,3,'test1',22.00,1275536011,1275449611,1275449611),(5,8,'test',3343.00,1275552309,1275638709,1275638709),(6,9,'test test',22.00,1275631832,1275718232,1275718232),(7,9,'test test',22.00,1275631832,1275718232,1275718232),(8,9,'test test',22.00,1275631832,1275718232,1275718232),(9,11,'test',233.00,1275632414,1275718814,1275718814),(10,12,'test',333.00,1275632777,1275719177,1275719177),(11,14,'test et et s',22.00,1275555636,1275728436,1275728436),(12,15,'test etst',2323.00,1275555824,1275728624,1275728624);

--
-- Table structure for table `shade`
--

CREATE TABLE `shade` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `shade`
--

INSERT INTO `shade` VALUES (1,'ANY','','on','',''),(2,'White','','on','',''),(3,'TTLC','','on','',''),(4,'LC','','on','',''),(5,'PLC','','on','','');

--
-- Table structure for table `shape`
--

CREATE TABLE `shape` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `shape`
--

INSERT INTO `shape` VALUES (2,'ROUND','rounded.jpg','on','1261221691','1261221691'),(3,'PRINCESS','prin.jpg','on','1261221691','1261221691'),(4,'PEAR','pear.jpg','on','1261221691','1261221691'),(5,'MARQUISE','marqui.jpg','on','1261221691','1261221691'),(6,'EMERALD','emerald.jpg','on','1261221691','1261221691'),(7,'HEART','heart.jpg','on','1261221691','1261221691'),(8,'OVAL','oval.jpg','on','1261221691','1261221691'),(9,'CUSHION','cuchi.jpg','on','1261221691','1261221691'),(10,'TRIANGLE','triangle.jpg','off','1261221691','1261221691'),(11,'ASSCHER','ascher.jpg','on','',''),(12,'RADIANT','radiant.jpg','on','',''),(13,'CHOKHI','','off','',''),(14,'TAPPERS','','on','',''),(15,'TRILLIANT','','on','',''),(16,'BAGUETTES','','on','',''),(17,'SQUARE CUT','','on','',''),(1,'','','off','','');

--
-- Table structure for table `status`
--

CREATE TABLE `status` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `status`
--

INSERT INTO `status` VALUES (1,'In Stock','','on','1290109529','1290109529'),(2,'Sold','','on','1290109529','1290109529'),(3,'Approval Placed','','on','1290109529','1290109529'),(4,'Approval Issued','','on','1290109529','1290109529'),(5,'Approval Issued Partial','','on','1290109529','1290109529'),(6,'Approval Couriered Full','','on','1290109529','1290109529'),(7,'Approval Couriered Partial','','on','1290109529','1290109529'),(8,'Approval Partially Returned','','on','1290109529','1290109529'),(9,'Approval Returned Full','','on','1290109529','1290109529'),(10,'Order Placed','','on','1290109529','1290109529'),(11,'Order Issued','','on','1290109529','1290109529'),(12,'Order Issued Partial','','on','1290109529','1290109529'),(13,'Order Couriered Full','','on','1290109529','1290109529'),(14,'Order Couriered Partial','','on','1290109529','1290109529'),(15,'Order Partially Returned','','on','1290109529','1290109529'),(16,'Order Returned Full','','on','1290109529','1290109529'),(17,'Onhold','','on','','');

--
-- Table structure for table `suggest`
--

CREATE TABLE `suggest` (
  `suggest_id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`suggest_id`)
) ENGINE=MyISAM AUTO_INCREMENT=99 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `suggest`
--

INSERT INTO `suggest` VALUES (1,'Home'),(2,'TECHNOLOGIES'),(3,'SOLUTIONS  AND SOFTWARE'),(4,'Websites'),(5,'Web Apps'),(6,'Applications'),(7,'E-COMMERCE SOLUTIONS'),(8,'osCommerce'),(9,'CMS / Portals'),(10,'Microsoft .NET'),(11,'J2EE'),(12,'LAMP'),(13,'PHP'),(14,'MySQL'),(15,'Apache'),(16,'ASP.NET'),(17,'Windows Applications'),(18,'JSP'),(19,'SWING'),(20,'Web Technologies'),(21,'XHTML'),(22,'RSS / ATOM'),(23,'XML'),(24,'XSL'),(25,'XAML'),(26,'AJAX'),(27,'About DynamicAJAX'),(28,'CSS'),(29,'The Basics'),(30,'SAJAX'),(31,'About The Site Images'),(32,'About Me'),(33,'JavaScript'),(34,'RSS 2.0'),(35,'ATOM 1.0'),(36,'Search Engine Optimization'),(37,'Flash'),(38,'Open Source'),(39,'HTTP Server'),(40,'Full Text Search'),(41,'Best Practices'),(42,'XML Schema Definitons'),(43,'Web Content Accessibility Guidelines'),(44,'Printable Pages'),(45,'Search Engine'),(46,'Navigation'),(47,'Direct Web Remoting'),(48,'Mars Exploration Rovers'),(49,'Cassini'),(50,'Fun with Queries'),(51,'SEO Tricks and Tactics'),(52,'osCommerce Contributions'),(53,'PHP & IIS'),(54,'Regular Expressions'),(55,'Rants'),(56,'URL Rewrite'),(57,'Fun with CSS'),(58,'ActionScript'),(59,'Visual Studio 2005'),(60,'SQL Server'),(61,'Search Engine Commands'),(62,'Web Site Layout'),(63,'AJAX'),(64,'AJAX Basics'),(65,'ATLAS'),(66,'SAJAX'),(67,'Tutorials'),(68,'Novice'),(69,'Frameworks'),(70,'Ajax.NET'),(71,'Framework Tutorials'),(72,'SAJAX'),(73,'Ajax.NET'),(74,'Direct Web Remoting'),(75,'Intermediate'),(76,'AJAX Example Sites'),(77,'My Tutorials'),(78,'AJAX Web Chat Part 1'),(79,'The JavaScript'),(80,'Sending The Request'),(81,'Color Schemes'),(82,'AJAX Resources'),(83,'The Backend'),(84,'Usability Additions'),(85,'AJAX Instant Messenger Part 1'),(86,'Ruby on Rails'),(87,'Crazy Queries'),(88,'XmlHttpRequest Methods'),(89,'XmlHttpRequest Properties'),(90,'AjaxTags'),(91,'Direct Web Remoting'),(92,'My URL Rewriting'),(93,'Great Quotes'),(94,'IXSSO Queries'),(95,'AFLAX'),(96,'Other Technologies'),(97,'Microsoft Indexing Server'),(98,'.NET & CISSO');

--
-- Table structure for table `symmetry`
--

CREATE TABLE `symmetry` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `symmetry`
--

INSERT INTO `symmetry` VALUES (1,'ANY','','on','1261226805','1261226805'),(2,'EXCELLENT','','on','1261226805','1261226805'),(3,'VERY GOOD','','on','1261226805','1261226805'),(4,'GOOD','','on','1261226805','1261226805'),(5,'FAIR','','on','1261226805','1261226805'),(6,'Ideal','','on','123123124','123123124'),(7,'Poor','','on','123123124','123123124');

--
-- Table structure for table `transaction_types`
--

CREATE TABLE `transaction_types` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') 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 `transaction_types`
--

INSERT INTO `transaction_types` VALUES (1,'All','','off','1277554424','1277554424'),(2,'White','','on','1277554424','1277554424'),(3,'Black','','on','1277554424','1277554424');

--
-- Table structure for table `trial_balance_entries`
--

CREATE TABLE `trial_balance_entries` (
  `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'This is the primiary key',
  `particulars` varchar(255) NOT NULL,
  `debit` decimal(10,3) NOT NULL,
  `credit` decimal(10,3) NOT NULL,
  `created_date` int(10) NOT NULL,
  `modified_date` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `trial_balance_entries`
--

INSERT INTO `trial_balance_entries` VALUES (1,'opening stock (on 1/4/2010)',25000.000,0.000,1269635676,1269635676),(2,'Purchases',4500094.000,0.000,1269635676,1269635676),(3,'Sales',0.000,9999999.999,1269635676,1269635676),(4,'Wages',20000.000,0.000,1269635676,1269635676),(5,'Conveyance',2400.000,0.000,1269635676,1269635676),(6,'Printing & Stationery',3000.000,0.000,1269635676,1269635676),(7,'Bad Debts',1300.000,0.000,1269635676,1269635676),(8,'Carriage & Courier',5500.000,0.000,1269635676,1269635676);

--
-- Table structure for table `typeofstone`
--

CREATE TABLE `typeofstone` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_active` enum('on','off') NOT NULL,
  `created_date` varchar(255) NOT NULL,
  `modified_date` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `typeofstone`
--

INSERT INTO `typeofstone` VALUES (1,'Loose','','on','',''),(2,'Single','','on','','');

--
-- Table structure for table `validation_type`
--

CREATE TABLE `validation_type` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) 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=40 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `validation_type`
--

INSERT INTO `validation_type` VALUES (1,'_AGE_','','1','1260186186','1260186186'),(2,'_NUMBER_','','1','1260186186','1260186186'),(3,'_ALPHA_','','1','1260186186','1260186186'),(4,'_ALPHANUM_','','1','1260186186','1260186186'),(7,'_CVVNUMBER_','','1','1260186186','1260186186'),(8,'_CREADITCARDNUMBER_','','1','1260186186','1260186186'),(9,'_USERNAME_','','1','1260186186','1260186186'),(10,'_NAME_','','1','1260186186','1260186186'),(11,'_FIRSTNAME_','','1','1260186186','1260186186'),(12,'_MIDDLENAME_','','1','1260186186','1260186186'),(13,'_LASTNAME_','','1','1260186186','1260186186'),(14,'_TITLE_','','1','1260186186','1260186186'),(15,'_POSITION_','','1','1260186186','1260186186'),(16,'_DESIGNATION_','','1','1260186186','1260186186'),(17,'_MOBILE_','','1','1260186186','1260186186'),(18,'_FAX_','','1','1260186186','1260186186'),(19,'_USPHONE_','','1','1260186186','1260186186'),(20,'_ZIP_','','1','1260186186','1260186186'),(21,'_USZIP_','','1','1260186186','1260186186'),(22,'_UKZIP_','','1','1260186186','1260186186'),(23,'_SSN_','','1','1260186186','1260186186'),(24,'_CURRENCY_','','1','1260186186','1260186186'),(25,'_EMAIL_','','1','1260186186','1260186186'),(26,'_URL_','','1','1260186186','1260186186'),(27,'_IP_','','1','1260186186','1260186186'),(28,'_REGION_','','1','1260186186','1260186186'),(29,'_PRODUCTTITLE_','','1','1260186186','1260186186'),(30,'_COMPANYNAME_','','1','1260186186','1260186186'),(31,'_CATEGORYNAME_','','1','1260186186','1260186186'),(32,'_BLOGTITLE_','','1','1260186186','1260186186'),(33,'_BLOGNAME_','','1','1260186186','1260186186'),(34,'_CITY_','','1','1260186186','1260186186'),(35,'_STATE_','','1','1260186186','1260186186'),(36,'_COUNTRY_','','1','1260186186','1260186186'),(37,'_DATE_','','1','1260186186','1260186186'),(39,'NONE','','1','','');

--
-- Table structure for table `vendorname`
--

CREATE TABLE `vendorname` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `dropdown_values` varchar(100) NOT NULL,
  `image_path` varchar(255) 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=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `vendorname`
--

INSERT INTO `vendorname` VALUES (1,'None','','1','1272312993','1272312993'),(2,'Bigg Stock','','1','1272312993','1272312993'),(3,' Vendor 1','','1','1272312993','1272312993'),(4,' Vendor 2','','1','1272312993','1272312993');


