diff --git a/workspace-finances/db/finances_20260804.sql.gz b/workspace-finances/db/finances_20260804.sql.gz deleted file mode 100644 index b1627b4..0000000 Binary files a/workspace-finances/db/finances_20260804.sql.gz and /dev/null differ diff --git a/workspace-finances/db/finances_20260904.sql.gz b/workspace-finances/db/finances_20260904.sql.gz new file mode 100644 index 0000000..6c6f1da Binary files /dev/null and b/workspace-finances/db/finances_20260904.sql.gz differ diff --git a/workspace-finances/db/finances_latest.sql b/workspace-finances/db/finances_latest.sql index 931a479..5a00acb 100644 --- a/workspace-finances/db/finances_latest.sql +++ b/workspace-finances/db/finances_latest.sql @@ -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 diff --git a/workspace-fitness/db/fitness_20260804.sql.gz b/workspace-fitness/db/fitness_20260804.sql.gz deleted file mode 100644 index 65ccf87..0000000 Binary files a/workspace-fitness/db/fitness_20260804.sql.gz and /dev/null differ diff --git a/workspace-fitness/db/fitness_20260904.sql.gz b/workspace-fitness/db/fitness_20260904.sql.gz new file mode 100644 index 0000000..9177b64 Binary files /dev/null and b/workspace-fitness/db/fitness_20260904.sql.gz differ diff --git a/workspace-fitness/db/fitness_latest.sql b/workspace-fitness/db/fitness_latest.sql index f0f919c..e8ae7dd 100644 --- a/workspace-fitness/db/fitness_latest.sql +++ b/workspace-fitness/db/fitness_latest.sql @@ -34,7 +34,7 @@ CREATE TABLE `body_records` ( PRIMARY KEY (`id`), UNIQUE KEY `uk_user_date` (`user_id`,`record_date`), KEY `idx_user_date_order` (`user_id`,`record_date` DESC) -) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='身体数据记录'; +) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='身体数据记录'; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -43,7 +43,7 @@ CREATE TABLE `body_records` ( LOCK TABLES `body_records` WRITE; /*!40000 ALTER TABLE `body_records` DISABLE KEYS */; -INSERT INTO `body_records` VALUES (22,'yangxuan','2026-07-10',66.6,NULL,NULL,'','2026-07-10 03:55:18'),(31,'yangxuan','2019-07-01',63.3,NULL,NULL,'','2026-07-10 05:40:12'),(32,'yangxuan','2021-01-23',67.7,NULL,NULL,'','2026-07-10 05:40:12'),(33,'yangxuan','2022-01-08',70.6,NULL,NULL,'','2026-07-10 05:40:12'),(34,'yangxuan','2023-04-20',73.8,NULL,NULL,'','2026-07-10 05:40:12'),(35,'yangxuan','2024-09-21',71.6,NULL,NULL,'','2026-07-10 05:40:12'),(36,'yangxuan','2025-12-27',71.2,NULL,NULL,'','2026-07-10 05:40:12'),(37,'yangxuan','2026-03-20',69.7,NULL,NULL,'','2026-07-10 05:51:44'),(38,'yangxuan','2026-04-10',68.6,NULL,NULL,'','2026-07-10 05:51:44'),(39,'yangxuan','2026-04-17',68.8,NULL,NULL,'','2026-07-10 05:51:44'),(40,'yangxuan','2026-04-24',68.2,NULL,NULL,'','2026-07-10 05:51:44'),(41,'yangxuan','2026-04-30',67.3,NULL,NULL,'','2026-07-10 05:51:44'),(42,'yangxuan','2026-05-06',70.5,NULL,NULL,'','2026-07-10 05:51:44'),(43,'yangxuan','2026-05-25',68.1,NULL,NULL,'','2026-07-10 05:51:44'),(44,'yangxuan','2026-05-29',67.6,NULL,NULL,'','2026-07-10 05:51:44'),(45,'yangxuan','2026-06-17',67.1,NULL,NULL,'','2026-07-10 05:51:44'),(46,'yangxuan','2026-06-26',66.8,NULL,NULL,'','2026-07-10 05:51:44'),(47,'yangxuan','2026-07-03',66.7,NULL,NULL,'','2026-07-10 05:51:44'),(48,'yangxuan','2026-07-14',65.4,NULL,NULL,'130.8æ–¤ - 智能秤','2026-07-14 10:17:38'),(49,'yangxuan','2026-07-16',65.4,NULL,NULL,'今日体重','2026-07-16 23:55:02'),(50,'yangxuan','2026-07-24',66.1,NULL,NULL,'早上空腹·132.2æ–¤','2026-07-23 23:57:05'),(51,'yangxuan','2025-07-30',65.7,NULL,NULL,'','2026-07-30 00:00:20'),(52,'yangxuan','2026-07-31',66.2,NULL,NULL,'早上空腹体重,132.4æ–¤','2026-07-30 23:49:44'),(53,'yangxuan','2026-08-07',66.5,NULL,NULL,'早上空腹体重,133.0æ–¤','2026-08-06 23:44:11'),(54,'yangxuan','2026-08-14',66.3,NULL,NULL,'132.6斤','2026-08-13 23:48:02'),(55,'yangxuan','2026-08-28',66.2,NULL,NULL,'','2026-08-27 23:42:40'); +INSERT INTO `body_records` VALUES (22,'yangxuan','2026-07-10',66.6,NULL,NULL,'','2026-07-10 03:55:18'),(31,'yangxuan','2019-07-01',63.3,NULL,NULL,'','2026-07-10 05:40:12'),(32,'yangxuan','2021-01-23',67.7,NULL,NULL,'','2026-07-10 05:40:12'),(33,'yangxuan','2022-01-08',70.6,NULL,NULL,'','2026-07-10 05:40:12'),(34,'yangxuan','2023-04-20',73.8,NULL,NULL,'','2026-07-10 05:40:12'),(35,'yangxuan','2024-09-21',71.6,NULL,NULL,'','2026-07-10 05:40:12'),(36,'yangxuan','2025-12-27',71.2,NULL,NULL,'','2026-07-10 05:40:12'),(37,'yangxuan','2026-03-20',69.7,NULL,NULL,'','2026-07-10 05:51:44'),(38,'yangxuan','2026-04-10',68.6,NULL,NULL,'','2026-07-10 05:51:44'),(39,'yangxuan','2026-04-17',68.8,NULL,NULL,'','2026-07-10 05:51:44'),(40,'yangxuan','2026-04-24',68.2,NULL,NULL,'','2026-07-10 05:51:44'),(41,'yangxuan','2026-04-30',67.3,NULL,NULL,'','2026-07-10 05:51:44'),(42,'yangxuan','2026-05-06',70.5,NULL,NULL,'','2026-07-10 05:51:44'),(43,'yangxuan','2026-05-25',68.1,NULL,NULL,'','2026-07-10 05:51:44'),(44,'yangxuan','2026-05-29',67.6,NULL,NULL,'','2026-07-10 05:51:44'),(45,'yangxuan','2026-06-17',67.1,NULL,NULL,'','2026-07-10 05:51:44'),(46,'yangxuan','2026-06-26',66.8,NULL,NULL,'','2026-07-10 05:51:44'),(47,'yangxuan','2026-07-03',66.7,NULL,NULL,'','2026-07-10 05:51:44'),(48,'yangxuan','2026-07-14',65.4,NULL,NULL,'130.8æ–¤ - 智能秤','2026-07-14 10:17:38'),(49,'yangxuan','2026-07-16',65.4,NULL,NULL,'今日体重','2026-07-16 23:55:02'),(50,'yangxuan','2026-07-24',66.1,NULL,NULL,'早上空腹·132.2æ–¤','2026-07-23 23:57:05'),(51,'yangxuan','2025-07-30',65.7,NULL,NULL,'','2026-07-30 00:00:20'),(52,'yangxuan','2026-07-31',66.2,NULL,NULL,'早上空腹体重,132.4æ–¤','2026-07-30 23:49:44'),(53,'yangxuan','2026-08-07',66.5,NULL,NULL,'早上空腹体重,133.0æ–¤','2026-08-06 23:44:11'),(54,'yangxuan','2026-08-14',66.3,NULL,NULL,'132.6斤','2026-08-13 23:48:02'),(55,'yangxuan','2026-08-28',66.2,NULL,NULL,'','2026-08-27 23:42:40'),(56,'yangxuan','2026-09-03',65.1,NULL,NULL,'2026-09-03 晨重 130.2斤','2026-09-02 23:47:30'); /*!40000 ALTER TABLE `body_records` ENABLE KEYS */; UNLOCK TABLES; @@ -617,4 +617,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 diff --git a/workspace-resume/db/resume_20260804.sql.gz b/workspace-resume/db/resume_20260804.sql.gz deleted file mode 100644 index acd4e80..0000000 Binary files a/workspace-resume/db/resume_20260804.sql.gz and /dev/null differ diff --git a/workspace-resume/db/resume_20260904.sql.gz b/workspace-resume/db/resume_20260904.sql.gz new file mode 100644 index 0000000..092c1fc Binary files /dev/null and b/workspace-resume/db/resume_20260904.sql.gz differ diff --git a/workspace-resume/db/resume_latest.sql b/workspace-resume/db/resume_latest.sql index d309fc0..6b38659 100644 --- a/workspace-resume/db/resume_latest.sql +++ b/workspace-resume/db/resume_latest.sql @@ -484,4 +484,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:02 +-- Dump completed on 2026-09-03 19:00:01 diff --git a/workspace-sql/db/postgres_openclaw_20260804.sql.gz b/workspace-sql/db/postgres_openclaw_20260804.sql.gz deleted file mode 100644 index 2d1b3fc..0000000 Binary files a/workspace-sql/db/postgres_openclaw_20260804.sql.gz and /dev/null differ diff --git a/workspace-sql/db/postgres_openclaw_20260904.sql.gz b/workspace-sql/db/postgres_openclaw_20260904.sql.gz new file mode 100644 index 0000000..f8f1e0f Binary files /dev/null and b/workspace-sql/db/postgres_openclaw_20260904.sql.gz differ diff --git a/workspace-sql/db/postgres_openclaw_latest.sql b/workspace-sql/db/postgres_openclaw_latest.sql index a98112e..f4fd16e 100644 --- a/workspace-sql/db/postgres_openclaw_latest.sql +++ b/workspace-sql/db/postgres_openclaw_latest.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict bf0eEyZdUzX4CGbYfXMo3poXbBR5qg1yeemGeG6rfmeaiGSlCf2zk9tdwIR3GPc +\restrict dRNGhigvBYIw7XfGNzN3uQAX9SKX9tYyqxXwrv5hf06bnNqOO1VLM0LFncK2Qjx -- Dumped from database version 16.14 (Debian 16.14-1.pgdg12+1) -- Dumped by pg_dump version 16.14 (Debian 16.14-1.pgdg12+1) @@ -22,5 +22,5 @@ SET row_security = off; -- PostgreSQL database dump complete -- -\unrestrict bf0eEyZdUzX4CGbYfXMo3poXbBR5qg1yeemGeG6rfmeaiGSlCf2zk9tdwIR3GPc +\unrestrict dRNGhigvBYIw7XfGNzN3uQAX9SKX9tYyqxXwrv5hf06bnNqOO1VLM0LFncK2Qjx diff --git a/workspace-travel/db/travel_20260804.sql.gz b/workspace-travel/db/travel_20260804.sql.gz deleted file mode 100644 index 72e8e97..0000000 Binary files a/workspace-travel/db/travel_20260804.sql.gz and /dev/null differ diff --git a/workspace-travel/db/travel_20260904.sql.gz b/workspace-travel/db/travel_20260904.sql.gz new file mode 100644 index 0000000..f0a0113 Binary files /dev/null and b/workspace-travel/db/travel_20260904.sql.gz differ diff --git a/workspace-travel/db/travel_latest.sql b/workspace-travel/db/travel_latest.sql index 910b669..0e6d0f2 100644 --- a/workspace-travel/db/travel_latest.sql +++ b/workspace-travel/db/travel_latest.sql @@ -125,4 +125,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