package com.tcm.training.admin.points.entity; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import java.time.LocalDateTime; @TableName("tcm_user_points_account") @Getter @Setter @NoArgsConstructor public class UserPointsAccount { @TableId(type = IdType.AUTO) private Long id; @TableField("app_user_id") private Long appUserId; @TableField("points_balance") private Integer pointsBalance; @TableField("last_settled_config_id") private Long lastSettledConfigId; @TableField("last_cleared_at") private LocalDateTime lastClearedAt; @TableLogic private Integer deleted; @TableField(value = "created_by", fill = FieldFill.INSERT) private String createdBy; @TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE) private String updatedBy; @TableField("created_at") private LocalDateTime createdAt; @TableField("updated_at") private LocalDateTime updatedAt; }