KUJUNTI.ID MINISH3LL
Path : /var/www/html/mini-moneyexchange/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/mini-moneyexchange/defualt_db.sql


-- MySQL dump 10.13  Distrib 8.0.33, for Linux (x86_64)
--
-- Host: localhost    Database: moneyexchange_richrich
-- ------------------------------------------------------
-- Server version	8.0.33-0ubuntu0.20.04.2

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!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 */;

--
-- Table structure for table `bank_account_transaction_types`
--

DROP TABLE IF EXISTS `bank_account_transaction_types`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `bank_account_transaction_types` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `return_credit` tinyint(1) NOT NULL DEFAULT '1',
  `order` int DEFAULT NULL,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `bank_account_transaction_types_name_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `bank_account_transaction_types`
--

LOCK TABLES `bank_account_transaction_types` WRITE;
/*!40000 ALTER TABLE `bank_account_transaction_types` DISABLE KEYS */;
INSERT INTO `bank_account_transaction_types` VALUES (1,'Credit',1,1,1,NULL,NULL,'2022-08-22 18:06:36','2023-06-27 07:48:27'),(2,'Debit',1,1,2,NULL,NULL,'2022-08-22 18:07:06','2023-06-27 07:48:33'),(3,'Expense',1,0,3,NULL,NULL,'2022-08-22 18:07:22','2023-06-27 07:48:41'),(4,'Others',1,0,4,NULL,NULL,'2022-08-22 18:07:36','2023-06-27 07:48:50');
/*!40000 ALTER TABLE `bank_account_transaction_types` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `bank_account_transactions`
--

DROP TABLE IF EXISTS `bank_account_transactions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `bank_account_transactions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bank_account_id` bigint unsigned DEFAULT NULL,
  `transaction_type` enum('in','out') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` double NOT NULL,
  `credit_before_transaction` double NOT NULL,
  `credit_after_transaction` double NOT NULL,
  `user_id` bigint unsigned DEFAULT NULL,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `transaction_id` bigint unsigned DEFAULT NULL,
  `transfer_id` bigint unsigned DEFAULT NULL,
  `bank_account_transaction_type_id` bigint unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=636 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `bank_account_transactions`
--

LOCK TABLES `bank_account_transactions` WRITE;
/*!40000 ALTER TABLE `bank_account_transactions` DISABLE KEYS */;
/*!40000 ALTER TABLE `bank_account_transactions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `bank_accounts`
--

DROP TABLE IF EXISTS `bank_accounts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `bank_accounts` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bank_id` bigint unsigned DEFAULT NULL,
  `currency_id` bigint unsigned DEFAULT NULL,
  `bank_username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `bank_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `credit` double NOT NULL DEFAULT '0',
  `user_id` bigint unsigned DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `is_bank` tinyint(1) NOT NULL DEFAULT '1',
  `responsible_by_user_id` bigint unsigned DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `bank_accounts`
--

