package com.hotwj.platform.driverManagement.driverProfCert.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.io.Serial;
import java.util.Date;

/**
 * 从业资格证对象 hot_driver_prof_cert
 *
 * @author shihongwei
 * @date 2025-12-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hot_driver_prof_cert")
public class HotDriverProfCert extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 公司ID
     */
    private Long companyId;

    /**
     * 驾驶员ID
     */
    private Long driverId;

    /**
     * 从业资格证类别
     */
    private String category;

    /**
     * 资格证号
     */
    private String certNo;

    /**
     * 初次领证日期
     */
    private Date firstIssueDate;

    /**
     * 有效起始日期
     */
    private Date validFrom;

    /**
     * 有效终止日期
     */
    private Date validTo;

    /**
     * 有效期描述
     */
    private String validityTerm;

    /**
     * 发证机关
     */
    private String issuingAuthority;

    /**
     * 从业资格证附件URL
     */
    private String attachmentUrl;

    /**
     * 状态：1=正常 0=禁用
     */
    private Long status;

    /**
     * 0=正常, 1=已删除
     */
    @TableLogic
    private Long isDeleted;


}
