package com.rf.psychological.api.key.dao.model;

import com.rf.psychological.base.model.BaseEntity;
import lombok.*;
import org.hibernate.annotations.DynamicUpdate;

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

/**
 * @Author:zzf
 * @Date:2022/11/2:10:06
 * @Description:
 */
@Entity
@Data
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@Table(name = "t_key_info")
@org.hibernate.annotations.Table(appliesTo = "t_key_info", comment = "秘钥实体类")
@DynamicUpdate
public class KeyEntity extends BaseEntity {


    @Column(name = "institution_no",columnDefinition = "varchar(36) not null comment '机构编号'")
    private String institutionNo;
    @Column(name = "pub_key",columnDefinition = "text not null comment '公钥'")
    private String pubKey;
    @Column(name = "pri_key",columnDefinition = "text  comment '秘钥'")
    private String priKey;
    @Column(name = "call_time",columnDefinition = "int default 0 comment '调用次数'")
    private int callTime;
}
