package com.dsh.account.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 com.baomidou.mybatisplus.extension.activerecord.Model;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import lombok.experimental.Accessors;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* <p>
|
* 教练
|
* </p>
|
*
|
* @author jqs
|
* @since 2023-07-05
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = false)
|
@Accessors(chain = true)
|
@TableName("t_coach")
|
public class Coach extends Model<Coach> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 省
|
*/
|
@TableField("province")
|
private String province;
|
/**
|
* 省编号
|
*/
|
@TableField("provinceCode")
|
private String provinceCode;
|
/**
|
* 市
|
*/
|
@TableField("city")
|
private String city;
|
/**
|
* 市编号
|
*/
|
@TableField("cityCode")
|
private String cityCode;
|
/**
|
* 城市管理员id
|
*/
|
@TableField("cityManagerId")
|
private Integer cityManagerId;
|
/**
|
* 教练类型id
|
*/
|
@TableField("coachTypeId")
|
private Integer coachTypeId;
|
/**
|
* 姓名
|
*/
|
@TableField("name")
|
private String name;
|
/**
|
* 生日
|
*/
|
@TableField("birthday")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date birthday;
|
/**
|
* 性别(1=男,2=女)
|
*/
|
@TableField("gender")
|
private Integer gender;
|
/**
|
* 电话
|
*/
|
@TableField("phone")
|
private String phone;
|
/**
|
* 身份证号码
|
*/
|
@TableField("idcard")
|
private String idcard;
|
/**
|
* 身高(厘米)
|
*/
|
@TableField("height")
|
private Double height;
|
/**
|
* 体重(KG)
|
*/
|
@TableField("weight")
|
private Double weight;
|
/**
|
* 毕业院校
|
*/
|
@TableField("graduateSchool")
|
private String graduateSchool;
|
/**
|
* 毕业证照片
|
*/
|
@TableField("diploma")
|
private String diploma;
|
/**
|
* 资格证书(多个逗号分隔)
|
*/
|
@TableField("certificate")
|
private String certificate;
|
/**
|
* 证书照片
|
*/
|
@TableField("certificateImg")
|
private String certificateImg;
|
/**
|
* 状态(1=正常,2=冻结,3=删除)
|
*/
|
@TableField("state")
|
private Integer state;
|
/**
|
* 添加时间
|
*/
|
@TableField("insertTime")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
private Date insertTime;
|
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
}
|