-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpawn_testdb_cashbook.sql
More file actions
57 lines (50 loc) · 7.14 KB
/
pawn_testdb_cashbook.sql
File metadata and controls
57 lines (50 loc) · 7.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
-- MySQL dump 10.13 Distrib 8.0.41, for macos15 (arm64)
--
-- Host: localhost Database: pawn_testdb
-- ------------------------------------------------------
-- Server version 9.2.0
/*!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 utf8 */;
/*!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 `cashbook`
--
DROP TABLE IF EXISTS `cashbook`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `cashbook` (
`CashbookID` int NOT NULL AUTO_INCREMENT,
`UserID` int DEFAULT NULL,
`TransactionType` enum('credit','debit') DEFAULT NULL,
`CashBookNote` varchar(255) DEFAULT NULL,
`Amount` decimal(10,2) DEFAULT NULL,
`TransactionDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`CashbookID`),
KEY `UserID` (`UserID`),
CONSTRAINT `cashbook_ibfk_1` FOREIGN KEY (`UserID`) REFERENCES `users` (`UserID`)
) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cashbook`
--
LOCK TABLES `cashbook` WRITE;
/*!40000 ALTER TABLE `cashbook` DISABLE KEYS */;
INSERT INTO `cashbook` VALUES (1,3,'debit','Give Loan for Pawn Item',120000.00,'2025-02-01 13:35:10'),(2,3,'debit','Give Loan for Pawn Item',180000.00,'2025-02-01 14:36:45'),(3,3,'debit','Give Loan for Pawn Item',180000.00,'2025-02-01 19:37:17'),(4,3,'credit','Pawn Item Interest Fee Payment',805118.72,'2025-02-03 09:05:13'),(5,3,'credit','Pawn Item Interest Fee Payment',805118.72,'2025-02-03 09:09:06'),(6,3,'credit','Pawn Item Interest Fee Payment',805118.72,'2025-02-03 09:10:15'),(7,3,'credit','Pawn Item Interest Fee Payment',805118.72,'2025-02-03 09:11:04'),(8,3,'credit','Pawn Item Interest Fee Payment',805118.72,'2025-02-03 09:13:45'),(9,3,'credit','Pawn Item Interest Fee Payment',805118.72,'2025-02-03 09:19:28'),(10,3,'credit','Pawn Item Interest Fee Payment',805118.72,'2025-02-03 09:22:56'),(11,3,'debit','Office Rent Payment',25000.00,'2025-02-03 10:31:21'),(12,5,'debit','Give Loan for Pawn Item',870.00,'2025-03-16 05:44:06'),(13,5,'debit','Give Loan for Pawn Item',400.00,'2025-03-16 05:50:07'),(14,5,'debit','Give Loan for Pawn Item',800.00,'2025-03-16 05:53:44'),(15,5,'debit','Give Loan for Pawn Item',1200.00,'2025-03-16 05:57:05'),(16,5,'debit','Give Loan for Pawn Item',3000.00,'2025-03-16 06:04:36'),(17,5,'debit','Give Loan for Pawn Item',900.00,'2025-03-16 06:12:27'),(18,5,'debit','Give Loan for Pawn Item',890.00,'2025-03-16 06:33:03'),(19,5,'debit','Give Loan for Pawn Item',423.00,'2025-03-21 04:24:38'),(20,5,'debit','Give Loan for Pawn Item',430.00,'2025-03-30 12:47:32'),(21,5,'credit','Pawn Item Interest Fee Payment',892.38,'2025-03-30 13:07:39'),(22,5,'credit','Pawn Item Interest Fee Payment',892.38,'2025-03-30 13:07:52'),(23,5,'credit','Pawn Item Interest Fee Payment',100.00,'2025-03-30 13:11:09'),(24,5,'credit','Pawn Item Interest Fee Payment',1000.00,'2025-03-30 13:13:58'),(25,5,'debit','Give Loan for Pawn Item',1000.00,'2025-03-31 07:00:15'),(26,5,'debit','Give Loan for Pawn Item',200.00,'2025-03-31 07:18:59'),(27,5,'debit','Give Loan for Pawn Item',326.00,'2025-03-31 07:45:39'),(28,7,'debit','Give Loan for Pawn Item',1000.00,'2025-03-31 08:58:08'),(29,7,'debit','Give Loan for Pawn Item',1000.00,'2025-03-31 11:44:07'),(30,5,'credit','Pawn Item Interest Fee Payment',2016.00,'2025-03-31 14:35:25'),(31,5,'credit','Pawn Item Interest Fee Payment',3000.00,'2025-03-31 15:10:02'),(32,5,'credit','Pawn Item Interest Fee Payment',6000.00,'2025-03-31 15:11:12'),(33,5,'credit','Pawn Item Interest Fee Payment',325.24,'2025-03-31 15:22:08'),(34,5,'credit','Pawn Item Interest Fee Payment',423.00,'2025-04-01 02:45:12'),(35,5,'credit','Pawn Item Interest Fee Payment',1208.00,'2025-04-01 02:56:42'),(36,5,'credit','Pawn Item Interest Fee Payment',0.43,'2025-04-01 02:58:42'),(37,5,'credit','Pawn Item Interest Fee Payment',100.00,'2025-04-01 14:47:33'),(38,5,'credit','Pawn Item Interest Fee Payment',705.35,'2025-04-01 17:43:31'),(39,7,'credit','Pawn Item Interest Fee Payment',500.00,'2025-04-01 17:48:56'),(40,7,'debit','Give Loan for Pawn Item',200.00,'2025-04-01 19:24:36'),(41,7,'debit','Give Loan for Pawn Item',1000.00,'2025-04-01 19:35:44'),(42,7,'credit','Pawn Item Interest Fee Payment',501.33,'2025-04-01 19:47:00'),(43,5,'debit','Get Cash Personal Matter',2000.00,'2025-04-02 10:53:50'),(44,5,'debit','Get Cash Personal Matter',3000.00,'2025-04-02 10:54:13'),(45,5,'debit','Give Loan for Pawn Item',500.00,'2025-04-02 14:31:51'),(46,5,'debit','Give Loan for Pawn Item',899.00,'2025-04-02 14:56:24'),(47,5,'debit','Give Loan for Pawn Item',2000.00,'2025-04-02 15:10:19'),(48,7,'debit','Give Loan for Pawn Item',900.00,'2025-04-02 15:20:34'),(49,7,'debit','Give Loan for Pawn Item',800.00,'2025-04-02 15:30:28'),(50,5,'credit','Pawn Item Interest Fee Payment',0.27,'2025-04-02 17:59:48'),(51,5,'credit','Pawn Item Interest Fee Payment',100.00,'2025-04-02 18:01:09'),(52,5,'credit','Pawn Item Interest Fee Payment',1.67,'2025-04-03 12:35:10'),(53,5,'credit','Pawn Item Interest Fee Payment',100.00,'2025-04-03 12:42:02'),(54,5,'credit','Pawn Item Interest Fee Payment',100.00,'2025-04-03 12:43:48'),(55,5,'debit','Get Money Personal Matter',2000.00,'2025-04-03 14:39:06'),(56,5,'credit','Money Input for Pawning Center',200000.00,'2025-04-03 14:40:20'),(57,5,'debit','Get Money for Personal Matter',2000.00,'2025-04-03 14:49:33'),(58,7,'credit','Cash In for Pawning Center',20000.00,'2025-04-04 04:17:14'),(59,7,'debit','Give Loan for Pawn Item',997.00,'2025-05-25 16:00:51'),(60,7,'credit','Pawn Item Interest Fee Payment',100.00,'2025-05-25 16:02:59'),(61,7,'debit','Give Loan for Pawn Item',400.00,'2025-05-25 17:31:18'),(62,7,'credit','Pawn Item Interest Fee Payment',100.00,'2025-05-25 17:34:54'),(63,7,'credit','Pawn Item Interest Fee Payment',300.00,'2025-05-25 17:36:21'),(64,7,'debit','Get Personal Cash',100.00,'2025-05-25 17:37:41'),(65,7,'debit','Give Loan for Pawn Item',500.00,'2025-05-26 04:53:15'),(66,7,'credit','Pawn Item Interest Fee Payment',100.00,'2025-05-26 04:55:39'),(67,7,'credit','Pawn Item Interest Fee Payment',400.00,'2025-05-26 04:56:26'),(68,7,'debit','my personal happen',200.00,'2025-05-26 04:57:24');
/*!40000 ALTER TABLE `cashbook` 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 2025-05-26 18:00:59