package com.aircraft.modules.aircraft.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.aircraft.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 飞行器维保表
 * </p>
 *
 * @author cli
 * @since 2025-07-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("fms_ac_aircraft_maintenance")
public class AircraftMaintenance extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @NotNull(groups = BaseEntity.Update.class)
    @ApiModelProperty(value = "主键id")
    private Long id;

    /**
     * 飞行器id
     */
    @NotNull
    @ApiModelProperty(value = "飞行器id")
    private Long aircraftId;

    /**
     * 飞行员（负责人）id
     */
    @ApiModelProperty(value = "飞行员（负责人）id")
    private Long employeesId;

    /**
     * 维保类型（0-例行检查，1-电池损坏）
     */
    @NotNull
    @ApiModelProperty(value = "维保类型（0-例行检查，1-电池损坏）")
    private Integer maintenanceType;


}
