|
@@ -2097,6 +2097,12 @@ log.info("已添加template_id列到tasks表");
|
|
|
ensureColumn("activities", "require_checkin_review", "TINYINT DEFAULT 1 COMMENT '打卡是否需要审核: 1=需要, 0=直接通过'");
|
|
ensureColumn("activities", "require_checkin_review", "TINYINT DEFAULT 1 COMMENT '打卡是否需要审核: 1=需要, 0=直接通过'");
|
|
|
ensureColumn("activities", "energy_penalty_unregistered", "INT DEFAULT 5 COMMENT '未报名打卡的行能量扣减值'");
|
|
ensureColumn("activities", "energy_penalty_unregistered", "INT DEFAULT 5 COMMENT '未报名打卡的行能量扣减值'");
|
|
|
|
|
|
|
|
|
|
+ // family_members 表添加关系评分字段
|
|
|
|
|
+ ensureColumn("family_members", "trust_score", "DECIMAL(5,2) DEFAULT 0 COMMENT '信任度 0-100'");
|
|
|
|
|
+ ensureColumn("family_members", "intimacy_score", "DECIMAL(5,2) DEFAULT 0 COMMENT '亲密度 0-100'");
|
|
|
|
|
+ ensureColumn("family_members", "communication_score", "DECIMAL(5,2) DEFAULT 0 COMMENT '沟通质量 0-100'");
|
|
|
|
|
+ ensureColumn("family_members", "last_interaction_at", "DATETIME COMMENT '最近互动时间'");
|
|
|
|
|
+
|
|
|
// ==================== DanShop 电商模块建表 ====================
|
|
// ==================== DanShop 电商模块建表 ====================
|
|
|
// 1. danshop_categories (商品分类表)
|
|
// 1. danshop_categories (商品分类表)
|
|
|
try {
|
|
try {
|