-- --------------------------------------------------------
-- Host:                         localhost
-- Server version:               5.7.24 - MySQL Community Server (GPL)
-- Server OS:                    Win64
-- HeidiSQL Version:             10.1.0.5484
-- --------------------------------------------------------

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!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' */;


-- Dumping database structure for mysupport
CREATE DATABASE IF NOT EXISTS `myconnection` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `myconnection`;

-- Dumping structure for table mysupport.migration
CREATE TABLE IF NOT EXISTS `migration` (
  `version` varchar(180) NOT NULL,
  `apply_time` int(11) DEFAULT NULL,
  PRIMARY KEY (`version`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Dumping data for table mysupport.migration: ~2 rows (approximately)
DELETE FROM `migration`;
/*!40000 ALTER TABLE `migration` DISABLE KEYS */;
INSERT INTO `migration` (`version`, `apply_time`) VALUES
	('m000000_000000_base', 1548917531),
	('m130524_201442_init', 1548917544);
/*!40000 ALTER TABLE `migration` ENABLE KEYS */;

-- Dumping structure for table mysupport.sync_account_to_jurnal
CREATE TABLE IF NOT EXISTS `sync_account_to_jurnal` (
  `payment_fpkey` int(11) NOT NULL,
  `payment_type` varchar(90) DEFAULT NULL,
  `nama_akun` varchar(90) DEFAULT NULL,
  PRIMARY KEY (`payment_fpkey`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Dumping data for table mysupport.sync_account_to_jurnal: ~11 rows (approximately)
DELETE FROM `sync_account_to_jurnal`;
/*!40000 ALTER TABLE `sync_account_to_jurnal` DISABLE KEYS */;
INSERT INTO `sync_account_to_jurnal` (`payment_fpkey`, `payment_type`, `nama_akun`) VALUES
	(0, 'Cash', 'Bank Account'),
	(1, 'Debit BCA', 'Giro'),
	(2, 'Master Card', 'Bank Account'),
	(3, 'Visa Card', 'Bank Account'),
	(4, 'Others', 'Cash'),
	(6, 'BNI', 'Account Receivable'),
	(7, 'gojek', 'Giro'),
	(98, 'Officer Check', 'Cash'),
	(99, 'Compliment', 'Bank Account'),
	(100, 'Deposit', 'Cash'),
	(101, 'Piutang', 'Cash');
/*!40000 ALTER TABLE `sync_account_to_jurnal` ENABLE KEYS */;

-- Dumping structure for table mysupport.sync_config
CREATE TABLE IF NOT EXISTS `sync_config` (
  `inventory_account_number` varchar(20) DEFAULT NULL,
  `asset_account_name` varchar(40) NOT NULL DEFAULT '',
  `income_account_name` varchar(40) NOT NULL DEFAULT '',
  `tax_name` varchar(40) DEFAULT NULL,
  `branch_code` varchar(10) NOT NULL,
  `branch_name` varchar(255) DEFAULT NULL,
  `api_key` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`branch_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Dumping data for table mysupport.sync_config: ~1 rows (approximately)
DELETE FROM `sync_config`;
/*!40000 ALTER TABLE `sync_config` DISABLE KEYS */;
INSERT INTO `sync_config` (`inventory_account_number`, `asset_account_name`, `income_account_name`, `tax_name`, `branch_code`, `branch_name`, `api_key`) VALUES
	('1-10200', 'tes', 'gga', 'Service + Tax', '100', 'Surabaya Barat', 'bb0a486c2011239a47a1198739195925');
/*!40000 ALTER TABLE `sync_config` ENABLE KEYS */;

-- Dumping structure for table mysupport.sync_to_jurnal
CREATE TABLE IF NOT EXISTS `sync_to_jurnal` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `last_update` datetime DEFAULT NULL,
  `tipe_tabel` varchar(255) DEFAULT NULL,
  `id_record` int(11) NOT NULL,
  `status_sinkron` varchar(10) DEFAULT NULL,
  `keterangan` text,
  `id_jurnal` double DEFAULT NULL,
  `tipe_proses` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=latin1;

-- Dumping data for table mysupport.sync_to_jurnal: ~37 rows (approximately)
DELETE FROM `sync_to_jurnal`;
/*!40000 ALTER TABLE `sync_to_jurnal` DISABLE KEYS */;
INSERT INTO `sync_to_jurnal` (`id`, `last_update`, `tipe_tabel`, `id_record`, `status_sinkron`, `keterangan`, `id_jurnal`, `tipe_proses`) VALUES
	(1, '2019-02-20 16:49:17', 'rst_menu', 2, 'skip', 'Nama Menu Sudah Ada', 0, 'new'),
	(2, '2019-02-20 16:49:17', 'rst_menu', 3, 'skip', 'Nama Menu Sudah Ada', 0, 'new'),
	(3, '2019-02-20 16:49:17', 'rst_menu', 4, 'skip', 'Nama Menu Sudah Ada', 0, 'new'),
	(4, '2019-02-20 16:49:17', 'rst_menu', 5, 'skip', 'Nama Menu Sudah Ada', 0, 'new'),
	(5, '2019-02-20 16:49:17', 'rst_menu', 6, 'skip', 'Nama Menu Sudah Ada', 0, 'new'),
	(6, '2019-02-20 16:49:17', 'rst_menu', 11, 'skip', 'Nama Menu Sudah Ada', 0, 'new'),
	(7, '2019-02-20 16:49:17', 'rst_menu', 7, 'skip', 'Nama Menu Sudah Ada', 0, 'new'),
	(8, '2019-02-20 16:49:17', 'rst_menu', 8, 'skip', 'Nama Menu Sudah Ada', 0, 'new'),
	(9, '2019-02-20 16:49:17', 'rst_menu', 9, 'skip', 'Nama Menu Sudah Ada', 0, 'new'),
	(10, '2019-02-20 16:49:17', 'rst_menu', 10, 'skip', 'Nama Menu Sudah Ada', 0, 'new'),
	(11, '2019-02-20 16:49:19', 'bp_customer', 1, 'skip', 'Nama Pelanggan Sudah Ada', 0, 'new'),
	(12, '2019-02-20 16:49:19', 'bp_customer', 3, 'skip', 'Nama Pelanggan Sudah Ada', 0, 'new'),
	(13, '2019-02-20 16:49:19', 'bp_customer', 4, 'skip', 'Nama Pelanggan Sudah Ada', 0, 'new'),
	(14, '2019-02-20 16:49:19', 'bp_customer', 5, 'skip', 'Nama Pelanggan Sudah Ada', 0, 'new'),
	(15, '2019-02-20 16:49:19', 'bp_customer', 6, 'skip', 'Nama Pelanggan Sudah Ada', 0, 'new'),
	(16, '2019-02-20 16:52:09', 'rst_fc_trans_header', 2, 'skip', 'Nomor Nota Sudah Ada', 0, 'new'),
	(17, '2019-02-20 16:52:11', 'rst_fc_trans_header', 3, 'skip', 'Nomor Nota Sudah Ada', 0, 'new'),
	(18, '2019-02-20 16:52:12', 'rst_fc_trans_header', 4, 'skip', 'Nomor Nota Sudah Ada', 0, 'new'),
	(19, '2019-02-20 16:52:14', 'rst_fc_trans_header', 5, 'skip', 'Nomor Nota Sudah Ada', 0, 'new'),
	(20, '2019-02-20 16:52:15', 'rst_fc_trans_header', 6, 'skip', 'Nomor Nota Sudah Ada', 0, 'new'),
	(21, '2019-02-20 16:52:16', 'rst_fc_trans_header', 7, 'skip', 'Nomor Nota Sudah Ada', 0, 'new'),
	(22, '2019-02-20 16:52:17', 'rst_fc_trans_header', 8, 'skip', 'Nomor Nota Sudah Ada', 0, 'new'),
	(23, '2019-02-20 16:52:19', 'rst_fc_trans_header', 9, 'skip', 'Nomor Nota Sudah Ada', 0, 'new'),
	(24, '2019-02-20 16:52:22', 'rst_fc_trans_header', 10, 'skip', 'Nomor Nota Sudah Ada', 0, 'new'),
	(25, '2019-02-20 16:52:22', 'rst_fc_trans_header', 11, 'skip', 'Nomor Nota Sudah Ada', 0, 'new'),
	(26, '2019-02-20 16:52:23', 'rst_fc_trans_header', 12, 'skip', 'Nomor Nota Sudah Ada', 0, 'new'),
	(27, '2019-02-20 16:52:24', 'rst_fc_trans_header', 13, 'skip', 'Nomor Nota Sudah Ada', 0, 'new'),
	(28, '2019-02-20 16:52:25', 'rst_fc_trans_header', 14, 'skip', 'Nomor Nota Sudah Ada', 0, 'new'),
	(29, '2019-02-20 16:52:27', 'rst_fc_payment', 1, 'proses', '{"records":["(Value received cannot be greater than remaining balance.)"]}', 0, 'new'),
	(30, '2019-02-20 16:52:32', 'rst_fc_payment', 2, 'success', '', 43576674, 'new'),
	(31, '2019-02-20 16:52:36', 'rst_fc_payment', 3, 'proses', '{"records":["(Value received cannot be greater than remaining balance.)"]}', 0, 'new'),
	(32, '2019-02-20 16:52:37', 'rst_fc_payment', 4, 'proses', '{"records":["(Value received cannot be greater than remaining balance.)"]}', 0, 'new'),
	(33, '2019-02-20 16:52:41', 'rst_fc_payment', 5, 'proses', '{"records":["(Value received cannot be greater than remaining balance.)"]}', 0, 'new'),
	(34, '2019-02-20 16:52:44', 'rst_fc_payment', 6, 'proses', '{"records":["(Value received cannot be greater than remaining balance.)"]}', 0, 'new'),
	(35, '2019-02-20 16:52:47', 'rst_fc_payment', 7, 'proses', '{"records":["(Value received cannot be greater than remaining balance.)"]}', 0, 'new'),
	(36, '2019-02-20 16:52:47', 'rst_fc_payment', 8, 'proses', '{"records":["(Value received cannot be greater than remaining balance.)"]}', 0, 'new'),
	(37, '2019-02-20 16:52:50', 'sales_return', 12, 'proses', '["Transaction return lines attributes transaction line id\\/product id or product name[0] not available","Transaction return lines attributes transaction line id\\/product id or product name[1] not available","Transaction return lines attributes transaction line id\\/product id or product name[2] not available","Transaction return lines attributes transaction line id\\/product id or product name[3] not available","Transaction return lines attributes transaction line id\\/product id or product name[4] not available","Transaction return lines attributes transaction line id\\/product id or product name[5] not available","Transaction return lines attributes transaction line id\\/product id or product name[6] not available","Transaction return lines attributes transaction line id\\/product id or product name[7] not available"]', 0, 'new');
/*!40000 ALTER TABLE `sync_to_jurnal` ENABLE KEYS */;

-- Dumping structure for table mysupport.user
CREATE TABLE IF NOT EXISTS `user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
  `password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` smallint(6) NOT NULL DEFAULT '10',
  `created_at` int(11) NOT NULL,
  `updated_at` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`),
  UNIQUE KEY `email` (`email`),
  UNIQUE KEY `password_reset_token` (`password_reset_token`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- Dumping data for table mysupport.user: ~2 rows (approximately)
DELETE FROM `user`;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` (`id`, `username`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`) VALUES
	(1, 'superadmin', 'r8XrNVPIohnjQoAgMbXlafbsX_6BG3L5', '$2y$13$OmoHWiQ62R78r/MsLM3caONKnG9xodJ05PfRGm4Lzgls/fDmb.gNC', NULL, 'buncetek@gmail.com', 10, 1548917768, 1551843902),
	(2, 'admin', 'ICFo8vRACSdiDpyrPN_-oxMlyvhIXIcv', '$2y$13$rwk5a2LUS35rbVKtQKf6nexM1q6Nc.vrx6aIGrIhAX/G9SwHYKCF.', NULL, 'admin@interactive.co.id', 10, 1550741120, 1550741120);
/*!40000 ALTER TABLE `user` ENABLE KEYS */;

/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
