package com.rf.psychological.scale.dao.model;

import com.rf.psychological.base.model.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author:zzf
 * @Date:2022/8/19:08:57
 * @Description:userId--openid
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_external_user")
@EqualsAndHashCode(callSuper=true)
@org.hibernate.annotations.Table(appliesTo = "t_external_user", comment = "外部用户信息表")
public class ExternalUserEntity extends BaseEntity {
    @Column(name = "name", columnDefinition = "varchar(50) not null comment '名称'")
    private String name;
    @Column(name = "create_time",columnDefinition = "timestamp default current_timestamp comment '创建时间'")
    private Date createTime;
    @Column(name = "update_time",columnDefinition = "timestamp comment '更新时间'")
    private Date updateTime;

}
