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.io.Serializable;
import java.util.Date;


@Schema(description = "token表")
@Data
@Entity
@Table(name = "ip_token")
public class IpTokenPO {

    @Id
    /** 主键,; */
    @Schema(description = "主键")
	private Long id ;

    /** 账户表主键,; */
    @Column(name = "aid")
    private Long aid ;

    /** token值,; */
    @Column(name = "token")
    @Schema(description = "token值")
	private String token ;

    /** 密钥值,; */
    @Column(name = "secret")
    @Schema(description = "密钥值")
	private String secret ;

    /** 备注,; */
    @Column(name = "remark")
    @Schema(description = "备注")
	private String remark ;

    /** 状态,normal 有效，disable 禁用，delete 删除,; */
    @Column(name = "status")
    private String  status ;

    /** 创建时间,; */
    @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 ;

/**	
状态;normal 有效，disable 禁用，delete 删除
*/
    @Schema(description = "状态;normal 有效，disable 禁用，delete 删除")
    @Column(name = "token_status", length = 10)
    private String tokenStatus;

}
