|
|
@@ -0,0 +1,36 @@
|
|
|
+package com.etotem.cfc.entity;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 体脂秤测量记录 — 一次测量一条记录。
|
|
|
+ * 支撑 indicator_values.source_id = recordId(多期时序语义)。
|
|
|
+ * 表由 DatabaseInitializer 迁移423 建表。
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@TableName("body_fat_scale_records")
|
|
|
+public class BodyFatScaleRecord {
|
|
|
+
|
|
|
+ @TableId(type = IdType.AUTO)
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ /** 家庭成员ID (family_members.id) */
|
|
|
+ private Long memberId;
|
|
|
+
|
|
|
+ /** 所属家庭ID (families.id),可空 */
|
|
|
+ private Long familyId;
|
|
|
+
|
|
|
+ /** 体脂秤照片URL,可空 */
|
|
|
+ private String imageUrl;
|
|
|
+
|
|
|
+ /** 测量日期(取不到为 NULL,观测 report_date 记为上传日) */
|
|
|
+ private Date measuredAt;
|
|
|
+
|
|
|
+ /** 记录创建时间(DB 默认 CURRENT_TIMESTAMP) */
|
|
|
+ private Date createdAt;
|
|
|
+}
|