package com.tcm.training.admin.member.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.FieldFill; 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_app_user") @Getter @Setter @NoArgsConstructor public class AppUser { @TableId(type = IdType.AUTO) private Long id; private String nickname; private String phone; private String password; private String avatar; @TableField("wechat_openid") private String wechatOpenid; @TableField("wechat_nickname") private String wechatNickname; @TableField("wechat_avatar") private String wechatAvatar; @TableField("wechat_bound_at") private LocalDateTime wechatBoundAt; @TableField("apple_user_identifier") private String appleUserIdentifier; @TableField("apple_identity_subject") private String appleIdentitySubject; @TableField("apple_bound_at") private LocalDateTime appleBoundAt; /** 用户类型:0个人 1诊所 */ private Integer type; /** 性别:0女 1男 */ private Integer gender; private Integer age; private String intro; /** 状态:1启用 0禁用 */ private Integer status; @TableField("clinic_id") private Long clinicId; @TableField("superior_clinic_user_id") private Long superiorClinicUserId; @TableField("member_expire_at") private LocalDateTime memberExpireAt; @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; }