Вы находитесь на странице: 1из 4

/* SQLyog Ultimate v9.02 MySQL - 5.6.10 : Database - abhtallydata ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!

40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; CREATE DATABASE /*!32312 IF NOT EXISTS*/`abhtallydata` /*!40100 DEFAULT CHARACTE R SET latin1 */; /*Table structure for table `access_details` */ DROP TABLE IF EXISTS `access_details`; CREATE TABLE `access_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` varchar(50) NOT NULL, `company_code` varchar(50) NOT NULL, `time_stamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*Table structure for table `company_master` */ DROP TABLE IF EXISTS `company_master`; CREATE TABLE `company_master` ( `company_code` varchar(255) NOT NULL, `company_address` text NOT NULL, `company_email` text NOT NULL, `company_phone` text NOT NULL, `company_state_name` text NOT NULL, `company_pin_code` text NOT NULL, `company_income_tax_number` text NOT NULL, `company_interstate_st_number` text NOT NULL, `company_tan_number` text NOT NULL, `company_vat_tin_number` text NOT NULL, `company_sales_tax_number` text NOT NULL, `company_composite_tin` text NOT NULL, `company_country` text NOT NULL, `company_name` text NOT NULL, `id` int(11) NOT NULL AUTO_INCREMENT, `time_stamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`,`company_code`(100)), UNIQUE KEY `company_code` (`company_code`(100)) ) ENGINE=MyISAM AUTO_INCREMENT=40 DEFAULT CHARSET=latin1; /*Table structure for table `inventory_group_master` */ DROP TABLE IF EXISTS `inventory_group_master`; CREATE TABLE `inventory_group_master` (

`id` int(11) NOT NULL AUTO_INCREMENT, `time_stamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `company_code` varchar(50) NOT NULL, `group_code` double NOT NULL, `group_name` varchar(50) NOT NULL, `group_parent_code` double NOT NULL, `group_parent_name` varchar(50) NOT NULL, `group_opening_balance` double NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=368 DEFAULT CHARSET=latin1; /*Table structure for table `inventory_master` */ DROP TABLE IF EXISTS `inventory_master`; CREATE TABLE `inventory_master` ( `id` int(11) NOT NULL AUTO_INCREMENT, `time_stamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `company_code` varchar(50) NOT NULL, `item_code` varchar(50) NOT NULL, `item_name` varchar(100) NOT NULL, `item_name_esc` text NOT NULL, `item_desc` text NOT NULL, `item_group_code` varchar(50) NOT NULL, `item_unit_code` varchar(50) NOT NULL, `item_alternate_unit_code` varchar(50) NOT NULL, `item_reorder_qty` double NOT NULL, `item_conversion` double NOT NULL, `item_denomination` double NOT NULL, `item_purchase_price` double NOT NULL, `item_sale_price` double NOT NULL, `item_rate_of_vat` double NOT NULL, `item_gauge_diff` double NOT NULL, `item_opening_balance` double NOT NULL, PRIMARY KEY (`id`), KEY `item_group_code` (`item_group_code`), KEY `item_code` (`item_code`), KEY `item_unit_code` (`item_unit_code`), KEY `item_alternate_unit_code` (`item_alternate_unit_code`) ) ENGINE=MyISAM AUTO_INCREMENT=11147 DEFAULT CHARSET=latin1; /*Table structure for table `inventory_unit_master` */ DROP TABLE IF EXISTS `inventory_unit_master`; CREATE TABLE `inventory_unit_master` ( `id` int(11) NOT NULL AUTO_INCREMENT, `time_stamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `company_code` varchar(50) NOT NULL, `unit_code` double NOT NULL, `unit_name` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=363 DEFAULT CHARSET=latin1; /*Table structure for table `ledger_master` */ DROP TABLE IF EXISTS `ledger_master`; CREATE TABLE `ledger_master` ( `ledger_code` varchar(30) NOT NULL,

`company_code` text NOT NULL, `ledger_name` text NOT NULL, `ledger_esc_name` text NOT NULL, `ledger_mobile` varchar(50) NOT NULL, `ledger_email` varchar(50) NOT NULL, `ledger_type` text NOT NULL, `ledger_parent` text NOT NULL, `ledger_tax_type` text NOT NULL, `ledger_tax_classification_name` text NOT NULL, `ledger_rate_of_tax` double NOT NULL, `ledger_tin` text NOT NULL, `ledger_addr` text NOT NULL, `ledger_city` text NOT NULL, `ledger_opening_balance` double NOT NULL, `time_stamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, UNIQUE KEY `ledger_code` (`ledger_code`,`company_code`(200)) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*Table structure for table `login` */ DROP TABLE IF EXISTS `login`; CREATE TABLE `login` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` text NOT NULL, `password` text NOT NULL, `access` text NOT NULL, `rights` text NOT NULL, `company_code` text NOT NULL, `ledger_code` text NOT NULL, `version` varchar(45) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=32 DEFAULT CHARSET=latin1; /*Table structure for table `transaction_bank_allocation` */ DROP TABLE IF EXISTS `transaction_bank_allocation`; CREATE TABLE `transaction_bank_allocation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `time_stamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `trans_id` double NOT NULL, `r_trans_id` double NOT NULL, `company_code` text NOT NULL, `trans_amount` double NOT NULL, `account_number` double NOT NULL, `bank_name` text NOT NULL, `bankers_date` date NOT NULL, `instrument_date` date NOT NULL, `instrument_number` text NOT NULL, `payment_favouring` text NOT NULL, `unique_ref_number` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=13787 DEFAULT CHARSET=latin1; /*Table structure for table `transaction_bill_allocation` */ DROP TABLE IF EXISTS `transaction_bill_allocation`; CREATE TABLE `transaction_bill_allocation` (

`id` int(11) NOT NULL AUTO_INCREMENT, `time_stamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `trans_id` double NOT NULL, `r_trans_id` double NOT NULL, `company_code` varchar(50) NOT NULL, `ledger_code` double NOT NULL, `bill_id` double NOT NULL, `bill_type` text NOT NULL, `bill_amount` double NOT NULL, `bill_name` text NOT NULL, `trans_type` text NOT NULL, `trans_date` date NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=42839 DEFAULT CHARSET=latin1; /*Table structure for table `transaction_inventory` */ DROP TABLE IF EXISTS `transaction_inventory`; CREATE TABLE `transaction_inventory` ( `id` int(11) NOT NULL AUTO_INCREMENT, `time_stamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `trans_date` date NOT NULL, `trans_id` double NOT NULL, `r_trans_id` double NOT NULL, `company_code` varchar(50) NOT NULL, `trans_type_name` varchar(50) NOT NULL, `item_amount` decimal(30,3) NOT NULL, `item_code` varchar(50) NOT NULL, `item_parent_code` varchar(50) NOT NULL, `item_unit_code` varchar(50) NOT NULL, `item_billed_qty` double NOT NULL, `item_actual_qty` double NOT NULL, `item_rate` double NOT NULL, `item_discount` double NOT NULL, `item_discount_rate` double NOT NULL, `item_tax` double NOT NULL, `item_gauge_diff` double DEFAULT NULL, `godown_id` double NOT NULL, `dispatch_doc_no` text NOT NULL, `basic_shipped_by` text NOT NULL, `basic_final_destination` text NOT NULL, `basic_order_no` text NOT NULL, `basic_order_date` date NOT NULL, `basic_due_date_payment` date NOT NULL, `basic_order_terms` text NOT NULL, `basic_order_ref` text NOT NULL, `item_basic_rate` double DEFAULT NULL, PRIMARY KEY (`id`), KEY `item_code` (`item_code`), KEY `r_trans_id` (`r_trans_id`) ) ENGINE=MyISAM AUTO_INCREMENT=61898 DEFAULT CHARSET=latin1; /*!40101 /*!40014 /*!40014 /*!40111 SET SET SET SET SQL_MODE=@OLD_SQL_MODE */; FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; SQL_NOTES=@OLD_SQL_NOTES */;

Вам также может понравиться