package com.cirle.scientific.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Calendar;

@Entity
@Data
@ApiModel
@Table(name = "qkj_member_app")
@EntityListeners(AuditingEntityListener.class)
public class QkjMemberApp implements Serializable {

    private static final long serialVersionUID = -6764082986803883888L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "Id")
    private Long id;

    /**
     * 用户唯一标识
     */
    private String memCard;

    /**
     * 用户昵称
     */
    private String memNickname;
    /**
     * 用户手机号
     */
    private String memMobile;
    /**
     * 用户头像
     */
    private String memHeadimg;
    /**
     * 0-未知，1-男,2-女
     */
    private Integer memSex;

    private LocalDate birthday;
    //年龄
    private String age;
    //单位
    private String unit;
    //科室
    private String department;
    //省
    private String province;
    //职务
    private String position;

    /**
     * 用户是否禁用 0：使用 1；禁用
     */
    private Integer memStatus = 0;

    private String memToken;

    @CreatedDate
    @Column(nullable = false, updatable = false)
    private LocalDateTime createTime;

    @LastModifiedDate
    @Column()
    private LocalDateTime updateTime;


}
