Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- phpMyAdmin SQL Dump
- -- version 4.2.12deb2
- -- http://www.phpmyadmin.net
- --
- -- Host: localhost
- -- Generation Time: Oct 28, 2015 at 11:30 AM
- -- Server version: 5.6.25-0ubuntu0.15.04.1
- -- PHP Version: 5.6.4-4ubuntu6.3
- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
- SET time_zone = "+00:00";
- --
- -- Database: `finance`
- --
- -- --------------------------------------------------------
- --
- -- Table structure for table `app`
- --
- CREATE TABLE IF NOT EXISTS `app` (
- `app_id` int(10) unsigned NOT NULL COMMENT 'Database Generated',
- `app_name` varchar(255) NOT NULL,
- `app_domain` varchar(255) DEFAULT NULL,
- `app_website` varchar(255) DEFAULT NULL,
- `app_permissions` varchar(255) NOT NULL,
- `app_token` varchar(255) DEFAULT NULL,
- `app_secret` varchar(255) DEFAULT NULL,
- `app_active` int(1) unsigned NOT NULL DEFAULT '1',
- `app_type` varchar(255) DEFAULT NULL,
- `app_flag` int(1) unsigned NOT NULL DEFAULT '0',
- `app_created` datetime NOT NULL,
- `app_updated` datetime NOT NULL
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
- --
- -- Dumping data for table `app`
- --
- INSERT INTO `app` (`app_id`, `app_name`, `app_domain`, `app_website`, `app_permissions`, `app_token`, `app_secret`, `app_active`, `app_type`, `app_flag`, `app_created`, `app_updated`) VALUES
- (1, 'Main Application', '*.openovate.com', 'http://openovate.com/', 'public_profile,public_sso,personal_profile,user_profile', '71d89077361fef0de88f37f7fe058dec', '3fbfaa6d8eff3759398475e8162e8264', 1, NULL, 0, '2015-08-21 00:00:00', '2015-10-21 14:54:49');
- -- --------------------------------------------------------
- --
- -- Table structure for table `app_profile`
- --
- CREATE TABLE IF NOT EXISTS `app_profile` (
- `app_profile_app` int(10) unsigned NOT NULL,
- `app_profile_profile` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- --
- -- Dumping data for table `app_profile`
- --
- INSERT INTO `app_profile` (`app_profile_app`, `app_profile_profile`) VALUES
- (1, 1);
- -- --------------------------------------------------------
- --
- -- Table structure for table `auth`
- --
- CREATE TABLE IF NOT EXISTS `auth` (
- `auth_id` int(10) unsigned NOT NULL COMMENT 'Database Generated',
- `auth_slug` varchar(255) NOT NULL COMMENT 'can be an email or slug',
- `auth_password` varchar(255) NOT NULL COMMENT 'md5 hash',
- `auth_token` varchar(255) NOT NULL COMMENT 'System Generated',
- `auth_secret` varchar(255) NOT NULL COMMENT 'System Generated',
- `auth_permissions` text NOT NULL COMMENT 'See permissions.json for options',
- `auth_facebook_token` varchar(255) DEFAULT NULL COMMENT 'Facebook access token',
- `auth_facebook_secret` varchar(255) DEFAULT NULL COMMENT 'Facebook access secret',
- `auth_linkedin_token` varchar(255) DEFAULT NULL COMMENT 'LinkedIn access token',
- `auth_linkedin_secret` varchar(255) DEFAULT NULL COMMENT 'LinkedIn access secret',
- `auth_twitter_token` varchar(255) DEFAULT NULL COMMENT 'Twitter access token',
- `auth_twitter_secret` varchar(255) DEFAULT NULL COMMENT 'Twitter access secret',
- `auth_google_token` varchar(255) DEFAULT NULL COMMENT 'Google access token',
- `auth_google_secret` varchar(255) DEFAULT NULL COMMENT 'Google access secret',
- `auth_active` int(1) unsigned NOT NULL DEFAULT '1' COMMENT 'Do not delete rows',
- `auth_type` varchar(255) DEFAULT NULL COMMENT 'General usage type',
- `auth_flag` int(1) unsigned NOT NULL DEFAULT '0' COMMENT 'General usage flag',
- `auth_created` datetime NOT NULL COMMENT 'System Generated',
- `auth_updated` datetime NOT NULL COMMENT 'System Generated'
- ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
- --
- -- Dumping data for table `auth`
- --
- INSERT INTO `auth` (`auth_id`, `auth_slug`, `auth_password`, `auth_token`, `auth_secret`, `auth_permissions`, `auth_facebook_token`, `auth_facebook_secret`, `auth_linkedin_token`, `auth_linkedin_secret`, `auth_twitter_token`, `auth_twitter_secret`, `auth_google_token`, `auth_google_secret`, `auth_active`, `auth_type`, `auth_flag`, `auth_created`, `auth_updated`) VALUES
- (1, 'admin@openovate.com', '21232f297a57a5a743894a0e4a801fc3', '986e7ce6bec660838491c1cd0a1f4ef6', 'ba0d2fc7aab09dfa3463943c0aaa8551', 'public_profile,public_sso,personal_profile,user_profile', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0, '2015-09-11 23:05:17', '2015-09-11 23:05:17'),
- (2, 'soy2@gmail.com', '202cb962ac59075b964b07152d234b70', '94be446f419fc57fd67999e03a4bd549', 'c52934dd5e85d11a842de39fa7bbfe56', 'public_profile,public_sso,personal_profile,user_profile', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0, '2015-10-23 17:17:27', '2015-10-23 17:17:27'),
- (3, '123', '202cb962ac59075b964b07152d234b70', 'dd55a61a27da2dad99d3ed99acd70feb', '15a85ee6671dcc2d7c5e05c2fadc3dec', 'public_profile,public_sso,personal_profile,user_profile', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0, '2015-10-23 17:18:43', '2015-10-23 17:18:43'),
- (6, 'soy@gmail.com', '202cb962ac59075b964b07152d234b70', '20f5e8a29e29d832e042d6ef78eccc5b', 'b760464307b9bc220a9bf9433e901e06', 'public_profile,public_sso,personal_profile,user_profile', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0, '2015-10-23 17:20:39', '2015-10-23 17:20:39'),
- (8, '1234', '202cb962ac59075b964b07152d234b70', 'abe7e03e77e21832d5b9a84222d8347a', '7a697b7e79e4cde7f2a3c6e72cf31f2d', 'public_profile,public_sso,personal_profile,user_profile', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0, '2015-10-23 17:28:45', '2015-10-23 17:28:45'),
- (9, 'test@gmail.com', '202cb962ac59075b964b07152d234b70', 'efc75d7048dc2d059487122859832ea5', 'daac81dd8f79386048c062e4e787260c', 'public_profile,public_sso,personal_profile,user_profile', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0, '2015-10-23 17:29:06', '2015-10-23 17:29:06');
- -- --------------------------------------------------------
- --
- -- Table structure for table `auth_profile`
- --
- CREATE TABLE IF NOT EXISTS `auth_profile` (
- `auth_profile_auth` int(10) unsigned NOT NULL,
- `auth_profile_profile` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- --
- -- Dumping data for table `auth_profile`
- --
- INSERT INTO `auth_profile` (`auth_profile_auth`, `auth_profile_profile`) VALUES
- (1, 1),
- (2, 4),
- (3, 5),
- (6, 8),
- (8, 10),
- (9, 11);
- -- --------------------------------------------------------
- --
- -- Table structure for table `matching`
- --
- CREATE TABLE IF NOT EXISTS `matching` (
- `matching_id` int(10) unsigned NOT NULL,
- `matching_app` int(10) NOT NULL,
- `matching_order` int(10) DEFAULT NULL,
- `matching_reference` varchar(255) NOT NULL,
- `matching_method` varchar(255) NOT NULL,
- `matching_total` float(10,2) NOT NULL DEFAULT '0.00',
- `matching_processed_by` varchar(255) NOT NULL,
- `matching_remark` varchar(255) NOT NULL,
- `matching_active` int(1) unsigned NOT NULL DEFAULT '1',
- `matching_type` varchar(255) DEFAULT NULL,
- `matching_flag` int(1) unsigned NOT NULL DEFAULT '0',
- `matching_created` datetime NOT NULL,
- `matching_updated` datetime NOT NULL
- ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
- --
- -- Dumping data for table `matching`
- --
- INSERT INTO `matching` (`matching_id`, `matching_app`, `matching_order`, `matching_reference`, `matching_method`, `matching_total`, `matching_processed_by`, `matching_remark`, `matching_active`, `matching_type`, `matching_flag`, `matching_created`, `matching_updated`) VALUES
- (1, 0, 1, '1234', 'lbc-otc', 5100.00, 'Admin', 'Greater by 4800', 1, '3', 0, '2015-10-28 00:18:18', '2015-10-28 00:26:27'),
- (2, 1, NULL, '1235', 'lbc-otc', 5100.00, 'Admin', 'Unmatched', 1, '4', 0, '2015-10-28 00:19:46', '2015-10-28 00:26:27');
- -- --------------------------------------------------------
- --
- -- Table structure for table `permission`
- --
- CREATE TABLE IF NOT EXISTS `permission` (
- `permission_id` int(10) unsigned NOT NULL,
- `permission_action` varchar(255) NOT NULL,
- `permission_active` int(1) unsigned NOT NULL DEFAULT '1',
- `permission_type` varchar(255) DEFAULT NULL,
- `permission_flag` int(1) unsigned NOT NULL DEFAULT '0',
- `permission_created` datetime NOT NULL,
- `permission_updated` datetime NOT NULL
- ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
- --
- -- Dumping data for table `permission`
- --
- INSERT INTO `permission` (`permission_id`, `permission_action`, `permission_active`, `permission_type`, `permission_flag`, `permission_created`, `permission_updated`) VALUES
- (1, 'View', 1, NULL, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
- (2, 'Edit', 1, NULL, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
- (3, 'Delete', 1, NULL, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
- (4, 'Add', 1, NULL, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
- -- --------------------------------------------------------
- --
- -- Table structure for table `profile`
- --
- CREATE TABLE IF NOT EXISTS `profile` (
- `profile_id` int(10) unsigned NOT NULL COMMENT 'Database Generated',
- `profile_name` varchar(255) NOT NULL,
- `profile_first` varchar(255) DEFAULT NULL,
- `profile_last` varchar(255) DEFAULT NULL,
- `profile_email` varchar(255) DEFAULT NULL,
- `profile_phone` varchar(255) DEFAULT NULL,
- `profile_detail` text,
- `profile_image` varchar(255) DEFAULT NULL,
- `profile_company` varchar(255) DEFAULT NULL,
- `profile_job` varchar(255) DEFAULT NULL,
- `profile_gender` varchar(255) DEFAULT NULL,
- `profile_birth` datetime DEFAULT NULL,
- `profile_website` varchar(255) DEFAULT NULL,
- `profile_facebook` varchar(255) DEFAULT NULL,
- `profile_linkedin` varchar(255) DEFAULT NULL,
- `profile_twitter` varchar(255) DEFAULT NULL,
- `profile_google` varchar(255) DEFAULT NULL,
- `profile_reference` varchar(255) DEFAULT NULL,
- `profile_active` int(1) unsigned NOT NULL DEFAULT '1',
- `profile_type` varchar(255) DEFAULT NULL,
- `profile_flag` int(1) unsigned NOT NULL DEFAULT '0',
- `profile_created` datetime NOT NULL,
- `profile_updated` datetime NOT NULL
- ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
- --
- -- Dumping data for table `profile`
- --
- INSERT INTO `profile` (`profile_id`, `profile_name`, `profile_first`, `profile_last`, `profile_email`, `profile_phone`, `profile_detail`, `profile_image`, `profile_company`, `profile_job`, `profile_gender`, `profile_birth`, `profile_website`, `profile_facebook`, `profile_linkedin`, `profile_twitter`, `profile_google`, `profile_reference`, `profile_active`, `profile_type`, `profile_flag`, `profile_created`, `profile_updated`) VALUES
- (1, 'Admin', NULL, NULL, 'admin@openovate.com', '+63 (2) 654-5110', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0, '2015-09-11 23:05:16', '2015-09-11 23:05:16'),
- (7, 'soy2 123', 'soy2', '123', '123@gmail.com', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0, '2015-10-23 17:20:19', '2015-10-24 11:29:33'),
- (8, 'soy s', 'soy', 's', 'soy@gmail.com', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0, '2015-10-23 17:20:38', '2015-10-23 17:20:38'),
- (9, 'soy 123', 'soy', '123', 'soy2@gmail.com', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0, '2015-10-23 17:27:19', '2015-10-23 17:27:19'),
- (10, 'soy 123', 'soy', '123', '1234', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0, '2015-10-23 17:28:45', '2015-10-23 17:28:45'),
- (11, 'Test s', 'Test', 's', 'test@gmail.com', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0, '2015-10-23 17:29:06', '2015-10-23 17:29:06');
- -- --------------------------------------------------------
- --
- -- Table structure for table `quote`
- --
- CREATE TABLE IF NOT EXISTS `quote` (
- `quote_id` int(10) unsigned NOT NULL,
- `quote_name` varchar(255) NOT NULL,
- `quote_reference` varchar(255) NOT NULL,
- `quote_amount` float(10,2) NOT NULL DEFAULT '0.00',
- `quote_product_id` int(10) NOT NULL,
- `quote_variant` varchar(255) DEFAULT NULL,
- `quote_weight` float(10,2) NOT NULL DEFAULT '0.00',
- `quote_tax` float(10,2) DEFAULT '0.00',
- `quote_active` int(1) unsigned NOT NULL DEFAULT '1',
- `quote_type` varchar(255) DEFAULT NULL,
- `quote_flag` int(1) unsigned NOT NULL DEFAULT '0',
- `quote_created` datetime NOT NULL,
- `quote_updated` datetime NOT NULL
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
- --
- -- Dumping data for table `quote`
- --
- INSERT INTO `quote` (`quote_id`, `quote_name`, `quote_reference`, `quote_amount`, `quote_product_id`, `quote_variant`, `quote_weight`, `quote_tax`, `quote_active`, `quote_type`, `quote_flag`, `quote_created`, `quote_updated`) VALUES
- (1, 'Quote Name', '1234', 300.00, 1, NULL, 3.00, 0.00, 1, NULL, 0, '2015-10-27 17:23:11', '2015-10-27 17:23:11');
- -- --------------------------------------------------------
- --
- -- Table structure for table `refund`
- --
- CREATE TABLE IF NOT EXISTS `refund` (
- `refund_id` int(10) unsigned NOT NULL,
- `refund_method` varchar(255) NOT NULL,
- `refund_reason` varchar(255) NOT NULL,
- `refund_status` varchar(255) DEFAULT 'PENDING',
- `refund_active` int(1) unsigned NOT NULL DEFAULT '1',
- `refund_type` varchar(255) DEFAULT NULL,
- `refund_flag` int(1) unsigned NOT NULL DEFAULT '0',
- `refund_created` datetime NOT NULL,
- `refund_updated` datetime NOT NULL
- ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
- --
- -- Dumping data for table `refund`
- --
- INSERT INTO `refund` (`refund_id`, `refund_method`, `refund_reason`, `refund_status`, `refund_active`, `refund_type`, `refund_flag`, `refund_created`, `refund_updated`) VALUES
- (1, 'lbc-otc', 'Test', 'PENDING', 1, NULL, 0, '2015-10-26 10:45:15', '2015-10-26 10:45:15'),
- (2, 'lbc-otc', 'Test', 'APPROVED', 1, NULL, 0, '2015-10-26 10:48:22', '2015-10-26 10:48:33'),
- (3, 'lbc-otc', 'Test', 'PENDING', 1, NULL, 0, '2015-10-26 10:50:56', '2015-10-26 10:50:56');
- -- --------------------------------------------------------
- --
- -- Table structure for table `refund_quote`
- --
- CREATE TABLE IF NOT EXISTS `refund_quote` (
- `refund_quote_refund` int(10) unsigned NOT NULL,
- `refund_quote_quote` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- --
- -- Dumping data for table `refund_quote`
- --
- INSERT INTO `refund_quote` (`refund_quote_refund`, `refund_quote_quote`) VALUES
- (2, 1),
- (3, 1);
- -- --------------------------------------------------------
- --
- -- Table structure for table `role`
- --
- CREATE TABLE IF NOT EXISTS `role` (
- `role_id` int(10) unsigned NOT NULL,
- `role_name` varchar(255) NOT NULL,
- `role_group` varchar(255) NOT NULL,
- `role_active` int(1) unsigned NOT NULL DEFAULT '1',
- `role_type` varchar(255) DEFAULT NULL,
- `role_flag` int(1) unsigned NOT NULL DEFAULT '0',
- `role_created` datetime NOT NULL,
- `role_updated` datetime NOT NULL
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
- --
- -- Dumping data for table `role`
- --
- INSERT INTO `role` (`role_id`, `role_name`, `role_group`, `role_active`, `role_type`, `role_flag`, `role_created`, `role_updated`) VALUES
- (1, 'Super Admin', 'Marketing', 1, NULL, 0, '2015-10-23 15:51:59', '2015-10-23 15:51:59');
- -- --------------------------------------------------------
- --
- -- Table structure for table `role_permission`
- --
- CREATE TABLE IF NOT EXISTS `role_permission` (
- `role_permission_role` int(10) unsigned NOT NULL,
- `role_permission_permission` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- --
- -- Dumping data for table `role_permission`
- --
- INSERT INTO `role_permission` (`role_permission_role`, `role_permission_permission`) VALUES
- (1, 1);
- -- --------------------------------------------------------
- --
- -- Table structure for table `role_profile`
- --
- CREATE TABLE IF NOT EXISTS `role_profile` (
- `role_profile_role` int(10) unsigned NOT NULL,
- `role_profile_profile` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- --
- -- Dumping data for table `role_profile`
- --
- INSERT INTO `role_profile` (`role_profile_role`, `role_profile_profile`) VALUES
- (1, 4),
- (1, 5),
- (1, 8),
- (1, 10),
- (1, 11);
- -- --------------------------------------------------------
- --
- -- Table structure for table `session`
- --
- CREATE TABLE IF NOT EXISTS `session` (
- `session_id` int(10) unsigned NOT NULL COMMENT 'Database Generated',
- `session_token` varchar(255) NOT NULL COMMENT 'System Generated',
- `session_secret` varchar(255) NOT NULL COMMENT 'System Generated',
- `session_permissions` text NOT NULL COMMENT 'See permissions.json for options',
- `session_status` varchar(255) NOT NULL DEFAULT 'PENDING' COMMENT 'eg. PENDING, ACCESS etc.',
- `session_active` int(1) unsigned NOT NULL DEFAULT '1' COMMENT 'Do not delete rows',
- `session_type` varchar(255) DEFAULT NULL COMMENT 'General usage type',
- `session_flag` int(1) unsigned NOT NULL DEFAULT '0' COMMENT 'General usage flag',
- `session_created` datetime NOT NULL COMMENT 'System Generated',
- `session_updated` datetime NOT NULL COMMENT 'System Generated'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Table structure for table `session_app`
- --
- CREATE TABLE IF NOT EXISTS `session_app` (
- `session_app_session` int(10) unsigned NOT NULL,
- `session_app_app` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Table structure for table `session_auth`
- --
- CREATE TABLE IF NOT EXISTS `session_auth` (
- `session_auth_session` int(10) unsigned NOT NULL,
- `session_auth_auth` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Table structure for table `settlement`
- --
- CREATE TABLE IF NOT EXISTS `settlement` (
- `settlement_id` int(10) unsigned NOT NULL,
- `settlement_fee` int(10) NOT NULL,
- `settlement_amount` float(10,2) NOT NULL,
- `settlement_active` int(1) unsigned NOT NULL DEFAULT '1',
- `settlement_type` varchar(255) DEFAULT NULL,
- `settlement_flag` int(1) unsigned NOT NULL DEFAULT '0',
- `settlement_created` datetime NOT NULL,
- `settlement_updated` datetime NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- -- --------------------------------------------------------
- --
- -- Table structure for table `shop`
- --
- CREATE TABLE IF NOT EXISTS `shop` (
- `shop_id` int(10) unsigned NOT NULL,
- `shop_name` varchar(255) NOT NULL,
- `shop_reference` varchar(255) NOT NULL,
- `shop_tin` varchar(255) DEFAULT NULL,
- `shop_business_name` varchar(255) NOT NULL,
- `shop_bank_name` varchar(255) NOT NULL,
- `shop_account_name` varchar(255) NOT NULL,
- `shop_account_no` int(10) NOT NULL,
- `shop_category` varchar(255) NOT NULL,
- `shop_active` int(1) unsigned NOT NULL DEFAULT '1',
- `shop_type` varchar(255) DEFAULT NULL,
- `shop_flag` int(1) unsigned NOT NULL DEFAULT '0',
- `shop_created` datetime NOT NULL,
- `shop_updated` datetime NOT NULL
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
- --
- -- Dumping data for table `shop`
- --
- INSERT INTO `shop` (`shop_id`, `shop_name`, `shop_reference`, `shop_tin`, `shop_business_name`, `shop_bank_name`, `shop_account_name`, `shop_account_no`, `shop_category`, `shop_active`, `shop_type`, `shop_flag`, `shop_created`, `shop_updated`) VALUES
- (1, 'Kimstore', '123', NULL, 'Kimstore Business Name', 'BDO', 'Account Name', 12345678, 'DIY', 1, NULL, 0, '2015-10-27 17:23:11', '2015-10-27 17:23:11');
- -- --------------------------------------------------------
- --
- -- Table structure for table `transaction`
- --
- CREATE TABLE IF NOT EXISTS `transaction` (
- `transaction_id` int(10) unsigned NOT NULL,
- `transaction_name` varchar(255) NOT NULL,
- `transaction_po` varchar(255) NOT NULL,
- `transaction_order` int(10) NOT NULL,
- `transaction_method` varchar(255) NOT NULL,
- `transaction_discount_code` varchar(255) DEFAULT NULL,
- `transaction_shipping` float(10,2) NOT NULL DEFAULT '0.00',
- `transaction_insurance` float(10,2) NOT NULL DEFAULT '0.00',
- `transaction_total` float(10,2) NOT NULL DEFAULT '0.00',
- `transaction_region` varchar(255) NOT NULL,
- `transaction_reference` varchar(255) NOT NULL,
- `transaction_order_date` datetime NOT NULL,
- `transaction_paid_date` datetime DEFAULT NULL,
- `transaction_verified_date` datetime DEFAULT NULL,
- `transaction_tax` float(10,2) DEFAULT '0.00',
- `transaction_currency` varchar(255) DEFAULT 'PHP',
- `transaction_email` varchar(255) DEFAULT NULL,
- `transaction_phone` varchar(255) DEFAULT NULL,
- `transaction_status` varchar(255) DEFAULT 'PENDING',
- `transaction_active` int(1) unsigned NOT NULL DEFAULT '1',
- `transaction_type` varchar(255) DEFAULT NULL,
- `transaction_flag` int(1) unsigned NOT NULL DEFAULT '0',
- `transaction_created` datetime NOT NULL,
- `transaction_updated` datetime NOT NULL
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
- --
- -- Dumping data for table `transaction`
- --
- INSERT INTO `transaction` (`transaction_id`, `transaction_name`, `transaction_po`, `transaction_order`, `transaction_method`, `transaction_discount_code`, `transaction_shipping`, `transaction_insurance`, `transaction_total`, `transaction_region`, `transaction_reference`, `transaction_order_date`, `transaction_paid_date`, `transaction_verified_date`, `transaction_tax`, `transaction_currency`, `transaction_email`, `transaction_phone`, `transaction_status`, `transaction_active`, `transaction_type`, `transaction_flag`, `transaction_created`, `transaction_updated`) VALUES
- (1, 'Juan Dela Cruz', '1234', 1, 'lbc-otc', NULL, 15.00, 15.00, 300.00, 'Laguna', '1234', '2015-10-28 00:00:00', NULL, NULL, 0.00, 'PHP', NULL, NULL, 'PENDING', 1, NULL, 0, '2015-10-27 17:23:11', '2015-10-27 17:23:11');
- -- --------------------------------------------------------
- --
- -- Table structure for table `transaction_app`
- --
- CREATE TABLE IF NOT EXISTS `transaction_app` (
- `transaction_app_transaction` int(10) unsigned NOT NULL,
- `transaction_app_app` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- --
- -- Dumping data for table `transaction_app`
- --
- INSERT INTO `transaction_app` (`transaction_app_transaction`, `transaction_app_app`) VALUES
- (1, 1);
- -- --------------------------------------------------------
- --
- -- Table structure for table `transaction_file`
- --
- CREATE TABLE IF NOT EXISTS `transaction_file` (
- `transaction_file_transaction` int(10) unsigned NOT NULL,
- `transaction_file_file` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Table structure for table `transaction_history`
- --
- CREATE TABLE IF NOT EXISTS `transaction_history` (
- `transaction_history_transaction` int(10) unsigned NOT NULL,
- `transaction_history_history` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Table structure for table `transaction_matching`
- --
- CREATE TABLE IF NOT EXISTS `transaction_matching` (
- `transaction_matching_transaction` int(10) unsigned NOT NULL,
- `transaction_matching_matching` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- --
- -- Dumping data for table `transaction_matching`
- --
- INSERT INTO `transaction_matching` (`transaction_matching_transaction`, `transaction_matching_matching`) VALUES
- (1, 1);
- -- --------------------------------------------------------
- --
- -- Table structure for table `transaction_profile`
- --
- CREATE TABLE IF NOT EXISTS `transaction_profile` (
- `transaction_profile_transaction` int(10) unsigned NOT NULL,
- `transaction_profile_profile` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Table structure for table `transaction_quote`
- --
- CREATE TABLE IF NOT EXISTS `transaction_quote` (
- `transaction_quote_transaction` int(10) unsigned NOT NULL,
- `transaction_quote_quote` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- --
- -- Dumping data for table `transaction_quote`
- --
- INSERT INTO `transaction_quote` (`transaction_quote_transaction`, `transaction_quote_quote`) VALUES
- (1, 1);
- -- --------------------------------------------------------
- --
- -- Table structure for table `transaction_refund`
- --
- CREATE TABLE IF NOT EXISTS `transaction_refund` (
- `transaction_refund_transaction` int(10) unsigned NOT NULL,
- `transaction_refund_refund` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Table structure for table `transaction_settlement`
- --
- CREATE TABLE IF NOT EXISTS `transaction_settlement` (
- `transaction_settlement_transaction` int(10) unsigned NOT NULL,
- `transaction_settlement_settlement` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Table structure for table `transaction_shop`
- --
- CREATE TABLE IF NOT EXISTS `transaction_shop` (
- `transaction_shop_transaction` int(10) unsigned NOT NULL,
- `transaction_shop_shop` int(10) unsigned NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- --
- -- Dumping data for table `transaction_shop`
- --
- INSERT INTO `transaction_shop` (`transaction_shop_transaction`, `transaction_shop_shop`) VALUES
- (1, 1);
- --
- -- Indexes for dumped tables
- --
- --
- -- Indexes for table `app`
- --
- ALTER TABLE `app`
- ADD PRIMARY KEY (`app_id`), ADD KEY `app_active` (`app_active`), ADD KEY `app_type` (`app_type`), ADD KEY `app_flag` (`app_flag`), ADD KEY `app_created` (`app_created`), ADD KEY `app_updated` (`app_updated`);
- --
- -- Indexes for table `app_profile`
- --
- ALTER TABLE `app_profile`
- ADD PRIMARY KEY (`app_profile_app`,`app_profile_profile`), ADD KEY `profile_id_idx` (`app_profile_profile`);
- --
- -- Indexes for table `auth`
- --
- ALTER TABLE `auth`
- ADD PRIMARY KEY (`auth_id`), ADD UNIQUE KEY `auth_slug` (`auth_slug`), ADD KEY `auth_password` (`auth_password`), ADD KEY `auth_token` (`auth_token`), ADD KEY `auth_secret` (`auth_secret`), ADD KEY `auth_active` (`auth_active`), ADD KEY `auth_type` (`auth_type`), ADD KEY `auth_flag` (`auth_flag`), ADD KEY `auth_created` (`auth_created`), ADD KEY `auth_updated` (`auth_updated`);
- --
- -- Indexes for table `auth_profile`
- --
- ALTER TABLE `auth_profile`
- ADD PRIMARY KEY (`auth_profile_auth`,`auth_profile_profile`), ADD KEY `profile_id_idx` (`auth_profile_profile`);
- --
- -- Indexes for table `matching`
- --
- ALTER TABLE `matching`
- ADD PRIMARY KEY (`matching_id`), ADD KEY `matching_active` (`matching_active`), ADD KEY `matching_type` (`matching_type`), ADD KEY `matching_flag` (`matching_flag`), ADD KEY `matching_created` (`matching_created`), ADD KEY `matching_updated` (`matching_updated`);
- --
- -- Indexes for table `permission`
- --
- ALTER TABLE `permission`
- ADD PRIMARY KEY (`permission_id`), ADD KEY `permission_active` (`permission_active`), ADD KEY `permission_type` (`permission_type`), ADD KEY `permission_flag` (`permission_flag`), ADD KEY `permission_created` (`permission_created`), ADD KEY `permission_updated` (`permission_updated`);
- --
- -- Indexes for table `profile`
- --
- ALTER TABLE `profile`
- ADD PRIMARY KEY (`profile_id`), ADD KEY `profile_active` (`profile_active`), ADD KEY `profile_type` (`profile_type`), ADD KEY `profile_flag` (`profile_flag`), ADD KEY `profile_created` (`profile_created`), ADD KEY `profile_updated` (`profile_updated`);
- --
- -- Indexes for table `quote`
- --
- ALTER TABLE `quote`
- ADD PRIMARY KEY (`quote_id`), ADD KEY `quote_active` (`quote_active`), ADD KEY `quote_type` (`quote_type`), ADD KEY `quote_flag` (`quote_flag`), ADD KEY `quote_created` (`quote_created`), ADD KEY `quote_updated` (`quote_updated`);
- --
- -- Indexes for table `refund`
- --
- ALTER TABLE `refund`
- ADD PRIMARY KEY (`refund_id`), ADD KEY `refund_active` (`refund_active`), ADD KEY `refund_type` (`refund_type`), ADD KEY `refund_flag` (`refund_flag`), ADD KEY `refund_created` (`refund_created`), ADD KEY `refund_updated` (`refund_updated`);
- --
- -- Indexes for table `refund_quote`
- --
- ALTER TABLE `refund_quote`
- ADD PRIMARY KEY (`refund_quote_refund`,`refund_quote_quote`), ADD KEY `quote_id_idx` (`refund_quote_quote`);
- --
- -- Indexes for table `role`
- --
- ALTER TABLE `role`
- ADD PRIMARY KEY (`role_id`), ADD KEY `role_active` (`role_active`), ADD KEY `role_type` (`role_type`), ADD KEY `role_flag` (`role_flag`), ADD KEY `role_created` (`role_created`), ADD KEY `role_updated` (`role_updated`);
- --
- -- Indexes for table `role_permission`
- --
- ALTER TABLE `role_permission`
- ADD PRIMARY KEY (`role_permission_role`,`role_permission_permission`), ADD KEY `permission_id_idx` (`role_permission_permission`);
- --
- -- Indexes for table `role_profile`
- --
- ALTER TABLE `role_profile`
- ADD PRIMARY KEY (`role_profile_role`,`role_profile_profile`), ADD KEY `profile_id_idx` (`role_profile_profile`);
- --
- -- Indexes for table `session`
- --
- ALTER TABLE `session`
- ADD PRIMARY KEY (`session_id`), ADD KEY `session_token` (`session_token`), ADD KEY `session_secret` (`session_secret`), ADD KEY `session_status` (`session_status`), ADD KEY `session_active` (`session_active`), ADD KEY `session_type` (`session_type`), ADD KEY `session_flag` (`session_flag`), ADD KEY `session_created` (`session_created`), ADD KEY `session_updated` (`session_updated`);
- --
- -- Indexes for table `session_app`
- --
- ALTER TABLE `session_app`
- ADD PRIMARY KEY (`session_app_session`,`session_app_app`), ADD KEY `app_id_idx` (`session_app_app`);
- --
- -- Indexes for table `session_auth`
- --
- ALTER TABLE `session_auth`
- ADD PRIMARY KEY (`session_auth_session`,`session_auth_auth`), ADD KEY `auth_id_idx` (`session_auth_auth`);
- --
- -- Indexes for table `settlement`
- --
- ALTER TABLE `settlement`
- ADD PRIMARY KEY (`settlement_id`), ADD KEY `settlement_active` (`settlement_active`), ADD KEY `settlement_type` (`settlement_type`), ADD KEY `settlement_flag` (`settlement_flag`), ADD KEY `settlement_created` (`settlement_created`), ADD KEY `settlement_updated` (`settlement_updated`);
- --
- -- Indexes for table `shop`
- --
- ALTER TABLE `shop`
- ADD PRIMARY KEY (`shop_id`), ADD KEY `shop_active` (`shop_active`), ADD KEY `shop_type` (`shop_type`), ADD KEY `shop_flag` (`shop_flag`), ADD KEY `shop_created` (`shop_created`), ADD KEY `shop_updated` (`shop_updated`);
- --
- -- Indexes for table `transaction`
- --
- ALTER TABLE `transaction`
- ADD PRIMARY KEY (`transaction_id`), ADD KEY `transaction_active` (`transaction_active`), ADD KEY `transaction_type` (`transaction_type`), ADD KEY `transaction_flag` (`transaction_flag`), ADD KEY `transaction_created` (`transaction_created`), ADD KEY `transaction_updated` (`transaction_updated`);
- --
- -- Indexes for table `transaction_app`
- --
- ALTER TABLE `transaction_app`
- ADD PRIMARY KEY (`transaction_app_transaction`,`transaction_app_app`), ADD KEY `app_id_idx` (`transaction_app_app`);
- --
- -- Indexes for table `transaction_file`
- --
- ALTER TABLE `transaction_file`
- ADD PRIMARY KEY (`transaction_file_transaction`,`transaction_file_file`), ADD KEY `file_id_idx` (`transaction_file_file`);
- --
- -- Indexes for table `transaction_history`
- --
- ALTER TABLE `transaction_history`
- ADD PRIMARY KEY (`transaction_history_transaction`,`transaction_history_history`), ADD KEY `history_id_idx` (`transaction_history_history`);
- --
- -- Indexes for table `transaction_matching`
- --
- ALTER TABLE `transaction_matching`
- ADD PRIMARY KEY (`transaction_matching_transaction`,`transaction_matching_matching`), ADD KEY `matching_id_idx` (`transaction_matching_matching`);
- --
- -- Indexes for table `transaction_profile`
- --
- ALTER TABLE `transaction_profile`
- ADD PRIMARY KEY (`transaction_profile_transaction`,`transaction_profile_profile`), ADD KEY `profile_id_idx` (`transaction_profile_profile`);
- --
- -- Indexes for table `transaction_quote`
- --
- ALTER TABLE `transaction_quote`
- ADD PRIMARY KEY (`transaction_quote_transaction`,`transaction_quote_quote`), ADD KEY `quote_id_idx` (`transaction_quote_quote`);
- --
- -- Indexes for table `transaction_refund`
- --
- ALTER TABLE `transaction_refund`
- ADD PRIMARY KEY (`transaction_refund_transaction`,`transaction_refund_refund`), ADD KEY `refund_id_idx` (`transaction_refund_refund`);
- --
- -- Indexes for table `transaction_settlement`
- --
- ALTER TABLE `transaction_settlement`
- ADD PRIMARY KEY (`transaction_settlement_transaction`,`transaction_settlement_settlement`), ADD KEY `settlement_id_idx` (`transaction_settlement_settlement`);
- --
- -- Indexes for table `transaction_shop`
- --
- ALTER TABLE `transaction_shop`
- ADD PRIMARY KEY (`transaction_shop_transaction`,`transaction_shop_shop`), ADD KEY `shop_id_idx` (`transaction_shop_shop`);
- --
- -- AUTO_INCREMENT for dumped tables
- --
- --
- -- AUTO_INCREMENT for table `app`
- --
- ALTER TABLE `app`
- MODIFY `app_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Database Generated',AUTO_INCREMENT=2;
- --
- -- AUTO_INCREMENT for table `auth`
- --
- ALTER TABLE `auth`
- MODIFY `auth_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Database Generated',AUTO_INCREMENT=10;
- --
- -- AUTO_INCREMENT for table `matching`
- --
- ALTER TABLE `matching`
- MODIFY `matching_id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
- --
- -- AUTO_INCREMENT for table `permission`
- --
- ALTER TABLE `permission`
- MODIFY `permission_id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
- --
- -- AUTO_INCREMENT for table `profile`
- --
- ALTER TABLE `profile`
- MODIFY `profile_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Database Generated',AUTO_INCREMENT=12;
- --
- -- AUTO_INCREMENT for table `quote`
- --
- ALTER TABLE `quote`
- MODIFY `quote_id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
- --
- -- AUTO_INCREMENT for table `refund`
- --
- ALTER TABLE `refund`
- MODIFY `refund_id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
- --
- -- AUTO_INCREMENT for table `role`
- --
- ALTER TABLE `role`
- MODIFY `role_id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
- --
- -- AUTO_INCREMENT for table `session`
- --
- ALTER TABLE `session`
- MODIFY `session_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Database Generated';
- --
- -- AUTO_INCREMENT for table `settlement`
- --
- ALTER TABLE `settlement`
- MODIFY `settlement_id` int(10) unsigned NOT NULL AUTO_INCREMENT;
- --
- -- AUTO_INCREMENT for table `shop`
- --
- ALTER TABLE `shop`
- MODIFY `shop_id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
- --
- -- AUTO_INCREMENT for table `transaction`
- --
- ALTER TABLE `transaction`
- MODIFY `transaction_id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement