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;

/**
 * @Author:zzf
 * @Date:2022/8/19:08:57
 * @Description:userId--openid
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_auth_info")
@EqualsAndHashCode(callSuper=true)
@org.hibernate.annotations.Table(appliesTo = "t_auth_info", comment = "用户三方授权表")
public class OpenIdEntity extends BaseEntity {
    @Column(name = "user_id",columnDefinition = "varchar(36) comment '用户编号'")
    private String userId;
    @Column(name = "phone",columnDefinition = "varchar(11) unique not null comment '手机号'")
    private String phone;
    @Column(name = "open_id",columnDefinition = "varchar(100) comment 'openid'")
    private String openId;
    @Column(name = "auth_type",columnDefinition = "varchar(10) default 'vx' comment '授权渠道 默认 vx'")
    private String authType;

}
