package com.hr.repository.domain;

import jakarta.persistence.*;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import java.util.Date;


@Schema(description = "token与接口关系表")
@Data
@Entity
@Table(name = "ip_token_interface")
public class IpTokenInterfacePO {

    @Id
    /** 主键,; */
    private Long id ;

    /** token表主键,; */
    @Column(name = "tid")
    private Long tid ;

    /** account表主键,; */
    @Column(name = "aid")
    @Schema(description = "账号 id")
	private Long aid ;

    /** 接口表主键,; */
    @Column(name = "iid")
    private Long iid ;

    /** 是否支持回调,yes支持，no不支持,; */
    @Column(name = "is_callback")
    private Boolean isCallback ;

    /** 回调地址(回调url),回调的url，只有在支持回调时才有,; */
    @Column(name = "callback_url")
    @Schema(description = "回调地址(回调url);回调的url，只有在支持回调时才有")
	private String callbackUrl ;

    /** 回调次数,尝试回调的次数，超过次数则不再回调,; */
    @Column(name = "callback_num")
    @Schema(description = "回调次数;尝试回调的次数，超过次数则不再回调")
	private Integer callbackNum ;

    /** 创建时间,; */
    @Column(name = "add_time")
    @Schema(description = "创建时间")
	private Date addTime ;

    /** 更新时间,; */
    @Column(name = "update_time")
    @Schema(description = "更新时间")
	private Date updateTime ;

    /** 创建人id,; */
    @Column(name = "add_user_id")
    private Long addUserId ;

    /** 更新人id,; */
    @Column(name = "update_user_id")
    private Long updateUserId ;

    /** 创建人姓名,; */
    @Column(name = "add_user_name")
    @Schema(description = "创建人姓名")
	private String addUserName ;

    /** 更新人姓名,; */
    @Column(name = "update_user_name")
    @Schema(description = "更新人姓名")
	private String updateUserName ;

     @Schema(description = "状态,normal 有效，disable 禁用，delete 删除")
    private String status;

}
