-- MySQL dump 10.13  Distrib 8.0.44, for Linux (x86_64)
--
-- Host: localhost    Database: repayment
-- ------------------------------------------------------
-- Server version	8.0.44-0ubuntu0.22.04.1

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `set_loan_tt`
--

DROP TABLE IF EXISTS `set_loan_tt`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `set_loan_tt` (
  `set_loan_tt_id` int NOT NULL AUTO_INCREMENT,
  `set_loan_tt_student` int NOT NULL,
  `set_loan_tt_rivision` int NOT NULL,
  `set_loan_tt_op_balance` int DEFAULT NULL,
  `set_loan_tt_check_day_set` text,
  `set_loan_tt_paid_per_month` int DEFAULT NULL,
  `set_loan_tt_interest` text,
  `set_loan_tt_repayment` text,
  `set_loan_tt_amount_paid` text,
  `set_loan_tt_amount_interest` text,
  `set_loan_tt_no_inst_approved` text,
  `set_loan_tt_no_inst_paid` text,
  `set_loan_tt_no_inst_remain` text,
  `set_loan_tt_no_status` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
  `set_loan_tt_payment_date` text NOT NULL,
  `set_loan_tt_interest_rate` text NOT NULL,
  `set_loan_tt_total_interest_in_rev` text,
  `set_loan_tt_total_payment_installment_in_rev` text,
  `set_loan_tt_total_paid_per_month_for_cal_in_rev` text,
  `set_loan_tt_op_balance_current` text,
  `set_loan_tt_op_balance_next` text,
  `set_loan_tt_table` text,
  `set_loan_tt_payment_date_set` text,
  `set_loan_tt_exec_no` text COMMENT 'ถ้า revise',
  `set_loan_tt_exec_date` text COMMENT 'ถ้า revise',
  `updated_table` datetime DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  PRIMARY KEY (`set_loan_tt_id`)
) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `set_loan_tt`
--

LOCK TABLES `set_loan_tt` WRITE;
/*!40000 ALTER TABLE `set_loan_tt` DISABLE KEYS */;
INSERT INTO `set_loan_tt` VALUES (63,102,1,45000,'Yes',4500,'207.28','45207.28','13500.00','31500','10','10','0','Active','2025-01','1','207.28','44792.72','45000.00','31,601.34','207.28','[{\"receipt_no\":\"a1\",\"receipt_date\":\"2025-07-01\",\"amount\":\"4500\"},{\"receipt_no\":\"a2\",\"receipt_date\":\"2025-07-16\",\"amount\":\"4500\"},{\"receipt_no\":\"a3\",\"receipt_date\":\"2025-07-30\",\"amount\":\"4500\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"}]',NULL,NULL,NULL,'2025-07-25 14:12:15','2025-07-23 14:55:19','2025-07-23 14:55:19'),(64,105,1,25000,'Yes',1000,'274.47','25274.47','1000.00','24000','25','25','0','Active','2025-01','1','274.47','24725.53','25000.00','24,020.83','274.47','[{\"receipt_no\":\"a1\",\"receipt_date\":\"2025-07-01\",\"amount\":\"1000\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"},{\"receipt_no\":\"null\",\"receipt_date\":\"null\",\"amount\":\"0.00\"}]',NULL,NULL,NULL,'2025-07-24 10:23:36','2025-07-24 10:23:05','2025-07-24 10:23:05');
/*!40000 ALTER TABLE `set_loan_tt` 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-12-05 10:00:11
