package com.rf.psychological.user.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;

/**
 * @Description:用户头像
 * @Author: zsf
 * @Date: 2022/12/26
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_user_file")
@EqualsAndHashCode(callSuper=true)
@org.hibernate.annotations.Table(appliesTo = "t_user_file", comment = "用户头像关联表")
public class UserFileEntity extends BaseEntity {

    @Column(name = "user_id",columnDefinition = "varchar(36) comment '用户编号'")
    private String userId;

    @Column(name = "path",columnDefinition = "varchar(255)  comment '头像地址'")
    private String path;

    @Column(name = "create_time",columnDefinition = "varchar(36)  comment '创建时间'")
    private String createTime;

    @Column(name = "update_time",columnDefinition = "varchar(36)  comment '更新时间'")
    private String updateTime;

    @Column(name = "extend1",columnDefinition = "varchar(36)  comment '扩展1'")
    private String extend1;

    @Column(name = "extend2",columnDefinition = "varchar(36)  comment '扩展2'")
    private String extend2;

    public UserFileEntity(String userId, String path) {
        this.userId = userId;
        this.path = path;
    }
}
