package com.djhk.uav.uav.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.djhk.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 无人机编队对象 uav_organization
 *
 * @author jiachengshuai
 * @date 2023-02-28
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("uav_organization")
public class UavOrganization
{
    private static final long serialVersionUID = 1L;

    /** 无人机编队表主键 */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 编队名称 */
    @Excel(name = "编队名称")
    private String organizationName;

    /** 状态 */
    @Excel(name = "状态")
    private Long organizationStatus;

    /** 编队编号 */
    @Excel(name = "编队编号")
    private String organizationNo;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deleteBy;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 备注 */
    private String remark;

    @TableField(exist = false)
    private List<UavOrganizationDevice> devices;
}
