package com.hotwj.platform.driverManagement.driverFamilyMember.domain.bo;

import com.hotwj.platform.driverManagement.driverFamilyMember.domain.HotDriverFamilyMember;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.util.Date;

/**
 * 驾驶员家庭成员业务对象 hot_driver_family_member
 *
 * @author shihongwei
 * @date 2025-12-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotDriverFamilyMember.class, reverseConvertGenerate = false)
public class HotDriverFamilyMemberBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

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

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

    /**
     * 姓名
     */
    private String name;

    /**
     * 与本人关系
     */
    private String relationship;

    /**
     * 出生年月
     */
    private Date birthMonth;

    /**
     * 联系电话
     */
    private String phone;

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


}
