package com.haha.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("t_user")
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String openid;

    private String phone;

    private String nickname;

    private String avatar;

    private Integer creditScore;

    private Integer status;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
    
    // ========== 以下为非数据库字段，用于前端展示 ==========
    
    @TableField(exist = false)
    private String statusLabel;
    
    @TableField(exist = false)
    private String statusColor;
}