LOCK TABLES `bank_accounts` WRITE;
/*!40000 ALTER TABLE `bank_accounts` DISABLE KEYS */;
INSERT INTO `bank_accounts` VALUES (1,1,1,'Vault-ដុល្លា','0',0,3,NULL,'2022-08-16 07:32:35','2023-06-29 08:36:19',0,3,1),(2,1,2,'Vault-បាត','0',0,3,NULL,'2022-08-16 07:32:53','2023-06-29 08:36:19',0,3,1),(3,1,3,'Vault-រៀល','0',0,3,NULL,'2022-08-16 07:33:07','2023-06-27 08:47:26',0,3,1),(25,1,1,'Maraka-ដុល្លា','0',0,3,NULL,'2022-08-16 08:06:43','2023-06-25 02:47:45',0,11,1),(26,1,2,'Maraka-បាត','0',0,3,NULL,'2022-08-16 08:06:55','2023-06-25 02:48:07',0,11,1),(27,1,3,'Maraka-រៀល','0',0,3,NULL,'2022-08-16 08:07:08','2023-06-25 02:48:50',0,11,1),(28,1,1,'staff2-Dollas','0',0,3,NULL,'2023-07-03 09:08:23','2023-07-03 09:08:23',0,14,1),(29,1,2,'staff2-Bahts','0',0,3,NULL,'2023-07-03 09:08:23','2023-07-03 09:08:23',0,14,1),(30,1,3,'staff2-Riels','0',0,3,NULL,'2023-07-03 09:08:23','2023-07-03 09:08:23',0,14,1),(31,1,1,'staff3-Dollas','0',0,3,NULL,'2023-07-03 09:08:35','2023-07-03 09:08:35',0,15,1),(32,1,2,'staff3-Bahts','0',0,3,NULL,'2023-07-03 09:08:35','2023-07-03 09:08:35',0,15,1),(33,1,3,'staff3-Riels','0',0,3,NULL,'2023-07-03 09:08:35','2023-07-03 09:08:35',0,15,1);
/*!40000 ALTER TABLE `bank_accounts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `banks`
--

DROP TABLE IF EXISTS `banks`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `banks` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `logo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `user_id` bigint unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `show_as_bank` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `banks_name_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `banks`
--

LOCK TABLES `banks` WRITE;
/*!40000 ALTER TABLE `banks` DISABLE KEYS */;
INSERT INTO `banks` VALUES (1,'Cash',NULL,NULL,3,'2022-08-16 07:31:41','2023-06-27 08:43:00',1),(2,'ABA',NULL,NULL,3,'2022-08-16 07:31:47','2022-08-16 07:31:47',1),(3,'WING',NULL,NULL,3,'2022-08-16 07:31:51','2022-08-16 07:31:51',1),(4,'ACELEDA',NULL,NULL,3,'2022-08-16 07:31:55','2022-08-16 07:31:55',1);
/*!40000 ALTER TABLE `banks` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `currencies`
--

DROP TABLE IF EXISTS `currencies`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `currencies` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint unsigned DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `is_main_currency` tinyint(1) NOT NULL DEFAULT '0',
  `decimal_precision` smallint NOT NULL DEFAULT '2',
  `flage` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `sample_money` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `currency_code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `child_currency_id` bigint unsigned DEFAULT NULL,
  `min_exchange_amount` double NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `currencies_name_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `currencies`
--

LOCK TABLES `currencies` WRITE;
/*!40000 ALTER TABLE `currencies` DISABLE KEYS */;
INSERT INTO `currencies` VALUES (1,'Dollas',1,NULL,'2022-08-16 07:06:55','2023-06-27 08:44:23',1,2,'images/1660640714.usd-flage.png','images/1660633615.usd.jpg','USD',0,0),(2,'Bahts',1,NULL,'2022-08-16 07:07:43','2023-06-27 08:44:10',0,0,'images/1660633663.thai.png','images/1660633663.bath.jpg','THB',0,0),(3,'Riels',1,NULL,'2022-08-16 07:08:10','2023-06-27 08:43:57',0,0,'images/1660633690.cambodia.png','images/1660633690.riel.jpg','KHR',0,0);
/*!40000 ALTER TABLE `currencies` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `failed_jobs`
--

DROP TABLE IF EXISTS `failed_jobs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `failed_jobs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `failed_jobs`
--

LOCK TABLES `failed_jobs` WRITE;
/*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */;
/*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `migrations`
--

DROP TABLE IF EXISTS `migrations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `migrations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `migrations`
--

LOCK TABLES `migrations` WRITE;
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
INSERT INTO `migrations` VALUES (1,'2014_10_11_000001_create_roles_table',1),(2,'2014_10_12_000000_create_users_table',1),(3,'2014_10_12_100000_create_password_resets_table',1),(4,'2019_08_19_000000_create_failed_jobs_table',1),(5,'2019_12_14_000001_create_personal_access_tokens_table',1),(6,'2022_06_20_151035_create_currencies_table',1),(7,'2022_06_20_154842_create_money_exchange_lists_table',1),(8,'2022_06_20_154843_create_money_exchange_rates_table',1),(9,'2022_06_20_154922_create_banks_table',1),(10,'2022_06_20_154933_create_bank_accounts_table',1),(11,'2022_06_20_154934_create_transactions_table',1),(12,'2022_06_20_154952_create_bank_account_transactions_table',1),(13,'2022_06_21_124503_create_settings_table',1),(14,'2022_07_02_141950_add_last_update_rate_date_to_money_exchange_lists_table',1),(15,'2022_07_02_183812_add_received_amount_to_transactions_table',1),(16,'2022_07_08_151818_add_is_bank_to_bank_accounts_table',1),(17,'2022_07_11_140234_add_transaction_id_to_bank_account_transactions_table',1),(18,'2022_07_17_170354_add_is_active_to_bank_accountstable',1),(19,'2022_07_26_155231_add_is_main_currency_to_currencies_table',1),(20,'2022_07_28_132549_add_decimal_precision_to_currencies_table',1),(21,'2022_08_08_115507_create_transfers_table',1),(22,'2022_08_08_174756_add_flage_to_currencies_table',1),(23,'2022_08_11_175214_add_names_to_transfers_table',1),(24,'2022_08_17_122044_add_order_to_money_exchange_lists_table',2),(25,'2022_08_22_172523_add_show_as_bank_to_banks_table',3),(26,'2022_08_22_222643_add_transfer_id_to_bank_account_transactions_table',3),(27,'2022_08_22_225926_create_bank_account_transaction_types_table',3),(28,'2022_09_10_173213_add_already_print_to_transactions_table',4),(29,'2022_10_11_151416_add_currency_code_to_currencies_table',4),(30,'2023_05_24_173403_add_parent_transaction_id_to_tables_table',4),(31,'2023_06_30_153831_add_remain_credit_to_transactions_table',5);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `money_exchange_lists`
--

DROP TABLE IF EXISTS `money_exchange_lists`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `money_exchange_lists` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `exchange_from_currency_id` bigint unsigned DEFAULT NULL,
  `exchange_to_currency_id` bigint unsigned DEFAULT NULL,
  `calculation` enum('x','/') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'x',
  `current_rate` double(8,2) DEFAULT NULL,
  `user_id` bigint unsigned DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `last_updated_rate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `order` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `exchange_from_currency_id_exchange_to_currency_id` (`exchange_from_currency_id`,`exchange_to_currency_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `money_exchange_lists`
--

LOCK TABLES `money_exchange_lists` WRITE;
/*!40000 ALTER TABLE `money_exchange_lists` DISABLE KEYS */;
INSERT INTO `money_exchange_lists` VALUES (1,1,3,'x',4105.00,1,1,NULL,'2022-08-16 07:11:34','2022-08-30 04:05:20','2022-08-30 04:05:20',6),(2,1,2,'x',36.50,1,1,NULL,'2022-08-16 07:11:49','2023-06-29 08:22:59','2023-06-29 08:22:59',1),(3,2,3,'x',112.70,1,1,NULL,'2022-08-16 07:12:06','2022-09-03 02:03:34','2022-09-03 02:03:34',4),(4,2,1,'/',36.65,1,1,NULL,'2022-08-16 07:12:30','2022-09-02 07:23:53','2022-09-02 07:23:53',2),(5,3,1,'/',4122.00,1,1,NULL,'2022-08-16 07:15:17','2022-09-03 02:03:42','2022-09-03 02:03:42',5),(6,3,2,'/',114.00,1,1,NULL,'2022-08-16 07:15:32','2022-09-03 02:03:21','2022-09-03 02:03:21',3);
/*!40000 ALTER TABLE `money_exchange_lists` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `money_exchange_rates`
--

DROP TABLE IF EXISTS `money_exchange_rates`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `money_exchange_rates` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `money_exchange_list_id` bigint unsigned DEFAULT NULL,
  `exchange_rate` double(8,2) DEFAULT NULL,
  `user_id` bigint unsigned DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=178 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `money_exchange_rates`
--

LOCK TABLES `money_exchange_rates` WRITE;
/*!40000 ALTER TABLE `money_exchange_rates` DISABLE KEYS */;
/*!40000 ALTER TABLE `money_exchange_rates` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `password_resets`
--

DROP TABLE IF EXISTS `password_resets`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `password_resets` (
  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  KEY `password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `password_resets`
--

LOCK TABLES `password_resets` WRITE;
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `personal_access_tokens`
--

DROP TABLE IF EXISTS `personal_access_tokens`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `personal_access_tokens` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `tokenable_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `tokenable_id` bigint unsigned NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `abilities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `personal_access_tokens`
--

LOCK TABLES `personal_access_tokens` WRITE;
/*!40000 ALTER TABLE `personal_access_tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `personal_access_tokens` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `roles`
--

DROP TABLE IF EXISTS `roles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `roles` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `roles_name_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `roles`
--

LOCK TABLES `roles` WRITE;
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
INSERT INTO `roles` VALUES (1,'staff',NULL,'2022-08-16 07:03:36','2022-08-16 07:03:36'),(2,'admin',NULL,'2022-08-16 07:03:36','2022-08-16 07:03:36');
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `settings`
--

DROP TABLE IF EXISTS `settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `settings` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `settings_name_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `settings`
--

LOCK TABLES `settings` WRITE;
/*!40000 ALTER TABLE `settings` DISABLE KEYS */;
INSERT INTO `settings` VALUES (1,'title','Rich Rich Shop',NULL,'2022-08-16 07:03:36','2023-06-24 14:40:44'),(2,'logo','logo.png',NULL,'2022-08-16 07:03:36','2022-08-16 07:03:36'),(3,'shop_name','Rich Rich Shop',NULL,'2022-08-16 07:03:36','2023-06-24 14:40:33'),(4,'phone','097 xxx xxx',NULL,'2022-08-16 07:03:36','2023-07-03 08:35:49'),(5,'address','Poipet, Cambodia',NULL,'2022-08-16 07:03:36','2023-06-27 08:48:34');
/*!40000 ALTER TABLE `settings` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `transactions`
--

DROP TABLE IF EXISTS `transactions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `transactions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `customer_level` smallint NOT NULL DEFAULT '1',
  `transaction_type` enum('cash_exchange','bank_deposit','bank_withdraw','staff_deposit','staff_withdraw') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `money_exchange_list_id` bigint unsigned DEFAULT NULL,
  `bank_account_id` bigint unsigned DEFAULT NULL,
  `fee` double NOT NULL DEFAULT '0',
  `amount` double DEFAULT NULL,
  `exchange_rate` double(8,2) DEFAULT NULL,
  `remain` double NOT NULL DEFAULT '0',
  `note` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_id` bigint unsigned DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `received_amount` double NOT NULL DEFAULT '0',
  `amount_after_exchange` double NOT NULL DEFAULT '0',
  `already_print` tinyint(1) NOT NULL DEFAULT '1',
  `parent_transaction_id` bigint unsigned DEFAULT NULL,
  `credit_khr` double DEFAULT NULL,
  `credit_usd` double DEFAULT NULL,
  `credit_thb` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=237 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `transactions`
--

LOCK TABLES `transactions` WRITE;
/*!40000 ALTER TABLE `transactions` DISABLE KEYS */;
/*!40000 ALTER TABLE `transactions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `transfers`
--

DROP TABLE IF EXISTS `transfers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `transfers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bank_id` bigint unsigned DEFAULT NULL,
  `from_bank_account_id` bigint unsigned DEFAULT NULL,
  `to_bank_account_id` bigint unsigned DEFAULT NULL,
  `sender_phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `receiver_phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `currency_id` bigint unsigned DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `fee` double NOT NULL DEFAULT '0',
  `partner_fee` double NOT NULL DEFAULT '0',
  `user_id` bigint unsigned DEFAULT NULL,
  `transaction_type` enum('transferIn','transferOut','reTransferIn','reTransferOut') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `sender_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `receiver_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `transfers`
--

LOCK TABLES `transfers` WRITE;
/*!40000 ALTER TABLE `transfers` DISABLE KEYS */;
/*!40000 ALTER TABLE `transfers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `allow_to_change_exchange_rate` tinyint(1) NOT NULL DEFAULT '0',
  `role_id` bigint unsigned DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `users_phone_unique` (`phone`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users`
--

LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (3,'Vault','vault',NULL,'$2y$10$LWPyCQGdnLM.QTSxFM6h0.Uok4R6JS/nCR4F2dnA1eGwiBs0KyXBK',1,0,2,NULL,'nNrSCof6wUpk8JaRwF0MyMXnkIGKenITSpnHWEgLj4RTzRUp4CTIhFwvywZS','2022-08-16 07:21:36','2022-08-17 04:12:09'),(11,'staff 1','staff1',NULL,'$2y$10$7k6xfBT.CYOI/4Q6aDQGluXi6LE7/VEsiqxspYwFDg9fERdDyVqJW',1,0,1,NULL,'ZYqnleoMXIOiw4jgLsaxA40Cdlp0ZrxUTANnnspIZHby4PrNrQ6ZWaDgLU5E','2022-08-16 07:56:12','2023-07-03 09:08:06'),(13,'IT','070721355',NULL,'$2y$10$rqBos9Ch/zZ5hDM6O/JNLuqt0ePcRWOu06ZHiylGX8ZHfoSbLnu2S',1,1,2,NULL,'IMzYkP6nsOCGxGTDc00Nj7RewaEfgYKTXcFu9ojDJWXd2EvvylWf3HH8vjOw','2023-06-27 08:50:52','2023-07-03 08:36:45'),(14,'staff2','staff2',NULL,'$2y$10$Se1w5pGQFjsTwMsU9yK4Yu4qhz04dAECtY09K6R0X2p71LDs87GES',1,0,1,NULL,NULL,'2023-07-03 09:08:23','2023-07-03 09:08:23'),(15,'staff3','staff3',NULL,'$2y$10$KSQ7J2rJ0YEQ/hOLFk3ZfeXSSmQOaTJadcSa46UvNhkOIJdaayndO',1,0,1,NULL,NULL,'2023-07-03 09:08:35','2023-07-03 09:08:35');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2023-07-03 19:15:11

© KUJUNTI.ID