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

import com.rf.psychological.base.model.BaseEntity;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author lpf
 * @description:
 * @date 17/12/2021下午3:21
 */

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_repeat_username")
@org.hibernate.annotations.Table(appliesTo = "t_repeat_username", comment = "机构下姓名拼音重复表")
public class UserRepeatNameNumEntity extends BaseEntity {

    @Column(name = "name_pinyin", columnDefinition = "varchar(40) not null comment '姓名拼音'")
    private String namePinyin;

    @Column(name = "institution_no", columnDefinition = "varchar(50) comment '所属机构编码'")
    private String institutionNo;

    @Column(name = "num", columnDefinition = "int(11)  default 1 comment '拼音重复次数'")
    private int num;


}
