auto: agent DB backup 20260904
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -211,7 +211,7 @@ CREATE TABLE `liabilities` (
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `member_id` (`member_id`),
|
||||
CONSTRAINT `liabilities_ibfk_1` FOREIGN KEY (`member_id`) REFERENCES `family_members` (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
@@ -220,9 +220,85 @@ CREATE TABLE `liabilities` (
|
||||
|
||||
LOCK TABLES `liabilities` WRITE;
|
||||
/*!40000 ALTER TABLE `liabilities` DISABLE KEYS */;
|
||||
INSERT INTO `liabilities` VALUES (1,2,'房贷',257197.80,2.60,69,3963.90,'首套住房商业贷款, 账号0900061210000040982, 等额本息, 剩本金25.7万, 2032-06到期','2026-09-03 03:30:30');
|
||||
/*!40000 ALTER TABLE `liabilities` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `mortgage_loans`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `mortgage_loans`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `mortgage_loans` (
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
`member_id` int DEFAULT NULL,
|
||||
`loan_name` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '贷款名称/购房用途(如首套房)',
|
||||
`total_principal` decimal(14,2) DEFAULT NULL COMMENT '贷款原始总额',
|
||||
`outstanding_principal` decimal(14,2) DEFAULT NULL COMMENT '当前剩余本金',
|
||||
`annual_rate` decimal(6,4) DEFAULT NULL COMMENT '年利率(如3.10)',
|
||||
`loan_term_months` int DEFAULT NULL COMMENT '贷款总期数(月)',
|
||||
`remaining_months` int DEFAULT NULL COMMENT '剩余期数',
|
||||
`monthly_payment` decimal(12,2) DEFAULT NULL COMMENT '等额本息月供',
|
||||
`repayment_day` int DEFAULT NULL COMMENT '每月扣款日',
|
||||
`loan_start_date` date DEFAULT NULL COMMENT '放款/起始日期',
|
||||
`interest_type` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'LPR浮动/固定/公积金',
|
||||
`prepayment_total` decimal(14,2) DEFAULT '0.00' COMMENT '累计已提前还款',
|
||||
`note` text COLLATE utf8mb4_unicode_ci,
|
||||
`is_active` tinyint(1) DEFAULT '1',
|
||||
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `member_id` (`member_id`),
|
||||
CONSTRAINT `mortgage_loans_ibfk_1` FOREIGN KEY (`member_id`) REFERENCES `family_members` (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `mortgage_loans`
|
||||
--
|
||||
|
||||
LOCK TABLES `mortgage_loans` WRITE;
|
||||
/*!40000 ALTER TABLE `mortgage_loans` DISABLE KEYS */;
|
||||
INSERT INTO `mortgage_loans` VALUES (1,2,'首套住房贷款(合同0900061210000040982)',730000.00,257197.80,2.6000,NULL,NULL,3963.90,15,'2020-08-18','商业贷款(低息)',0.00,'合同于2032-06-17结束; 提前还款仅MEMORY记录2026年约3万级; 当前利率2.60%极低',1,'2026-09-03 03:30:23','2026-09-03 03:30:23');
|
||||
/*!40000 ALTER TABLE `mortgage_loans` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `mortgage_payments`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `mortgage_payments`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `mortgage_payments` (
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
`loan_id` int DEFAULT NULL,
|
||||
`period_date` date DEFAULT NULL COMMENT '该期应还/记录日期',
|
||||
`principal` decimal(12,2) DEFAULT NULL COMMENT '当期还本',
|
||||
`interest` decimal(12,2) DEFAULT NULL COMMENT '当期还息',
|
||||
`total_payment` decimal(12,2) DEFAULT NULL COMMENT '当期总额',
|
||||
`outstanding_after` decimal(14,2) DEFAULT NULL COMMENT '还后剩余本金',
|
||||
`is_prepayment` tinyint(1) DEFAULT '0',
|
||||
`note` text COLLATE utf8mb4_unicode_ci,
|
||||
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `loan_id` (`loan_id`),
|
||||
CONSTRAINT `mortgage_payments_ibfk_1` FOREIGN KEY (`loan_id`) REFERENCES `mortgage_loans` (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `mortgage_payments`
|
||||
--
|
||||
|
||||
LOCK TABLES `mortgage_payments` WRITE;
|
||||
/*!40000 ALTER TABLE `mortgage_payments` DISABLE KEYS */;
|
||||
INSERT INTO `mortgage_payments` VALUES (1,1,'2026-09-15',3406.64,557.26,3963.90,253791.16,0,'等额本息常规月供','2026-09-03 03:30:23');
|
||||
/*!40000 ALTER TABLE `mortgage_payments` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `variable_expenses`
|
||||
--
|
||||
@@ -271,4 +347,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2026-09-02 19:00:01
|
||||
-- Dump completed on 2026-09-03 19:00:01
|
||||
|
||||
Reference in New Issue
Block a user