package com.xiaoniu.system.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author haoxuyang
 * @since 2024-10-08 02:02:00
 */
@Getter
@Setter
@TableName("tb_store_user")
@Schema(name = "TbStoreUser对象", description = "门店端用户表")
public class TbStoreUser implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "门店账号id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "用户名称")
    private String userName;

    @Schema(description = "用户手机号")
    private String phoneNumber;

    @Schema(description = "用户头像")
    private String userImage;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "用户类型（0-普通门店，1-加油站 2-充电站）")
    private Integer userType;

    @Schema(description = "状态（0-正常，1-冻结）")
    private Integer status;

    @Schema(description = "登录token")
    private String loginToken;

    @Schema(description = "登录时间")
    private Date loginTime;

    @Schema(description = "创建",hidden = true)
    private Date createTime;

    @Schema(description = "更新时间",hidden = true)
    private Date updateTime;

    @Schema(description = "创建者")
    private String createBy;

    @Schema(description = "更新者")
    private String updateBy;

    @Schema(description = "删除时间")
    private Date deleteTime;

    @Schema(description = "删除标记（0-正常，1-删除）")
    private Integer delFlag;

    @Schema(description = "备注")
    private String remark;
}
