update
All checks were successful
All checks were successful
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -21,3 +21,4 @@ yarn-error.log
|
|||||||
.qodo
|
.qodo
|
||||||
.camel-jbang
|
.camel-jbang
|
||||||
dump/
|
dump/
|
||||||
|
db/
|
||||||
988
converted.sql
Normal file
988
converted.sql
Normal file
File diff suppressed because one or more lines are too long
1096
db/kulakpg.sql
Normal file
1096
db/kulakpg.sql
Normal file
File diff suppressed because it is too large
Load Diff
@@ -11,7 +11,7 @@
|
|||||||
Target Server Version : 110806 (11.8.6-MariaDB-log)
|
Target Server Version : 110806 (11.8.6-MariaDB-log)
|
||||||
File Encoding : 65001
|
File Encoding : 65001
|
||||||
|
|
||||||
Date: 13/04/2026 08:59:04
|
Date: 15/04/2026 20:41:27
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SET NAMES utf8mb4;
|
SET NAMES utf8mb4;
|
||||||
@@ -1393,7 +1393,7 @@ INSERT INTO `personal_access_tokens` VALUES (121, 'App\\Models\\User', 12, 'crea
|
|||||||
INSERT INTO `personal_access_tokens` VALUES (123, 'App\\Models\\User', 32, 'createToken', '8951e602ff7220361c242f1a2ad092f6363289c9120ad8f617ff6b31c661320e', '[\"*\"]', NULL, '2026-03-18 13:38:22', '2026-03-18 13:38:22', '2026-03-18 13:38:22');
|
INSERT INTO `personal_access_tokens` VALUES (123, 'App\\Models\\User', 32, 'createToken', '8951e602ff7220361c242f1a2ad092f6363289c9120ad8f617ff6b31c661320e', '[\"*\"]', NULL, '2026-03-18 13:38:22', '2026-03-18 13:38:22', '2026-03-18 13:38:22');
|
||||||
INSERT INTO `personal_access_tokens` VALUES (126, 'App\\Models\\User', 12, 'createToken', 'f3ad6cf71912248759e848c68da1bd11091183b9180fa1a6a90a455bfd9a17cb', '[\"*\"]', '2026-03-28 10:08:07', NULL, '2026-03-28 09:40:44', '2026-03-28 10:08:07');
|
INSERT INTO `personal_access_tokens` VALUES (126, 'App\\Models\\User', 12, 'createToken', 'f3ad6cf71912248759e848c68da1bd11091183b9180fa1a6a90a455bfd9a17cb', '[\"*\"]', '2026-03-28 10:08:07', NULL, '2026-03-28 09:40:44', '2026-03-28 10:08:07');
|
||||||
INSERT INTO `personal_access_tokens` VALUES (127, 'App\\Models\\User', 33, 'createToken', '150574dc559fe0a9101334fdd1a0ac32fb7d2d86476cb37a203f94d10824fb6e', '[\"*\"]', '2026-04-06 15:56:57', NULL, '2026-03-29 20:34:13', '2026-04-06 15:56:57');
|
INSERT INTO `personal_access_tokens` VALUES (127, 'App\\Models\\User', 33, 'createToken', '150574dc559fe0a9101334fdd1a0ac32fb7d2d86476cb37a203f94d10824fb6e', '[\"*\"]', '2026-04-06 15:56:57', NULL, '2026-03-29 20:34:13', '2026-04-06 15:56:57');
|
||||||
INSERT INTO `personal_access_tokens` VALUES (128, 'App\\Models\\User', 7, 'createToken', '4446a4f5d3b405069bf59ab269c1b001fc43261165122c1bb4b1d88c5810073b', '[\"*\"]', '2026-04-05 19:52:10', NULL, '2026-03-30 11:52:21', '2026-04-05 19:52:10');
|
INSERT INTO `personal_access_tokens` VALUES (128, 'App\\Models\\User', 7, 'createToken', '4446a4f5d3b405069bf59ab269c1b001fc43261165122c1bb4b1d88c5810073b', '[\"*\"]', '2026-04-14 12:38:27', NULL, '2026-03-30 11:52:21', '2026-04-14 12:38:27');
|
||||||
INSERT INTO `personal_access_tokens` VALUES (129, 'App\\Models\\User', 7, 'createToken', '1305eec80c330a8c3e44e5a7efcbc641a5c93b6af45431c9c7551feb75d42f3e', '[\"*\"]', '2026-04-10 14:23:56', NULL, '2026-04-04 21:54:11', '2026-04-10 14:23:56');
|
INSERT INTO `personal_access_tokens` VALUES (129, 'App\\Models\\User', 7, 'createToken', '1305eec80c330a8c3e44e5a7efcbc641a5c93b6af45431c9c7551feb75d42f3e', '[\"*\"]', '2026-04-10 14:23:56', NULL, '2026-04-04 21:54:11', '2026-04-10 14:23:56');
|
||||||
INSERT INTO `personal_access_tokens` VALUES (130, 'App\\Models\\User', 12, 'createToken', 'd22cb5fbc2fd1598a9452306468ad8484d694b4c21ee18363c19dfbd77b5cf17', '[\"*\"]', '2026-04-05 16:56:19', NULL, '2026-04-05 16:51:23', '2026-04-05 16:56:19');
|
INSERT INTO `personal_access_tokens` VALUES (130, 'App\\Models\\User', 12, 'createToken', 'd22cb5fbc2fd1598a9452306468ad8484d694b4c21ee18363c19dfbd77b5cf17', '[\"*\"]', '2026-04-05 16:56:19', NULL, '2026-04-05 16:51:23', '2026-04-05 16:56:19');
|
||||||
INSERT INTO `personal_access_tokens` VALUES (135, 'App\\Models\\User', 12, 'createToken', '77dafee519ef7e70f16dba869ded190db1cb7027a531f9dbcb19a676e6448de4', '[\"*\"]', '2026-04-12 20:48:08', NULL, '2026-04-12 20:47:59', '2026-04-12 20:48:08');
|
INSERT INTO `personal_access_tokens` VALUES (135, 'App\\Models\\User', 12, 'createToken', '77dafee519ef7e70f16dba869ded190db1cb7027a531f9dbcb19a676e6448de4', '[\"*\"]', '2026-04-12 20:48:08', NULL, '2026-04-12 20:47:59', '2026-04-12 20:48:08');
|
||||||
@@ -2270,573 +2270,4 @@ INSERT INTO `sales` VALUES (76, 8, NULL, NULL, 9, 'sale', 0.00, 0, 0, 'flat', 0.
|
|||||||
INSERT INTO `sales` VALUES (77, 8, NULL, NULL, 9, 'sale', 0.00, 0, 0, 'flat', 0.00, 1, 1000.00, 0.00, 11000.00, 4000, 11000.00, 11000.00, 0.00, 'none', 8500.00, NULL, NULL, 'S02', '2026-03-02 22:48:14', NULL, '{\"customer_phone\":null,\"note\":null}', '2026-03-02 22:48:14', '2026-03-02 22:48:14', NULL);
|
INSERT INTO `sales` VALUES (77, 8, NULL, NULL, 9, 'sale', 0.00, 0, 0, 'flat', 0.00, 1, 1000.00, 0.00, 11000.00, 4000, 11000.00, 11000.00, 0.00, 'none', 8500.00, NULL, NULL, 'S02', '2026-03-02 22:48:14', NULL, '{\"customer_phone\":null,\"note\":null}', '2026-03-02 22:48:14', '2026-03-02 22:48:14', NULL);
|
||||||
INSERT INTO `sales` VALUES (78, 8, NULL, NULL, 9, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 500.00, 0.00, 5500.00, 94500, 5500.00, 5500.00, 0.00, 'none', 4250.00, NULL, NULL, 'S03', '2026-03-04 09:14:03', NULL, '{\"note\":null}', '2026-03-04 09:15:05', '2026-03-04 09:15:05', NULL);
|
INSERT INTO `sales` VALUES (78, 8, NULL, NULL, 9, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 500.00, 0.00, 5500.00, 94500, 5500.00, 5500.00, 0.00, 'none', 4250.00, NULL, NULL, 'S03', '2026-03-04 09:14:03', NULL, '{\"note\":null}', '2026-03-04 09:15:05', '2026-03-04 09:15:05', NULL);
|
||||||
INSERT INTO `sales` VALUES (79, 8, NULL, NULL, 9, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 500.00, 0.00, 5500.00, 4500, 5500.00, 5500.00, 0.00, 'none', 4250.00, NULL, NULL, 'S04', '2026-03-05 00:07:02', NULL, '{\"note\":null}', '2026-03-05 00:07:18', '2026-03-05 00:07:18', NULL);
|
INSERT INTO `sales` VALUES (79, 8, NULL, NULL, 9, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 500.00, 0.00, 5500.00, 4500, 5500.00, 5500.00, 0.00, 'none', 4250.00, NULL, NULL, 'S04', '2026-03-05 00:07:02', NULL, '{\"note\":null}', '2026-03-05 00:07:18', '2026-03-05 00:07:18', NULL);
|
||||||
INSERT INTO `sales` VALUES (80, 10, 2, 19, 7, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 1787.50, 0.00, 28537.50, 21462.5, 28537.50, 28537.50, 0.00, 'none', 9750.00, NULL, NULL, 'S01', '2026-03-05 16:20:06', NULL, '{\"note\":null}', '2026-03-05 16:20:23', '2026-03-05 16:20:23', NULL);
|
INSERT INTO `sales` VALUES (80, 10, 2, 19, 7, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 1787.50, 0.00, 28537.50, 21462.5, 28537.50, 28537.50, 0.00, 'none', 9750.00, NULL, NULL, 'S01', '2026-03-05 16:20:06', NULL, '{\"note\":null}', '2026-03-05 16:20
|
||||||
INSERT INTO `sales` VALUES (81, 10, 2, NULL, 7, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 2612.50, 0.00, 51862.50, 137.5, 51862.50, 51862.50, 0.00, 'none', 17250.00, NULL, NULL, 'S02', '2026-03-05 16:24:49', NULL, '{\"note\":null}', '2026-03-05 16:25:13', '2026-03-05 16:25:13', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (82, 10, 2, NULL, 7, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 1787.50, 0.00, 28538.00, 0, 28538.00, 28537.50, 0.50, 'round_up', 9750.00, NULL, NULL, 'S03', '2026-03-06 09:41:42', NULL, '{\"note\":null}', '2026-03-06 09:42:18', '2026-03-06 09:42:18', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (83, 10, 2, NULL, 7, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 2450.00, 0.00, 34950.00, 5050, 34950.00, 34950.00, 0.00, 'none', 12500.00, NULL, NULL, 'S04', '2026-03-09 10:51:52', NULL, '{\"note\":null}', '2026-03-09 10:52:55', '2026-03-09 10:52:55', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (85, 14, NULL, 21, 18, NULL, 0.00, 0, 0, 'flat', 54998.00, 1, 0.00, 0.00, 2.00, 0, 55000.00, 55000.00, 0.00, 'none', 5000.00, NULL, NULL, 'S01', '2026-03-11 18:52:03', NULL, '{\"note\":null}', '2026-03-11 18:53:02', '2026-03-11 18:53:02', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (86, 8, NULL, NULL, 9, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 8756.88, 0.00, 88819.38, 0.024999999994179234, 88819.38, 88819.38, 0.00, 'none', 29262.50, NULL, NULL, 'S05', '2026-03-13 11:28:59', NULL, '{\"note\":null}', '2026-03-13 11:30:34', '2026-03-13 11:30:34', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (87, 8, NULL, NULL, 9, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 8756.88, 0.00, 88820.00, 1180, 88820.00, 88819.38, 0.63, 'round_up', 29262.50, NULL, NULL, 'S06', '2026-03-13 11:30:47', NULL, '{\"note\":null}', '2026-03-13 11:32:11', '2026-03-13 11:32:11', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (88, 10, 2, NULL, 7, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 3425.00, 0.00, 46425.00, 3575, 46425.00, 46425.00, 0.00, 'none', 16000.00, NULL, NULL, 'S05', '2026-03-13 11:33:08', NULL, '{\"note\":null}', '2026-03-13 11:33:24', '2026-03-13 11:33:24', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (90, 10, 2, NULL, 7, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 1700.00, 0.00, 26700.00, 0, 26700.00, 26700.00, 0.00, 'none', 10000.00, NULL, NULL, 'S06', '2026-03-13 14:55:16', NULL, '{\"note\":null}', '2026-03-13 14:55:38', '2026-03-13 14:55:38', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (91, 10, 2, NULL, 7, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 2675.00, 0.00, 38175.00, 0, 38175.00, 38175.00, 0.00, 'none', 13500.00, NULL, NULL, 'S07', '2026-03-14 22:25:44', NULL, '{\"note\":null}', '2026-03-14 22:26:03', '2026-03-14 22:26:03', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (92, 8, NULL, NULL, 9, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 8756.88, 0.00, 88820.00, 1180, 88820.00, 88819.38, 0.63, 'round_up', 29262.50, NULL, NULL, 'S07', '2026-03-16 08:29:18', NULL, '{\"note\":null}', '2026-03-16 08:29:47', '2026-03-16 08:29:47', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (93, 10, 2, NULL, 7, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 1800.00, 0.00, 19800.00, 200, 19800.00, 19800.00, 0.00, 'none', 6000.00, NULL, NULL, 'S08', '2026-03-16 09:12:46', NULL, '{\"note\":null}', '2026-03-16 09:12:56', '2026-03-16 09:12:56', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (95, 23, NULL, NULL, 27, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 0.00, 0.00, 3030000.00, 0, 3030000.00, 3030000.00, 0.00, 'none', 3000000.00, NULL, NULL, 'S01', '2026-03-16 18:26:45', NULL, '{\"note\":null}', '2026-03-16 18:28:24', '2026-03-16 18:28:24', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (96, 8, NULL, NULL, 9, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 8756.88, 0.00, 88820.00, 0, 88820.00, 88819.38, 0.63, 'round_up', 29262.50, NULL, NULL, 'S08', '2026-03-17 08:11:30', NULL, '{\"note\":null}', '2026-03-17 08:11:52', '2026-03-17 08:11:52', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (97, 10, 2, NULL, 7, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 1700.00, 0.00, 26700.00, 0, 26700.00, 26700.00, 0.00, 'none', 10000.00, NULL, NULL, 'S09', '2026-03-17 08:13:15', NULL, '{\"note\":null}', '2026-03-17 08:13:29', '2026-03-17 08:13:29', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (98, 8, NULL, NULL, 9, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 8256.88, 0.00, 83320.00, 0, 83320.00, 83319.38, 0.63, 'round_up', 25012.50, NULL, NULL, 'S09', '2026-03-17 15:34:12', NULL, '{\"note\":null}', '2026-03-17 15:44:24', '2026-03-17 15:44:24', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (99, 8, NULL, NULL, 9, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 8756.88, 0.00, 88820.00, 1180, 88820.00, 88819.38, 0.63, 'round_up', 29262.50, NULL, NULL, 'S10', '2026-03-18 08:36:55', NULL, '{\"note\":null}', '2026-03-18 08:37:31', '2026-03-18 08:37:31', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (100, 10, 2, NULL, 7, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 4250.00, 0.00, 54750.00, 0, 54750.00, 54750.00, 0.00, 'none', 18500.00, NULL, NULL, 'S10', '2026-03-19 16:09:06', NULL, '{\"note\":null}', '2026-03-19 16:09:21', '2026-03-19 16:09:21', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (101, 8, NULL, NULL, 9, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 8765.12, 0.00, 88903.00, 0, 88903.00, 88902.62, 0.38, 'round_up', 29287.50, NULL, NULL, 'S11', '2026-03-19 22:53:34', NULL, '{\"note\":null}', '2026-03-19 22:53:53', '2026-03-19 22:53:53', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (102, 10, 2, NULL, 7, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 4250.00, 0.00, 54750.00, 0, 54750.00, 54750.00, 0.00, 'none', 18500.00, NULL, NULL, 'S11', '2026-03-19 22:54:32', NULL, '{\"note\":null}', '2026-03-19 22:54:44', '2026-03-19 22:54:44', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (103, 23, NULL, 27, 27, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 0.00, 0.00, 0.00, 1, 0.00, 0.00, 0.00, 'none', -30000.00, NULL, NULL, 'S02', '2026-03-20 17:02:48', NULL, '{\"note\":null}', '2026-03-20 17:03:29', '2026-03-20 17:03:29', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (104, 23, NULL, NULL, 27, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 0.00, 0.00, 3030000.00, 0, 3030000.00, 3030000.00, 0.00, 'none', 3000000.00, NULL, NULL, 'S03', '2026-03-20 17:07:00', NULL, '{\"note\":null}', '2026-03-20 17:08:09', '2026-03-20 17:08:09', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (105, 19, NULL, NULL, 23, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 0.00, 0.00, 50000.00, 0, 50000.00, 50000.00, 0.00, 'none', 25000.00, NULL, NULL, 'S01', '2026-03-24 21:22:23', NULL, '{\"note\":null}', '2026-03-24 21:22:43', '2026-03-24 21:22:43', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (109, 19, NULL, NULL, 23, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 0.00, 0.00, 85000.00, 0, 85000.00, 85000.00, 0.00, 'none', 42500.00, NULL, NULL, 'S02', '2026-03-25 07:12:37', NULL, '{\"note\":null}', '2026-03-25 07:14:07', '2026-03-25 07:14:07', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (110, 19, NULL, NULL, 23, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 0.00, 0.00, 50000.00, 50000, 50000.00, 50000.00, 0.00, 'none', 25000.00, NULL, NULL, 'S03', '2026-03-28 08:37:57', NULL, '{\"note\":null}', '2026-03-28 08:38:08', '2026-03-28 08:38:08', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (111, 9, NULL, NULL, 12, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 0.00, 0.00, 6000.00, 14000, 6000.00, 6000.00, 0.00, 'none', 0.00, NULL, NULL, 'S01', '2026-03-28 09:48:10', NULL, '{\"note\":null}', '2026-03-28 09:48:44', '2026-03-28 09:48:44', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (112, 9, NULL, NULL, 12, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 715.00, 0.00, 7215.00, 24785, 7215.00, 7215.00, 0.00, 'none', 0.00, NULL, NULL, 'S02', '2026-03-28 11:41:25', NULL, '{\"note\":null}', '2026-03-28 11:41:52', '2026-03-28 11:41:52', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (113, 28, NULL, 31, 33, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 750.00, 0.00, 8250.00, 1750, 8250.00, 8250.00, 0.00, 'none', 2500.00, NULL, NULL, 'S01', '2026-03-29 20:49:19', NULL, '{\"note\":null}', '2026-03-29 20:49:44', '2026-03-29 20:49:44', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (114, 19, NULL, NULL, 23, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 0.00, 0.00, 85000.00, 15000, 85000.00, 85000.00, 0.00, 'none', 42500.00, NULL, NULL, 'S04', '2026-03-30 21:17:02', NULL, '{\"note\":null}', '2026-03-30 21:17:12', '2026-03-30 21:17:12', NULL);
|
|
||||||
INSERT INTO `sales` VALUES (115, 9, NULL, NULL, 12, NULL, 0.00, 0, 0, 'flat', 0.00, 1, 715.00, 0.00, 7215.00, 8285, 7215.00, 7215.00, 0.00, 'none', 0.00, NULL, NULL, 'S03', '2026-04-04 21:35:17', NULL, '{\"note\":null}', '2026-04-04 21:36:42', '2026-04-04 21:36:42', NULL);
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for shelves
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `shelves`;
|
|
||||||
CREATE TABLE `shelves` (
|
|
||||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
||||||
`business_id` bigint(20) UNSIGNED NOT NULL,
|
|
||||||
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
||||||
`status` tinyint(1) NOT NULL DEFAULT 1,
|
|
||||||
`created_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`updated_at` timestamp NULL DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`) USING BTREE,
|
|
||||||
INDEX `shelves_business_id_foreign`(`business_id` ASC) USING BTREE,
|
|
||||||
CONSTRAINT `shelves_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
|
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of shelves
|
|
||||||
-- ----------------------------
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for stocks
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `stocks`;
|
|
||||||
CREATE TABLE `stocks` (
|
|
||||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
||||||
`business_id` bigint(20) UNSIGNED NOT NULL,
|
|
||||||
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`warehouse_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`product_id` bigint(20) UNSIGNED NOT NULL,
|
|
||||||
`batch_no` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`productStock` double NOT NULL DEFAULT 0,
|
|
||||||
`productPurchasePrice` double NOT NULL DEFAULT 0,
|
|
||||||
`profit_percent` double NOT NULL DEFAULT 0,
|
|
||||||
`productSalePrice` double NOT NULL DEFAULT 0,
|
|
||||||
`productWholeSalePrice` double NOT NULL DEFAULT 0,
|
|
||||||
`productDealerPrice` double NOT NULL DEFAULT 0,
|
|
||||||
`serial_numbers` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`variation_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`variant_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`mfg_date` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`expire_date` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`created_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`updated_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`deleted_at` timestamp NULL DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`) USING BTREE,
|
|
||||||
INDEX `stocks_business_id_foreign`(`business_id` ASC) USING BTREE,
|
|
||||||
INDEX `stocks_product_id_foreign`(`product_id` ASC) USING BTREE,
|
|
||||||
INDEX `stocks_branch_id_foreign`(`branch_id` ASC) USING BTREE,
|
|
||||||
INDEX `stocks_warehouse_id_foreign`(`warehouse_id` ASC) USING BTREE,
|
|
||||||
CONSTRAINT `stocks_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `stocks_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `stocks_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `stocks_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT
|
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 57 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of stocks
|
|
||||||
-- ----------------------------
|
|
||||||
INSERT INTO `stocks` VALUES (12, 2, NULL, NULL, 15, NULL, 10014, 3000, 5, 3150, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:08:11', '2026-02-15 20:32:33', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (13, 2, NULL, NULL, 16, NULL, 10037, 2000, 0, 2000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:09:21', '2026-02-15 21:36:17', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (14, 2, NULL, NULL, 17, NULL, 10025, 2500, 0, 2500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:09:56', '2026-02-20 07:05:59', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (15, 2, NULL, NULL, 18, NULL, 10010, 2500, 0, 2500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:10:37', '2026-02-15 20:32:33', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (16, 2, NULL, NULL, 19, NULL, 10007, 2000, 0, 2000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:11:28', '2026-02-15 20:32:33', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (17, 2, NULL, NULL, 20, NULL, 1006, 2500, 0, 2500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:12:07', '2026-02-15 21:35:40', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (18, 2, NULL, NULL, 21, NULL, 1061, 1500, 0, 1500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:13:05', '2026-02-20 07:05:59', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (19, 2, NULL, NULL, 22, NULL, 10000, 10000, 0, 10000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:13:59', '2026-02-15 21:35:40', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (20, 2, NULL, NULL, 23, NULL, 1005, 10000, 0, 10000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:18:23', '2026-02-15 20:32:33', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (21, 2, NULL, NULL, 24, NULL, 10006, 7000, 0, 7000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:19:07', '2026-02-15 21:30:27', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (22, 2, NULL, NULL, 25, NULL, 1030, 2500, 0, 2500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:20:46', '2026-02-15 21:30:27', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (23, 2, NULL, NULL, 26, NULL, 10003, 7000, 0, 7000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:22:17', '2026-02-20 07:05:59', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (24, 2, NULL, NULL, 27, NULL, 1006, 2500, 0, 2500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:29:55', '2026-02-20 07:05:59', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (25, 2, NULL, NULL, 28, NULL, 1028, 2500, 0, 2500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:30:34', '2026-02-15 22:23:47', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (26, 2, NULL, NULL, 29, NULL, 10028, 2000, 0, 2000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:34:32', '2026-02-15 21:35:40', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (27, 2, NULL, NULL, 30, NULL, 1002, 2000, 0, 2000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:36:34', '2026-02-15 22:23:47', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (28, 2, NULL, NULL, 31, NULL, 1000, 2000, 0, 2000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 09:38:50', '2026-02-15 21:31:02', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (29, 2, NULL, NULL, 32, NULL, 999, 25500, 0, 25500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 12:35:11', '2026-02-15 22:34:06', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (30, 2, NULL, NULL, 33, NULL, 9, 23000, 0, 23000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 12:36:44', '2026-02-11 18:16:34', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (31, 2, NULL, NULL, 34, NULL, 9, 20000, 10, 22000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 12:38:00', '2026-02-09 21:56:37', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (32, 2, NULL, NULL, 35, NULL, 988, 5000, 10, 5500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-08 13:47:56', '2026-02-15 22:34:06', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (33, 8, NULL, NULL, 36, NULL, 38, 50000, 50, 75000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-21 11:04:20', '2026-03-19 22:53:53', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (34, 8, NULL, NULL, 37, NULL, 0, 5000, 50, 7500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-21 11:22:50', '2026-02-23 15:29:58', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (35, 8, NULL, NULL, 38, NULL, 1693, 50, 25, 62.5, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-25 11:23:55', '2026-03-19 22:53:53', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (36, 8, NULL, NULL, 40, NULL, 999, 50, 50, 75, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-26 09:19:05', '2026-03-19 22:53:53', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (37, 10, 2, NULL, 41, NULL, 17, 10000, 50, 15000, 0, 0, NULL, 'null', NULL, NULL, NULL, '2026-02-26 14:26:17', '2026-03-18 10:16:27', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (38, 10, 2, 4, 42, NULL, 0, 10000, 0, 10000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-26 15:20:55', '2026-03-02 16:17:15', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (39, 10, 1, 3, 41, NULL, 2, 10000, 50, 15000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-02-26 17:23:49', '2026-02-26 17:23:49', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (40, 10, 2, 4, 42, '27022026', 0, 10000, 0, 10000, 0, 0, NULL, NULL, NULL, NULL, '2026-03-06', '2026-02-27 11:46:14', '2026-03-02 16:17:15', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (41, 10, 2, 4, 43, '0003-1', 4, 5000, 50, 7500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-02 16:18:25', '2026-03-19 22:54:44', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (42, 10, 2, 4, 44, '0004-1', 3, 5000, 75, 8750, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-02 16:19:52', '2026-03-19 22:54:44', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (43, 10, 2, 4, 45, NULL, 7, 5000, 50, 7500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-02 16:21:05', '2026-03-19 22:54:44', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (44, 10, 2, 4, 46, NULL, 2, 7000, 50, 10500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-02 16:21:52', '2026-03-19 22:54:44', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (45, 10, 2, 4, 47, NULL, 1, 5000, 50, 7500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-02 16:28:52', '2026-03-19 22:54:44', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (46, 10, 2, 4, 48, NULL, 0, 5000, 75, 8750, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-02 16:33:12', '2026-03-19 22:54:44', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (47, 14, NULL, NULL, 49, NULL, 98, 25000, 10, 27500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-11 18:48:38', '2026-03-11 18:53:02', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (48, 23, NULL, NULL, 50, NULL, 97, 30000, 10000, 3030000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-13 15:51:31', '2026-03-21 08:22:28', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (49, 24, NULL, NULL, 51, NULL, 888, 100000, 2000, 2100000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-14 00:49:00', '2026-03-14 00:49:00', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (50, 26, NULL, NULL, 52, NULL, 0, 15000, 20, 18000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-18 09:15:56', '2026-03-18 09:22:58', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (51, 27, NULL, NULL, 53, NULL, 10, 1000, 50, 1500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-20 08:37:29', '2026-03-20 08:43:38', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (52, 9, NULL, NULL, 54, NULL, 9993, 1500, 0, 1500, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-20 09:22:30', '2026-04-04 21:36:42', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (53, 19, NULL, NULL, 55, NULL, 98, 25000, 100, 50000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-23 12:52:00', '2026-03-28 08:38:08', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (54, 19, NULL, NULL, 56, NULL, 98, 42500, 100, 85000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-25 07:12:25', '2026-03-30 21:17:12', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (55, 9, NULL, NULL, 57, NULL, 998, 5000, 0, 5000, 0, 0, NULL, NULL, NULL, NULL, NULL, '2026-03-28 11:22:40', '2026-04-12 20:13:23', NULL);
|
|
||||||
INSERT INTO `stocks` VALUES (56, 28, NULL, NULL, 58, NULL, 24, 5000, 50, 7500, 0, 0, NULL, NULL, NULL, '2026-03-29', '2026-03-31', '2026-03-29 20:39:32', '2026-03-29 20:57:12', NULL);
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for testimonials
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `testimonials`;
|
|
||||||
CREATE TABLE `testimonials` (
|
|
||||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
||||||
`text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`star` int(11) NOT NULL,
|
|
||||||
`client_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
||||||
`client_image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`work_at` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
||||||
`created_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`updated_at` timestamp NULL DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`) USING BTREE
|
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of testimonials
|
|
||||||
-- ----------------------------
|
|
||||||
INSERT INTO `testimonials` VALUES (1, '\"Sebagai pemilik butik, melayani pelanggan dan mengelola banyak varian produk itu tantangan. KulakPOS.id mengubah segalanya! Transaksi cepat, bahkan saat sedang ramai. Laporan produk terlaris membantu saya tahu model mana yang harus distok lebih banyak. Selain itu, data pelanggan yang tercatat juga memudahkan saya kasih promo khusus. Bisnis jadi lebih profesional, dan pelanggan saya juga jadi lebih senang karena pelayanan yang cepat. Terima kasih KulakPOS.id!\"', 5, 'Nia Fashion', 'uploads/26/02/1771917795-323.png', 'Butik Fashion', '2024-04-16 21:42:47', '2026-02-24 14:23:15');
|
|
||||||
INSERT INTO `testimonials` VALUES (2, '\"Toko elektronik saya punya banyak jenis barang, dan dulu sering ada selisih stok. Sejak pakai KulakPOS.id, manajemen inventaris jadi super gampang. Fitur lacak barang masuk dan keluar sangat membantu. Yang paling saya suka itu fitur integrasi pembayaran QRIS-nya, bikin pelanggan makin nyaman. Modal saya jadi lebih terkontrol, dan tidak ada lagi barang yang \'hilang\' tanpa jejak. Bener-bener modernisasi bisnis yang saya butuhkan!\"', 5, 'Budi Jaya Elektronik', 'uploads/26/02/1771917730-930.png', 'Toko Elektronik', '2024-04-16 21:43:24', '2026-02-24 14:22:10');
|
|
||||||
INSERT INTO `testimonials` VALUES (3, '\"Sebelum pakai KulakPOS, saya sering pusing hitung stok bahan baku dan laba rugi bulanan. Sekarang, semua tercatat otomatis! Dari transaksi kasir, daftar menu, sampai stok ayam dan bumbu, semua terkelola dengan baik. Laporan penjualan juga bisa saya lihat kapan saja. Omzet naik karena saya bisa lebih fokus ke kualitas masakan, bukan lagi mikirin administrasi yang ribet. KulakPOS.id memang solusi canggih yang pas buat UMKM seperti saya!\"', 5, 'Ibu Santi', 'uploads/26/02/1771917653-877.png', 'Dapur Santi', '2024-04-16 21:44:29', '2026-02-24 14:20:53');
|
|
||||||
INSERT INTO `testimonials` VALUES (4, '\"Mengelola cafe dengan banyak pesanan custom (seperti tingkat kemanisan atau jenis susu) dulu sering bikin barista saya kewalahan dan salah input. Sejak pakai KulakPOS.id, semua pesanan tercatat detail dan langsung terhubung ke dapur. Fitur Manajemen Meja-nya juara banget, saya bisa pantau meja mana yang penuh atau kosong secara real-time. Plus, integrasi stok bahan baku bikin saya tahu persis kapan harus beli biji kopi atau susu lagi sebelum kehabisan. Bisnis jadi jauh lebih rapi dan kelihatan profesional di mata pelanggan!\"', 5, 'Andre', 'uploads/26/02/1771919721-312.jpg', 'Pemilik \"Skyline Coffee & Eatery\"', '2026-02-24 14:55:21', '2026-02-24 14:55:21');
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for transactions
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `transactions`;
|
|
||||||
CREATE TABLE `transactions` (
|
|
||||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
||||||
`platform` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
||||||
`transaction_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
||||||
`type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`amount` double(15, 3) NOT NULL,
|
|
||||||
`date` date NULL DEFAULT NULL,
|
|
||||||
`business_id` bigint(20) UNSIGNED NOT NULL,
|
|
||||||
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`payment_type_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`user_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`from_bank` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`to_bank` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`reference_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`invoice_no` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`meta` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`deleted_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`created_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`updated_at` timestamp NULL DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`) USING BTREE,
|
|
||||||
INDEX `transactions_business_id_foreign`(`business_id` ASC) USING BTREE,
|
|
||||||
INDEX `transactions_branch_id_foreign`(`branch_id` ASC) USING BTREE,
|
|
||||||
INDEX `transactions_payment_type_id_foreign`(`payment_type_id` ASC) USING BTREE,
|
|
||||||
INDEX `transactions_user_id_foreign`(`user_id` ASC) USING BTREE,
|
|
||||||
INDEX `transactions_from_bank_foreign`(`from_bank` ASC) USING BTREE,
|
|
||||||
INDEX `transactions_to_bank_foreign`(`to_bank` ASC) USING BTREE,
|
|
||||||
CONSTRAINT `transactions_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `transactions_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `transactions_from_bank_foreign` FOREIGN KEY (`from_bank`) REFERENCES `payment_types` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `transactions_payment_type_id_foreign` FOREIGN KEY (`payment_type_id`) REFERENCES `payment_types` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `transactions_to_bank_foreign` FOREIGN KEY (`to_bank`) REFERENCES `payment_types` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `transactions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT
|
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 116 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of transactions
|
|
||||||
-- ----------------------------
|
|
||||||
INSERT INTO `transactions` VALUES (71, 'sale', 'cash_payment', 'credit', 5500.000, '2026-03-02', 8, NULL, NULL, 9, NULL, NULL, 76, 'T01', NULL, NULL, NULL, NULL, '2026-03-02 22:44:39', '2026-03-02 22:44:39');
|
|
||||||
INSERT INTO `transactions` VALUES (72, 'sale', 'cash_payment', 'credit', 11000.000, '2026-03-02', 8, NULL, NULL, 9, NULL, NULL, 77, 'T02', NULL, NULL, NULL, NULL, '2026-03-02 22:48:14', '2026-03-02 22:48:14');
|
|
||||||
INSERT INTO `transactions` VALUES (73, 'sale', 'cash_payment', 'credit', 5500.000, '2026-03-04', 8, NULL, NULL, 9, NULL, NULL, 78, 'T03', NULL, NULL, NULL, NULL, '2026-03-04 09:15:05', '2026-03-04 09:15:05');
|
|
||||||
INSERT INTO `transactions` VALUES (74, 'sale', 'cash_payment', 'credit', 5500.000, '2026-03-05', 8, NULL, NULL, 9, NULL, NULL, 79, 'T04', NULL, NULL, NULL, NULL, '2026-03-05 00:07:18', '2026-03-05 00:07:18');
|
|
||||||
INSERT INTO `transactions` VALUES (75, 'sale', 'cash_payment', 'credit', 28537.500, '2026-03-05', 10, 2, NULL, 7, NULL, NULL, 80, 'T01', NULL, NULL, NULL, NULL, '2026-03-05 16:20:23', '2026-03-05 16:20:23');
|
|
||||||
INSERT INTO `transactions` VALUES (76, 'sale', 'cash_payment', 'credit', 51862.500, '2026-03-05', 10, 2, NULL, 7, NULL, NULL, 81, 'T02', NULL, NULL, NULL, NULL, '2026-03-05 16:25:13', '2026-03-05 16:25:13');
|
|
||||||
INSERT INTO `transactions` VALUES (77, 'sale', 'bank_payment', 'credit', 28538.000, '2026-03-06', 10, 2, 6, 7, NULL, NULL, 82, 'T03', NULL, NULL, NULL, NULL, '2026-03-06 09:42:18', '2026-03-06 09:42:18');
|
|
||||||
INSERT INTO `transactions` VALUES (78, 'sale', 'cash_payment', 'credit', 34950.000, '2026-03-09', 10, 2, NULL, 7, NULL, NULL, 83, 'T04', NULL, NULL, NULL, NULL, '2026-03-09 10:52:55', '2026-03-09 10:52:55');
|
|
||||||
INSERT INTO `transactions` VALUES (79, 'sale', 'cash_payment', 'credit', 2.000, '2026-03-11', 14, NULL, NULL, 18, NULL, NULL, 85, 'T01', NULL, NULL, NULL, NULL, '2026-03-11 18:53:02', '2026-03-11 18:53:02');
|
|
||||||
INSERT INTO `transactions` VALUES (80, 'sale', 'bank_payment', 'credit', 88819.375, '2026-03-13', 8, NULL, 4, 9, NULL, NULL, 86, 'T05', NULL, NULL, NULL, NULL, '2026-03-13 11:30:34', '2026-03-13 11:30:34');
|
|
||||||
INSERT INTO `transactions` VALUES (81, 'sale', 'cash_payment', 'credit', 88820.000, '2026-03-13', 8, NULL, NULL, 9, NULL, NULL, 87, 'T06', NULL, NULL, NULL, NULL, '2026-03-13 11:32:11', '2026-03-13 11:32:11');
|
|
||||||
INSERT INTO `transactions` VALUES (82, 'sale', 'cash_payment', 'credit', 46425.000, '2026-03-13', 10, 2, NULL, 7, NULL, NULL, 88, 'T05', NULL, NULL, NULL, NULL, '2026-03-13 11:33:24', '2026-03-13 11:33:24');
|
|
||||||
INSERT INTO `transactions` VALUES (83, 'sale', 'bank_payment', 'credit', 26700.000, '2026-03-13', 10, 2, 10, 7, NULL, NULL, 90, 'T06', NULL, NULL, NULL, NULL, '2026-03-13 14:55:38', '2026-03-13 14:55:38');
|
|
||||||
INSERT INTO `transactions` VALUES (84, 'sale', 'cash_payment', 'credit', 38175.000, '2026-03-14', 10, 2, NULL, 7, NULL, NULL, 91, 'T07', NULL, NULL, NULL, NULL, '2026-03-14 22:26:03', '2026-03-14 22:26:03');
|
|
||||||
INSERT INTO `transactions` VALUES (85, 'income', 'cash_payment', 'credit', 100000.000, '2026-03-16', 23, NULL, NULL, 27, NULL, NULL, 8, 'T01', NULL, NULL, NULL, NULL, '2026-03-16 06:25:00', '2026-03-16 06:25:00');
|
|
||||||
INSERT INTO `transactions` VALUES (86, 'sale', 'cash_payment', 'credit', 88820.000, '2026-03-16', 8, NULL, NULL, 9, NULL, NULL, 92, 'T07', NULL, NULL, NULL, NULL, '2026-03-16 08:29:47', '2026-03-16 08:29:47');
|
|
||||||
INSERT INTO `transactions` VALUES (87, 'sale', 'cash_payment', 'credit', 19800.000, '2026-03-16', 10, 2, NULL, 7, NULL, NULL, 93, 'T08', NULL, NULL, NULL, NULL, '2026-03-16 09:12:56', '2026-03-16 09:12:56');
|
|
||||||
INSERT INTO `transactions` VALUES (88, 'expense', 'cash_payment', 'debit', 5000000.000, '2026-03-16', 23, NULL, NULL, 27, NULL, NULL, 9, 'T02', NULL, NULL, NULL, NULL, '2026-03-16 18:22:12', '2026-03-16 18:22:12');
|
|
||||||
INSERT INTO `transactions` VALUES (89, 'sale', 'cash_payment', 'credit', 3030000.000, '2026-03-16', 23, NULL, NULL, 27, NULL, NULL, 95, 'T03', NULL, NULL, NULL, NULL, '2026-03-16 18:28:24', '2026-03-16 18:28:24');
|
|
||||||
INSERT INTO `transactions` VALUES (90, 'sale', 'bank_payment', 'credit', 88820.000, '2026-03-17', 8, NULL, 4, 9, NULL, NULL, 96, 'T08', NULL, NULL, NULL, NULL, '2026-03-17 08:11:52', '2026-03-17 08:11:52');
|
|
||||||
INSERT INTO `transactions` VALUES (91, 'sale', 'bank_payment', 'credit', 26700.000, '2026-03-17', 10, 2, 10, 7, NULL, NULL, 97, 'T09', NULL, NULL, NULL, NULL, '2026-03-17 08:13:29', '2026-03-17 08:13:29');
|
|
||||||
INSERT INTO `transactions` VALUES (92, 'sale', 'cash_payment', 'credit', 5000.000, '2026-03-17', 8, NULL, NULL, 9, NULL, NULL, 98, 'T09', NULL, NULL, NULL, NULL, '2026-03-17 15:44:24', '2026-03-17 15:44:24');
|
|
||||||
INSERT INTO `transactions` VALUES (93, 'sale', 'bank_payment', 'credit', 78320.000, '2026-03-17', 8, NULL, 4, 9, NULL, NULL, 98, 'T10', NULL, NULL, NULL, NULL, '2026-03-17 15:44:24', '2026-03-17 15:44:24');
|
|
||||||
INSERT INTO `transactions` VALUES (94, 'sale', 'bank_payment', 'credit', 88820.000, '2026-03-18', 8, NULL, 5, 9, NULL, NULL, 99, 'T11', NULL, NULL, NULL, NULL, '2026-03-18 08:37:31', '2026-03-18 08:37:31');
|
|
||||||
INSERT INTO `transactions` VALUES (95, 'expense', 'cash_payment', 'debit', 10000.000, '2026-03-18', 8, NULL, NULL, 9, NULL, NULL, 10, 'T12', NULL, NULL, NULL, NULL, '2026-03-18 08:41:13', '2026-03-18 08:41:13');
|
|
||||||
INSERT INTO `transactions` VALUES (96, 'sale', 'bank_payment', 'credit', 54750.000, '2026-03-19', 10, 2, 10, 7, NULL, NULL, 100, 'T10', NULL, NULL, NULL, NULL, '2026-03-19 16:09:21', '2026-03-19 16:09:21');
|
|
||||||
INSERT INTO `transactions` VALUES (97, 'sale', 'bank_payment', 'credit', 88903.000, '2026-03-19', 8, NULL, 4, 9, NULL, NULL, 101, 'T13', NULL, NULL, NULL, NULL, '2026-03-19 22:53:53', '2026-03-19 22:53:53');
|
|
||||||
INSERT INTO `transactions` VALUES (98, 'sale', 'bank_payment', 'credit', 54750.000, '2026-03-19', 10, 2, 10, 7, NULL, NULL, 102, 'T11', NULL, NULL, NULL, NULL, '2026-03-19 22:54:44', '2026-03-19 22:54:44');
|
|
||||||
INSERT INTO `transactions` VALUES (99, 'expense', 'bank_payment', 'debit', 100000.000, '2026-03-20', 10, 2, 6, 7, NULL, NULL, 11, 'T12', NULL, NULL, NULL, NULL, '2026-03-20 09:22:00', '2026-03-20 09:22:00');
|
|
||||||
INSERT INTO `transactions` VALUES (100, 'income', 'cash_payment', 'credit', 100000.000, '2026-03-20', 23, NULL, NULL, 27, NULL, NULL, 9, 'T04', NULL, NULL, NULL, NULL, '2026-03-20 17:04:42', '2026-03-20 17:04:42');
|
|
||||||
INSERT INTO `transactions` VALUES (101, 'sale', 'cash_payment', 'credit', 3030000.000, '2026-03-20', 23, NULL, NULL, 27, NULL, NULL, 104, 'T05', NULL, NULL, NULL, NULL, '2026-03-20 17:08:09', '2026-03-20 17:08:09');
|
|
||||||
INSERT INTO `transactions` VALUES (102, 'expense', 'cash_payment', 'debit', 2000000.000, '2026-03-21', 23, NULL, NULL, 27, NULL, NULL, 12, 'T06', NULL, NULL, NULL, NULL, '2026-03-21 08:14:17', '2026-03-21 08:14:17');
|
|
||||||
INSERT INTO `transactions` VALUES (103, 'sale', 'cash_payment', 'credit', 50000.000, '2026-03-24', 19, NULL, NULL, 23, NULL, NULL, 105, 'T01', NULL, NULL, NULL, NULL, '2026-03-24 21:22:43', '2026-03-24 21:22:43');
|
|
||||||
INSERT INTO `transactions` VALUES (104, 'sale', 'cash_payment', 'credit', 85000.000, '2026-03-25', 19, NULL, NULL, 23, NULL, NULL, 109, 'T02', NULL, NULL, NULL, NULL, '2026-03-25 07:14:07', '2026-03-25 07:14:07');
|
|
||||||
INSERT INTO `transactions` VALUES (105, 'sale', 'cash_payment', 'credit', 50000.000, '2026-03-28', 19, NULL, NULL, 23, NULL, NULL, 110, 'T03', NULL, NULL, NULL, NULL, '2026-03-28 08:38:08', '2026-03-28 08:38:08');
|
|
||||||
INSERT INTO `transactions` VALUES (106, 'sale', 'cash_payment', 'credit', 6000.000, '2026-03-28', 9, NULL, NULL, 12, NULL, NULL, 111, 'T01', NULL, NULL, NULL, NULL, '2026-03-28 09:48:44', '2026-03-28 09:48:44');
|
|
||||||
INSERT INTO `transactions` VALUES (107, 'sale', 'cash_payment', 'credit', 7215.000, '2026-03-28', 9, NULL, NULL, 12, NULL, NULL, 112, 'T02', NULL, NULL, NULL, NULL, '2026-03-28 11:41:52', '2026-03-28 11:41:52');
|
|
||||||
INSERT INTO `transactions` VALUES (108, 'purchase', 'cash_payment', 'debit', 55000.000, '2026-03-29', 28, NULL, NULL, 33, NULL, NULL, 10, 'T01', NULL, NULL, NULL, NULL, '2026-03-29 20:48:00', '2026-03-29 20:48:00');
|
|
||||||
INSERT INTO `transactions` VALUES (109, 'sale', 'cash_payment', 'credit', 8250.000, '2026-03-29', 28, NULL, NULL, 33, NULL, NULL, 113, 'T02', NULL, NULL, NULL, NULL, '2026-03-29 20:49:44', '2026-03-29 20:49:44');
|
|
||||||
INSERT INTO `transactions` VALUES (110, 'cash', 'cash_to_bank', 'transfer', 8250.000, '2026-03-29', 28, NULL, NULL, 33, NULL, 24, NULL, 'T03', NULL, NULL, NULL, NULL, '2026-03-29 20:53:02', '2026-03-29 20:53:02');
|
|
||||||
INSERT INTO `transactions` VALUES (111, 'sale', 'cash_payment', 'credit', 85000.000, '2026-03-30', 19, NULL, NULL, 23, NULL, NULL, 114, 'T04', NULL, NULL, NULL, NULL, '2026-03-30 21:17:12', '2026-03-30 21:17:12');
|
|
||||||
INSERT INTO `transactions` VALUES (112, 'sale', 'cash_payment', 'credit', 7215.000, '2026-04-04', 9, NULL, NULL, 12, NULL, NULL, 115, 'T03', NULL, NULL, NULL, NULL, '2026-04-04 21:36:42', '2026-04-04 21:36:42');
|
|
||||||
INSERT INTO `transactions` VALUES (113, 'expense', 'cash_payment', 'debit', 360000.000, '2026-04-12', 9, NULL, NULL, 12, NULL, NULL, 13, 'T04', NULL, NULL, NULL, NULL, '2026-04-12 20:06:59', '2026-04-12 20:06:59');
|
|
||||||
INSERT INTO `transactions` VALUES (114, 'purchase', 'cash_payment', 'debit', 5000.000, '2026-04-12', 9, NULL, NULL, 12, NULL, NULL, 12, 'T05', NULL, NULL, NULL, NULL, '2026-04-12 20:13:23', '2026-04-12 20:13:23');
|
|
||||||
INSERT INTO `transactions` VALUES (115, 'income', 'cash_payment', 'credit', 100000.000, '2026-04-12', 9, NULL, NULL, 12, NULL, NULL, 10, 'T06', NULL, NULL, NULL, NULL, '2026-04-12 20:14:55', '2026-04-12 20:14:55');
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for transfer_products
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `transfer_products`;
|
|
||||||
CREATE TABLE `transfer_products` (
|
|
||||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
||||||
`transfer_id` bigint(20) UNSIGNED NOT NULL,
|
|
||||||
`stock_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`product_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`quantity` int(11) NOT NULL DEFAULT 1,
|
|
||||||
`unit_price` double(10, 2) NOT NULL DEFAULT 0.00,
|
|
||||||
`discount` double(10, 2) NOT NULL DEFAULT 0.00,
|
|
||||||
`tax` double(10, 2) NOT NULL DEFAULT 0.00,
|
|
||||||
`created_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`updated_at` timestamp NULL DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`) USING BTREE,
|
|
||||||
INDEX `transfer_products_transfer_id_foreign`(`transfer_id` ASC) USING BTREE,
|
|
||||||
INDEX `transfer_products_product_id_foreign`(`product_id` ASC) USING BTREE,
|
|
||||||
INDEX `transfer_products_stock_id_foreign`(`stock_id` ASC) USING BTREE,
|
|
||||||
CONSTRAINT `transfer_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `transfer_products_stock_id_foreign` FOREIGN KEY (`stock_id`) REFERENCES `stocks` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `transfer_products_transfer_id_foreign` FOREIGN KEY (`transfer_id`) REFERENCES `transfers` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
|
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of transfer_products
|
|
||||||
-- ----------------------------
|
|
||||||
INSERT INTO `transfer_products` VALUES (2, 1, 37, NULL, 2, 15000.00, 0.00, 0.00, '2026-02-26 17:23:49', '2026-02-26 17:23:49');
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for transfers
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `transfers`;
|
|
||||||
CREATE TABLE `transfers` (
|
|
||||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
||||||
`business_id` bigint(20) UNSIGNED NOT NULL,
|
|
||||||
`from_branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`from_warehouse_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`to_branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`to_warehouse_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`transfer_date` date NOT NULL,
|
|
||||||
`invoice_no` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
||||||
`note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`shipping_charge` double(10, 2) NOT NULL DEFAULT 0.00,
|
|
||||||
`sub_total` double(10, 2) NOT NULL DEFAULT 0.00,
|
|
||||||
`total_discount` double(10, 2) NOT NULL DEFAULT 0.00,
|
|
||||||
`total_tax` double(10, 2) NOT NULL DEFAULT 0.00,
|
|
||||||
`grand_total` double(12, 2) NOT NULL DEFAULT 0.00,
|
|
||||||
`status` enum('pending','completed','cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending',
|
|
||||||
`created_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`updated_at` timestamp NULL DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`) USING BTREE,
|
|
||||||
UNIQUE INDEX `transfers_invoice_no_unique`(`invoice_no` ASC) USING BTREE,
|
|
||||||
INDEX `transfers_business_id_foreign`(`business_id` ASC) USING BTREE,
|
|
||||||
INDEX `transfers_from_warehouse_id_foreign`(`from_warehouse_id` ASC) USING BTREE,
|
|
||||||
INDEX `transfers_to_warehouse_id_foreign`(`to_warehouse_id` ASC) USING BTREE,
|
|
||||||
INDEX `transfers_from_branch_id_foreign`(`from_branch_id` ASC) USING BTREE,
|
|
||||||
INDEX `transfers_to_branch_id_foreign`(`to_branch_id` ASC) USING BTREE,
|
|
||||||
CONSTRAINT `transfers_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `transfers_from_branch_id_foreign` FOREIGN KEY (`from_branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `transfers_from_warehouse_id_foreign` FOREIGN KEY (`from_warehouse_id`) REFERENCES `warehouses` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `transfers_to_branch_id_foreign` FOREIGN KEY (`to_branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `transfers_to_warehouse_id_foreign` FOREIGN KEY (`to_warehouse_id`) REFERENCES `warehouses` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT
|
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of transfers
|
|
||||||
-- ----------------------------
|
|
||||||
INSERT INTO `transfers` VALUES (1, 10, 2, 4, 1, 3, '2026-02-26', '00001', 'Kirim Kembali ke Production', 0.00, 30000.00, 0.00, 0.00, 30000.00, 'completed', '2026-02-26 17:23:03', '2026-02-26 17:23:49');
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for units
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `units`;
|
|
||||||
CREATE TABLE `units` (
|
|
||||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
||||||
`unitName` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
||||||
`business_id` bigint(20) UNSIGNED NOT NULL,
|
|
||||||
`status` tinyint(1) NOT NULL DEFAULT 1,
|
|
||||||
`created_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`updated_at` timestamp NULL DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`) USING BTREE,
|
|
||||||
INDEX `units_business_id_foreign`(`business_id` ASC) USING BTREE,
|
|
||||||
CONSTRAINT `units_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
|
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 35 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of units
|
|
||||||
-- ----------------------------
|
|
||||||
INSERT INTO `units` VALUES (12, 'pcs', 2, 1, '2026-02-08 09:07:23', '2026-02-08 09:07:23');
|
|
||||||
INSERT INTO `units` VALUES (13, 'tusuk', 2, 1, '2026-02-08 09:12:59', '2026-02-08 09:12:59');
|
|
||||||
INSERT INTO `units` VALUES (14, 'Gelas', 2, 1, '2026-02-08 09:13:39', '2026-02-08 09:13:39');
|
|
||||||
INSERT INTO `units` VALUES (15, 'Bungkus', 2, 1, '2026-02-08 12:34:27', '2026-02-08 12:34:27');
|
|
||||||
INSERT INTO `units` VALUES (16, 'Bottle', 8, 1, '2026-02-21 11:03:34', '2026-02-21 11:03:34');
|
|
||||||
INSERT INTO `units` VALUES (17, 'Cup', 8, 1, '2026-02-21 11:08:26', '2026-02-21 11:08:26');
|
|
||||||
INSERT INTO `units` VALUES (18, 'Gram', 8, 1, '2026-02-25 11:17:54', '2026-02-25 11:17:54');
|
|
||||||
INSERT INTO `units` VALUES (19, 'Kg', 8, 1, '2026-02-25 11:18:04', '2026-02-25 11:18:04');
|
|
||||||
INSERT INTO `units` VALUES (20, 'Pack', 10, 1, '2026-02-26 14:47:49', '2026-02-26 14:47:49');
|
|
||||||
INSERT INTO `units` VALUES (21, 'Pcs', 10, 1, '2026-02-26 14:47:55', '2026-02-26 14:47:55');
|
|
||||||
INSERT INTO `units` VALUES (22, 'Kg', 10, 1, '2026-02-26 14:48:01', '2026-02-26 14:48:01');
|
|
||||||
INSERT INTO `units` VALUES (23, 'Gram', 10, 1, '2026-02-26 14:48:06', '2026-02-26 14:48:06');
|
|
||||||
INSERT INTO `units` VALUES (24, 'Pcs', 11, 1, '2026-03-05 23:00:38', '2026-03-05 23:00:38');
|
|
||||||
INSERT INTO `units` VALUES (25, 'lusin', 14, 1, '2026-03-11 18:48:01', '2026-03-11 18:48:01');
|
|
||||||
INSERT INTO `units` VALUES (26, 'Bungkus', 23, 1, '2026-03-13 15:50:23', '2026-03-13 15:50:23');
|
|
||||||
INSERT INTO `units` VALUES (27, 'jersey', 24, 1, '2026-03-14 00:48:05', '2026-03-14 00:48:05');
|
|
||||||
INSERT INTO `units` VALUES (28, 'pcs', 19, 1, '2026-03-18 09:09:07', '2026-03-18 09:09:07');
|
|
||||||
INSERT INTO `units` VALUES (29, 'unit', 26, 1, '2026-03-18 09:15:01', '2026-03-18 09:15:01');
|
|
||||||
INSERT INTO `units` VALUES (30, 'Pcs', 27, 1, '2026-03-20 08:37:06', '2026-03-20 08:37:06');
|
|
||||||
INSERT INTO `units` VALUES (31, 'biji', 9, 1, '2026-03-20 09:22:09', '2026-03-20 09:22:09');
|
|
||||||
INSERT INTO `units` VALUES (32, 'bungkus', 9, 1, '2026-03-28 09:44:33', '2026-03-28 09:44:33');
|
|
||||||
INSERT INTO `units` VALUES (33, 'CUP', 9, 1, '2026-03-28 11:22:22', '2026-03-28 11:22:22');
|
|
||||||
INSERT INTO `units` VALUES (34, 'Pcs', 28, 1, '2026-03-29 20:36:48', '2026-03-29 20:36:48');
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for user_currencies
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `user_currencies`;
|
|
||||||
CREATE TABLE `user_currencies` (
|
|
||||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
||||||
`business_id` bigint(20) UNSIGNED NOT NULL,
|
|
||||||
`currency_id` bigint(20) UNSIGNED NOT NULL,
|
|
||||||
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
||||||
`country_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
||||||
`rate` double NULL DEFAULT NULL,
|
|
||||||
`symbol` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`position` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`created_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`updated_at` timestamp NULL DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`) USING BTREE,
|
|
||||||
INDEX `user_currencies_business_id_foreign`(`business_id` ASC) USING BTREE,
|
|
||||||
INDEX `user_currencies_currency_id_foreign`(`currency_id` ASC) USING BTREE,
|
|
||||||
CONSTRAINT `user_currencies_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `user_currencies_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
|
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 30 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of user_currencies
|
|
||||||
-- ----------------------------
|
|
||||||
INSERT INTO `user_currencies` VALUES (3, 2, 4, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-02-07 14:13:38', '2026-02-08 09:46:50');
|
|
||||||
INSERT INTO `user_currencies` VALUES (7, 6, 4, 'US Dollar', 'United States of America', 'USD', 1, '$', 'left', '2026-02-19 14:05:44', '2026-02-19 14:05:44');
|
|
||||||
INSERT INTO `user_currencies` VALUES (8, 7, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-02-20 06:56:47', '2026-02-20 06:56:47');
|
|
||||||
INSERT INTO `user_currencies` VALUES (9, 8, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-02-21 10:48:03', '2026-02-21 10:48:03');
|
|
||||||
INSERT INTO `user_currencies` VALUES (10, 9, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-02-25 23:50:10', '2026-02-25 23:50:10');
|
|
||||||
INSERT INTO `user_currencies` VALUES (11, 10, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-02-26 09:24:40', '2026-02-26 09:24:40');
|
|
||||||
INSERT INTO `user_currencies` VALUES (12, 11, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-05 22:57:49', '2026-03-05 22:57:49');
|
|
||||||
INSERT INTO `user_currencies` VALUES (13, 12, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-09 22:12:47', '2026-03-09 22:12:47');
|
|
||||||
INSERT INTO `user_currencies` VALUES (14, 13, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-09 22:45:03', '2026-03-09 22:45:03');
|
|
||||||
INSERT INTO `user_currencies` VALUES (15, 14, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-11 15:29:08', '2026-03-11 15:29:08');
|
|
||||||
INSERT INTO `user_currencies` VALUES (16, 15, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-12 13:03:15', '2026-03-12 13:03:15');
|
|
||||||
INSERT INTO `user_currencies` VALUES (17, 16, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-12 13:18:47', '2026-03-12 13:18:47');
|
|
||||||
INSERT INTO `user_currencies` VALUES (18, 17, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-12 19:27:22', '2026-03-12 19:27:22');
|
|
||||||
INSERT INTO `user_currencies` VALUES (19, 18, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-12 20:46:35', '2026-03-12 20:46:35');
|
|
||||||
INSERT INTO `user_currencies` VALUES (20, 19, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-12 20:53:59', '2026-03-12 20:53:59');
|
|
||||||
INSERT INTO `user_currencies` VALUES (21, 20, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-12 21:00:03', '2026-03-12 21:00:03');
|
|
||||||
INSERT INTO `user_currencies` VALUES (22, 21, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-12 22:08:13', '2026-03-12 22:08:13');
|
|
||||||
INSERT INTO `user_currencies` VALUES (23, 22, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-13 07:09:12', '2026-03-13 07:09:12');
|
|
||||||
INSERT INTO `user_currencies` VALUES (24, 23, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-13 10:24:29', '2026-03-13 10:24:29');
|
|
||||||
INSERT INTO `user_currencies` VALUES (25, 24, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-13 23:46:50', '2026-03-13 23:46:50');
|
|
||||||
INSERT INTO `user_currencies` VALUES (26, 25, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-14 11:03:24', '2026-03-14 11:03:24');
|
|
||||||
INSERT INTO `user_currencies` VALUES (27, 26, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-16 11:12:33', '2026-03-16 11:12:33');
|
|
||||||
INSERT INTO `user_currencies` VALUES (28, 27, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-18 13:39:00', '2026-03-18 13:39:00');
|
|
||||||
INSERT INTO `user_currencies` VALUES (29, 28, 61, 'Indonesia Rupiah', 'Indonesia', 'IDR', 15930, 'Rp', 'left', '2026-03-29 20:33:13', '2026-03-29 20:33:13');
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for users
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `users`;
|
|
||||||
CREATE TABLE `users` (
|
|
||||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
||||||
`business_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`active_branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`role` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'shop-owner',
|
|
||||||
`phone` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`lang` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`visibility` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`is_verified` tinyint(1) NOT NULL DEFAULT 0,
|
|
||||||
`provider_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`provider` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`password` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`email_verified_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`created_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`updated_at` timestamp NULL DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`) USING BTREE,
|
|
||||||
UNIQUE INDEX `users_email_unique`(`email` ASC) USING BTREE,
|
|
||||||
INDEX `users_business_id_foreign`(`business_id` ASC) USING BTREE,
|
|
||||||
INDEX `users_branch_id_foreign`(`branch_id` ASC) USING BTREE,
|
|
||||||
INDEX `users_active_branch_id_foreign`(`active_branch_id` ASC) USING BTREE,
|
|
||||||
CONSTRAINT `users_active_branch_id_foreign` FOREIGN KEY (`active_branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `users_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `users_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
|
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 34 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of users
|
|
||||||
-- ----------------------------
|
|
||||||
INSERT INTO `users` VALUES (1, NULL, NULL, NULL, 'superadmin@superadmin.com', 'Super Admin', 'superadmin', NULL, 'assets/images/profile/superadmin.png', 'en', NULL, 0, NULL, NULL, '$2y$10$urKdo7uc8hAgL8tjmmCfJOA4E6UtdHapS3W0e2nxWvrDQaQXejnnK', NULL, NULL, 'dSQJCZiYxkgIe9Wy8WIebqLBO1jA9hddCVinLzAI9rORUlhhubI5H4etuG8m', '2026-02-05 08:39:18', '2026-02-19 15:19:51');
|
|
||||||
INSERT INTO `users` VALUES (2, 6, NULL, NULL, 'admin@admin.com', 'Admin', 'admin', NULL, 'assets/images/profile/admin.png', NULL, NULL, 0, NULL, NULL, '$2y$10$pHO/icIb4fIPHVn1vCwQ5OTQXnodcklecHxZkiY9Ch3iOUTXfrl1.', NULL, NULL, NULL, '2026-02-05 08:39:18', '2026-02-19 14:05:44');
|
|
||||||
INSERT INTO `users` VALUES (3, NULL, NULL, NULL, 'manager@manager.com', 'Manager', 'manager', NULL, 'assets/images/profile/manager.png', NULL, NULL, 0, NULL, NULL, '$2y$10$OTfPaRCs4.cLvYJtZ3oT1uND3K3/K/u.GBZiFtWanjP1LAsNqd/xe', NULL, NULL, NULL, '2026-02-05 08:39:19', '2026-02-05 08:39:19');
|
|
||||||
INSERT INTO `users` VALUES (5, 2, NULL, NULL, 'dapurhoney@honey.com', 'Dapur Honey', 'shop-owner', '08', NULL, 'en', NULL, 0, NULL, NULL, '$2y$10$a74iYPM/0eejUCzO9deqmOg2C39X9wScyD7eKN.d3Hh4C0vjDyc.q', NULL, NULL, NULL, '2026-02-07 14:12:59', '2026-02-25 23:26:38');
|
|
||||||
INSERT INTO `users` VALUES (7, 10, 2, NULL, 'onedirac@gmail.com', '5 Roti 2 Ikan', 'shop-owner', '081310195804', NULL, 'en', NULL, 1, NULL, NULL, '$2y$10$b2Us3T15mhiDUAvmSQYQ0eWWM7BzNNTElRbbtnyhl59Mrc75huFnW', NULL, '2026-02-26 09:23:43', NULL, '2026-02-19 14:00:28', '2026-03-30 11:49:23');
|
|
||||||
INSERT INTO `users` VALUES (8, 7, NULL, NULL, 'Yanto@gmail.com', NULL, 'shop-owner', NULL, NULL, NULL, NULL, 0, NULL, NULL, '$2y$10$7Z9fj60XTDjaQ.cIeNBjQuQijxFUBUBP6dwcAyg.qXEYItDhmwQ7K', NULL, NULL, NULL, '2026-02-20 06:56:21', '2026-02-20 06:56:47');
|
|
||||||
INSERT INTO `users` VALUES (9, 8, NULL, NULL, 'meus.ginting@gmail.com', 'Alika', 'shop-owner', NULL, NULL, 'en', NULL, 1, NULL, NULL, '$2y$10$NL6euJ3A.YAHvMpDhpjB/O3JEmh.j.ZSj7cTopouoDMJyq0XD0mCi', NULL, '2026-02-21 10:47:18', 'Jur93hvd3Iq6dfYmgaV3Qm7xNGO7NE7TLjVGalxJZ9DldJ3y0LdBdBJcFkHH', '2026-02-21 10:46:40', '2026-03-02 22:24:28');
|
|
||||||
INSERT INTO `users` VALUES (10, NULL, NULL, NULL, 'beccadesignlab@gmail.com', 'Rebecca', 'shop-owner', NULL, NULL, 'en', NULL, 1, NULL, NULL, '$2y$10$wvQ3eLm4unj4ssVk1LPShuhbE6SMC63xBKFn0O898Z2HkT.PRkV..', NULL, '2026-03-05 22:45:49', NULL, '2026-02-21 13:17:10', '2026-03-05 22:50:24');
|
|
||||||
INSERT INTO `users` VALUES (11, 8, NULL, 1, 'kasir@gmail.com', 'kasir', 'staff', NULL, NULL, NULL, '{\"dashboard\":{\"read\":\"1\"},\"sales\":{\"read\":\"1\",\"create\":\"1\",\"update\":\"1\",\"delete\":\"1\"},\"inventory\":{\"read\":\"1\",\"create\":\"1\"},\"sale-returns\":{\"read\":\"1\",\"create\":\"1\"},\"purchases\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\",\"price\":\"0\"},\"purchase-returns\":{\"read\":\"0\",\"create\":\"0\",\"price\":\"0\"},\"products\":{\"read\":\"1\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\",\"price\":\"0\"},\"products-expired\":{\"read\":\"0\",\"price\":\"0\"},\"barcodes\":{\"read\":\"0\",\"create\":\"0\"},\"bulk-uploads\":{\"read\":\"0\",\"create\":\"0\"},\"categories\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"brands\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"units\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"product-models\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"stocks\":{\"read\":\"0\",\"price\":\"0\"},\"expired-products\":{\"read\":\"0\"},\"parties\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"incomes\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"income-categories\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"expenses\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"expense-categories\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"vats\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"dues\":{\"read\":\"0\"},\"subscriptions\":{\"read\":\"0\"},\"loss-profits\":{\"read\":\"0\"},\"payment-types\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"roles\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"manage-settings\":{\"read\":\"0\",\"update\":\"0\"},\"download-apk\":{\"read\":\"0\"},\"sale-reports\":{\"read\":\"0\"},\"sale-return-reports\":{\"read\":\"0\"},\"purchase-reports\":{\"read\":\"0\"},\"purchase-return-reports\":{\"read\":\"0\"},\"vat-reports\":{\"read\":\"0\"},\"income-reports\":{\"read\":\"0\"},\"expense-reports\":{\"read\":\"0\"},\"loss-profits-details\":{\"read\":\"0\"},\"stock-reports\":{\"read\":\"0\"},\"due-reports\":{\"read\":\"0\"},\"supplier-due-reports\":{\"read\":\"0\"},\"loss-profit-reports\":{\"read\":\"0\"},\"transaction-history-reports\":{\"read\":\"0\"},\"subscription-reports\":{\"read\":\"0\"},\"expired-product-reports\":{\"read\":\"0\",\"price\":\"0\"},\"banks\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"cashes\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"cheques\":{\"read\":\"0\"},\"loss-profit-history\":{\"read\":\"0\"},\"day-book-reports\":{\"read\":\"0\"},\"cash-flow-reports\":{\"read\":\"0\"},\"bill-wise-profits\":{\"read\":\"0\"},\"transactions\":{\"read\":\"0\"},\"product-loss-profit-reports\":{\"read\":\"0\"},\"top-customers-reports\":{\"read\":\"0\"},\"top-suppliers-reports\":{\"read\":\"0\"},\"top-product-reports\":{\"read\":\"0\"},\"combo-product-reports\":{\"read\":\"0\"},\"discount-product-reports\":{\"read\":\"0\"},\"product-purchase-reports\":{\"read\":\"0\"},\"product-sale-reports\":{\"read\":\"0\"},\"customer-ledger\":{\"read\":\"0\"},\"supplier-ledger\":{\"read\":\"0\"},\"party-loss-profit\":{\"read\":\"0\"},\"loss-profit-history-reports\":{\"read\":\"0\"},\"product-sale-history-reports\":{\"read\":\"0\"},\"product-purchase-history-reports\":{\"read\":\"0\"}}', 0, NULL, NULL, '$2y$10$VMWbJDZR9xxNxYX4RJiSLujTBjd47TogkD2Hj7AkmdkYTWs2f6eqG', NULL, NULL, NULL, '2026-02-22 01:00:13', '2026-02-24 15:11:49');
|
|
||||||
INSERT INTO `users` VALUES (12, 9, NULL, NULL, 'yantoseko@gmail.com', NULL, 'shop-owner', NULL, NULL, 'en', NULL, 1, NULL, NULL, '$2y$10$gEyXnfH2PobS8r0wRhU5C.xsd0UpU15zeqSNaZB3EN9gSQoBHB.wC', NULL, '2026-03-12 23:09:47', '1hT1ophJALRoSOHnfaZtIcDPu3xR2qAsrgSpYPSkknaXTKVUe7qSMKenj8J3', '2026-02-25 23:49:12', '2026-03-12 22:11:17');
|
|
||||||
INSERT INTO `users` VALUES (13, 10, NULL, 2, 'kasir.toko.1@gmail.com', 'Kasir Toko 1', 'staff', NULL, NULL, NULL, '{\"dashboard\":{\"read\":\"1\"},\"sales\":{\"read\":\"1\",\"create\":\"1\",\"update\":\"1\",\"delete\":\"1\"},\"inventory\":{\"read\":\"1\",\"create\":\"1\"},\"sale-returns\":{\"read\":\"1\",\"create\":\"1\"},\"purchases\":{\"read\":\"1\",\"create\":\"1\",\"update\":\"1\",\"delete\":\"1\",\"price\":\"1\"},\"purchase-returns\":{\"read\":\"1\",\"create\":\"1\",\"price\":\"1\"},\"products\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\",\"price\":\"0\"},\"products-expired\":{\"read\":\"0\",\"price\":\"0\"},\"barcodes\":{\"read\":\"0\",\"create\":\"0\"},\"bulk-uploads\":{\"read\":\"0\",\"create\":\"0\"},\"categories\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"brands\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"units\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"product-models\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"variations\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"stocks\":{\"read\":\"0\",\"price\":\"0\"},\"expired-products\":{\"read\":\"0\"},\"parties\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"incomes\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"income-categories\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"expenses\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"expense-categories\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"vats\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"dues\":{\"read\":\"0\"},\"subscriptions\":{\"read\":\"0\"},\"loss-profits\":{\"read\":\"0\"},\"payment-types\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"roles\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"manage-settings\":{\"read\":\"0\",\"update\":\"0\"},\"download-apk\":{\"read\":\"0\"},\"sale-reports\":{\"read\":\"0\"},\"sale-return-reports\":{\"read\":\"0\"},\"purchase-reports\":{\"read\":\"0\"},\"purchase-return-reports\":{\"read\":\"0\"},\"vat-reports\":{\"read\":\"0\"},\"income-reports\":{\"read\":\"0\"},\"expense-reports\":{\"read\":\"0\"},\"loss-profits-details\":{\"read\":\"0\"},\"stock-reports\":{\"read\":\"0\"},\"due-reports\":{\"read\":\"0\"},\"supplier-due-reports\":{\"read\":\"0\"},\"loss-profit-reports\":{\"read\":\"0\"},\"transaction-history-reports\":{\"read\":\"0\"},\"subscription-reports\":{\"read\":\"0\"},\"expired-product-reports\":{\"read\":\"0\",\"price\":\"0\"},\"banks\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"cashes\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"cheques\":{\"read\":\"0\"},\"loss-profit-history\":{\"read\":\"0\"},\"day-book-reports\":{\"read\":\"0\"},\"cash-flow-reports\":{\"read\":\"0\"},\"bill-wise-profits\":{\"read\":\"0\"},\"transactions\":{\"read\":\"0\"},\"product-loss-profit-reports\":{\"read\":\"0\"},\"top-customers-reports\":{\"read\":\"0\"},\"top-suppliers-reports\":{\"read\":\"0\"},\"top-product-reports\":{\"read\":\"0\"},\"combo-product-reports\":{\"read\":\"0\"},\"discount-product-reports\":{\"read\":\"0\"},\"product-purchase-reports\":{\"read\":\"0\"},\"product-sale-reports\":{\"read\":\"0\"},\"customer-ledger\":{\"read\":\"0\"},\"supplier-ledger\":{\"read\":\"0\"},\"party-loss-profit\":{\"read\":\"0\"},\"loss-profit-history-reports\":{\"read\":\"0\"},\"product-sale-history-reports\":{\"read\":\"0\"},\"product-purchase-history-reports\":{\"read\":\"0\"},\"warehouses\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"transfers\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"racks\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"},\"shelfs\":{\"read\":\"0\",\"create\":\"0\",\"update\":\"0\",\"delete\":\"0\"}}', 0, NULL, NULL, '$2y$10$WfS2F/Jj55I1jEsu6BEioedaDLzjzVPmDS3N2GeLzEPqMh.XM1nNm', NULL, NULL, NULL, '2026-02-26 15:27:06', '2026-02-26 15:27:06');
|
|
||||||
INSERT INTO `users` VALUES (14, 11, NULL, NULL, 'releeclothingsocialmedia@gmail.com', 'ReleeClothing', 'shop-owner', '083871304897', NULL, 'en', NULL, 1, NULL, NULL, '$2y$10$o6yx/lIoen2UxfnugFiTY.C7uEcYVMydv/sqh2BdzikYNajrZXT/O', NULL, '2026-03-05 22:56:35', 'drAzRPiSaggXxhRnuYbXsPXMDhUGymyXHKs90iTbMHQ4OBuH8BeAPTKrPEpq', '2026-03-05 22:56:09', '2026-03-05 23:03:18');
|
|
||||||
INSERT INTO `users` VALUES (15, NULL, NULL, NULL, 'test@example.com', 'Test User', 'shop-owner', NULL, NULL, NULL, NULL, 0, NULL, NULL, '$2y$10$rD3AymUbP7sp.w7ksHwIX.BPTwp6bgShaNZ63LMGr9tmcqdQoXR9y', NULL, '2026-03-09 18:49:06', '179448', '2026-03-09 17:47:23', '2026-03-09 17:49:06');
|
|
||||||
INSERT INTO `users` VALUES (16, 13, NULL, NULL, 'jasakoding0@gmail.com', 'Sari', 'shop-owner', '089627921934', NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$eXQ9nD6MGO1rPQRGGmqsyuoLNsI9NMQiiS7LkkU8ENCp6WDipIDHm', NULL, '2026-03-09 22:12:19', NULL, '2026-03-09 22:11:51', '2026-03-09 22:45:03');
|
|
||||||
INSERT INTO `users` VALUES (17, NULL, NULL, NULL, 'rebecca.c.k19@gmail.com', 'Rebecca Claudia', 'shop-owner', NULL, NULL, NULL, NULL, 0, NULL, NULL, '$2y$10$xZxTLR7vLTLAxjmnt0prG.EmtD2ys.ztVoUGZiE85IeNL9JX5ewaS', NULL, '2026-03-11 14:18:43', '787328', '2026-03-11 14:16:43', '2026-03-11 14:16:43');
|
|
||||||
INSERT INTO `users` VALUES (18, 14, NULL, NULL, 'malini240397@gmail.com', 'Mteam', 'shop-owner', '082377355343', NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$ErL007Wrbtd99//jwgGWO.w/mj73JsL.TVidVAf8Ao9z7R9IvK5Ju', NULL, '2026-03-11 15:28:00', NULL, '2026-03-11 15:26:59', '2026-03-11 15:29:08');
|
|
||||||
INSERT INTO `users` VALUES (19, 15, NULL, NULL, 'wesly.doank@gmail.com', NULL, 'shop-owner', NULL, NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$U9IzyVI7P5jQqnz8hIEa0.sMaAVgJkV4JPT4JtWgcQYTu5y5SDzyG', NULL, '2026-03-12 13:01:33', NULL, '2026-03-12 13:00:46', '2026-03-12 13:03:15');
|
|
||||||
INSERT INTO `users` VALUES (20, 16, NULL, NULL, 'wesly.ezc@gmail.com', 'EZC', 'shop-owner', '081319464797', NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$ruDAEwCumRI40aWE2Es9ienS6K5/xhFLDZyejgY3sUpPeeN1bZ5U2', NULL, '2026-03-12 13:15:46', NULL, '2026-03-12 13:06:22', '2026-03-12 13:18:47');
|
|
||||||
INSERT INTO `users` VALUES (21, 17, NULL, NULL, 'suryamalemta93@gmail.com', 'Ojodumeh', 'shop-owner', '085810393314', NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$BwDb.zFz.J6RLCskU6h6TOUvrGxsVvMuTBvy76Ap7OKBEKs2/28ee', NULL, '2026-03-12 19:26:47', NULL, '2026-03-12 19:26:12', '2026-03-15 17:35:22');
|
|
||||||
INSERT INTO `users` VALUES (22, 18, NULL, NULL, 'weslywaynehambuako@gmail.com', 'Wayne Shop', 'shop-owner', '081319464797', NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$iz5FCDPBUeLhbel/agKOwO5BFcGe80eSjUSiT0OssUtQrRvtXrYKS', NULL, '2026-03-12 20:44:49', NULL, '2026-03-12 20:43:54', '2026-03-12 20:46:35');
|
|
||||||
INSERT INTO `users` VALUES (23, 19, NULL, NULL, 'rebecadjazz@gmail.com', 'RÉLEE CLOTHING', 'shop-owner', '083871304897', NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$fbld3QZph.1oLxOIlJrUneKrxUGlgkuS.y/a7JfwWJvCYYy0LTlCi', NULL, '2026-03-12 20:53:16', NULL, '2026-03-12 20:52:50', '2026-03-12 20:53:59');
|
|
||||||
INSERT INTO `users` VALUES (24, 20, NULL, NULL, 'beatricecharista15@gmail.com', 'Dear Cha', 'shop-owner', '088210366494', NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$Kyrc9Q05sWMt2zXEwB7kgOMxvbYDnIpCBvmog/CPhYC6SdK1Ybi76', NULL, '2026-03-12 20:57:45', NULL, '2026-03-12 20:57:22', '2026-03-12 21:00:03');
|
|
||||||
INSERT INTO `users` VALUES (25, 21, NULL, NULL, '3ko.sariyanto@gmail.com', 'Warung Sri', 'shop-owner', '089627921934', NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$usDt834qHdcE4q.8G8WmtOqeY.XQS/i5HcfMUf6dtrS/J/LXOfHIK', NULL, '2026-03-12 22:07:42', NULL, '2026-03-12 22:07:01', '2026-03-12 22:08:13');
|
|
||||||
INSERT INTO `users` VALUES (26, 22, NULL, NULL, 'ekoaripurnomo@gmail.com', 'Kenartoys', 'shop-owner', '6285289372939', NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$PwZ8sKM35HkyocbY9znIMOD.cZpDOWTKxgmkjGt2P1iLKJyJUHhZK', NULL, '2026-03-13 07:07:42', NULL, '2026-03-13 07:07:00', '2026-03-13 07:09:12');
|
|
||||||
INSERT INTO `users` VALUES (27, 23, NULL, NULL, 'tri.agung.biantoro@gmail.com', 'Nusa Coffee', 'shop-owner', '085279002200', NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$qwj/jWrVOrVY3cwrseDt/u.UVSghRJxnwK5qHcc.u8RvKI294vxse', NULL, '2026-03-13 10:23:26', NULL, '2026-03-13 10:23:07', '2026-03-13 10:24:29');
|
|
||||||
INSERT INTO `users` VALUES (28, 24, NULL, NULL, 'cferdy89@gmail.com', 'Chris', 'shop-owner', '082112825462', NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$YgnTYv1w/7bGiYmMQo8fpuUmJxM6fTeV0DFr.bKr33jKQHYpKlpy.', NULL, '2026-03-13 23:45:57', NULL, '2026-03-13 23:45:32', '2026-03-13 23:46:50');
|
|
||||||
INSERT INTO `users` VALUES (29, 25, NULL, NULL, 'siobaysobari@gmail.com', 'Toko', 'shop-owner', '089627921934', NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$KaOOQX2P5wgpTR.G2LumVOjmamFWnqXzRqO2Xq1iYSxKEK/tx.m0i', NULL, '2026-03-14 11:03:01', NULL, '2026-03-14 11:02:38', '2026-03-14 11:03:24');
|
|
||||||
INSERT INTO `users` VALUES (30, NULL, NULL, NULL, 'npramono@gmail.com', NULL, 'shop-owner', NULL, NULL, NULL, NULL, 0, NULL, NULL, '$2y$10$aIqi/YM0tCvdPCV5bajQeOXmWHqoRgL/.40U50Be8cze8IHvjyw2.', NULL, '2026-03-16 11:00:54', '168353', '2026-03-16 10:58:54', '2026-03-16 10:58:54');
|
|
||||||
INSERT INTO `users` VALUES (31, 26, NULL, NULL, 'npramono124@gmail.com', 'Tea Leaf', 'shop-owner', '081298103685', NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$m43rnZ6NuZ.avtsjE0H.quZeV08UR9Zn2wtyuje20mmlaVu46bsNO', NULL, '2026-03-16 11:11:59', NULL, '2026-03-16 10:59:53', '2026-03-16 11:12:33');
|
|
||||||
INSERT INTO `users` VALUES (32, 27, NULL, NULL, 'oneteknologi.ginting@gmail.com', 'One Shop', 'shop-owner', '081310195804', NULL, NULL, NULL, 1, NULL, NULL, '$2y$10$qqlXAAn2nN9uk.EvfeTtG.mqxP7qTH9UBLvH4ACUotlAAXsX5gcXu', NULL, '2026-03-18 13:38:22', NULL, '2026-03-18 13:37:51', '2026-03-18 13:39:00');
|
|
||||||
INSERT INTO `users` VALUES (33, 28, NULL, NULL, 'ginting.meus@gmail.com', NULL, 'shop-owner', NULL, NULL, 'en', NULL, 1, NULL, NULL, '$2y$10$Cj2KVWfLk0VGRABppHOL9evHB35jP.rhVurvucUzjgkHAdw1UJ7lq', NULL, '2026-03-29 20:32:11', NULL, '2026-03-29 20:31:45', '2026-03-29 20:53:52');
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for variations
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `variations`;
|
|
||||||
CREATE TABLE `variations` (
|
|
||||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
||||||
`business_id` bigint(20) UNSIGNED NOT NULL,
|
|
||||||
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
||||||
`status` tinyint(1) NOT NULL DEFAULT 1,
|
|
||||||
`values` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
||||||
`created_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`updated_at` timestamp NULL DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`) USING BTREE,
|
|
||||||
INDEX `variations_business_id_foreign`(`business_id` ASC) USING BTREE,
|
|
||||||
CONSTRAINT `variations_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
|
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of variations
|
|
||||||
-- ----------------------------
|
|
||||||
INSERT INTO `variations` VALUES (4, 10, 'ICE', 1, '[]', '2026-03-02 16:26:16', '2026-03-02 16:26:16');
|
|
||||||
INSERT INTO `variations` VALUES (5, 10, 'HOT', 1, '[]', '2026-03-02 16:26:22', '2026-03-02 16:26:22');
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for vats
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `vats`;
|
|
||||||
CREATE TABLE `vats` (
|
|
||||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
||||||
`business_id` bigint(20) UNSIGNED NOT NULL,
|
|
||||||
`rate` double NOT NULL DEFAULT 0,
|
|
||||||
`sub_vat` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`status` tinyint(1) NOT NULL DEFAULT 1,
|
|
||||||
`created_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`updated_at` timestamp NULL DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`) USING BTREE,
|
|
||||||
INDEX `vats_business_id_foreign`(`business_id` ASC) USING BTREE,
|
|
||||||
CONSTRAINT `vats_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
|
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of vats
|
|
||||||
-- ----------------------------
|
|
||||||
INSERT INTO `vats` VALUES (3, 'pb1', 2, 10, NULL, 1, '2026-02-08 12:26:34', '2026-02-08 12:26:34');
|
|
||||||
INSERT INTO `vats` VALUES (4, 'ppn', 2, 11, NULL, 1, '2026-02-08 12:26:51', '2026-02-08 12:26:51');
|
|
||||||
INSERT INTO `vats` VALUES (5, 'PPN', 8, 11, NULL, 1, '2026-02-21 10:54:57', '2026-02-21 10:54:57');
|
|
||||||
INSERT INTO `vats` VALUES (6, 'PB1', 8, 10, NULL, 1, '2026-02-21 10:55:13', '2026-02-21 10:55:13');
|
|
||||||
INSERT INTO `vats` VALUES (7, 'PPN', 10, 11, NULL, 1, '2026-02-26 15:05:22', '2026-02-26 15:05:22');
|
|
||||||
INSERT INTO `vats` VALUES (8, 'PB1', 10, 10, NULL, 1, '2026-03-09 10:46:01', '2026-03-09 10:46:01');
|
|
||||||
INSERT INTO `vats` VALUES (9, 'PPN', 27, 11, NULL, 1, '2026-03-20 08:41:42', '2026-03-20 08:41:42');
|
|
||||||
INSERT INTO `vats` VALUES (10, 'PB1', 27, 10, NULL, 1, '2026-03-20 08:41:56', '2026-03-20 08:41:56');
|
|
||||||
INSERT INTO `vats` VALUES (11, 'PPN', 9, 11, NULL, 1, '2026-03-28 11:15:03', '2026-03-28 11:15:03');
|
|
||||||
INSERT INTO `vats` VALUES (12, 'PPN', 28, 11, NULL, 1, '2026-03-29 20:39:51', '2026-03-29 20:39:51');
|
|
||||||
INSERT INTO `vats` VALUES (13, 'PB1', 28, 10, NULL, 1, '2026-03-29 20:40:01', '2026-03-29 20:40:01');
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for warehouses
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `warehouses`;
|
|
||||||
CREATE TABLE `warehouses` (
|
|
||||||
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
||||||
`business_id` bigint(20) UNSIGNED NOT NULL,
|
|
||||||
`branch_id` bigint(20) UNSIGNED NULL DEFAULT NULL,
|
|
||||||
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
||||||
`phone` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`address` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
|
|
||||||
`created_at` timestamp NULL DEFAULT NULL,
|
|
||||||
`updated_at` timestamp NULL DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`id`) USING BTREE,
|
|
||||||
INDEX `warehouses_business_id_foreign`(`business_id` ASC) USING BTREE,
|
|
||||||
INDEX `warehouses_branch_id_foreign`(`branch_id` ASC) USING BTREE,
|
|
||||||
CONSTRAINT `warehouses_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,
|
|
||||||
CONSTRAINT `warehouses_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `businesses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
|
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of warehouses
|
|
||||||
-- ----------------------------
|
|
||||||
INSERT INTO `warehouses` VALUES (1, 8, 1, 'Main Warehouse', '081310195804', 'onedirac@gmail.com', 'Legok', '2026-02-26 09:19:52', '2026-02-26 09:20:12');
|
|
||||||
INSERT INTO `warehouses` VALUES (2, 8, 1, 'Shop Warehouse', '081310195804', 'meus.ginting@gmail.com', 'BSD', '2026-02-26 09:20:44', '2026-02-26 09:20:44');
|
|
||||||
INSERT INTO `warehouses` VALUES (3, 10, 1, 'Production', '081310195804', 'onedirac@gmail.com', 'Legok', '2026-02-26 09:28:50', '2026-02-26 09:28:50');
|
|
||||||
INSERT INTO `warehouses` VALUES (4, 10, 2, 'Toko 5 Roti & 2 Ikan', '081310195804', 'store1@gmail.com', 'BSD', '2026-02-26 09:29:28', '2026-02-26 09:29:28');
|
|
||||||
INSERT INTO `warehouses` VALUES (5, 14, NULL, 'meon meon', '082377355343', 'malini240397@gmail.com', 'Legok kab tangerang', '2026-03-11 18:44:37', '2026-03-11 18:44:37');
|
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
|
||||||
Reference in New Issue
Block a user