package com.dji.sample.map.model.entity;

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 lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author hqjiang
 * @version 1.0
 * @date 2024/7/23
 */
@TableName(value = "manage_task")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class FlightTaskEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("workspace_id")
    private String workspaceId;

    @TableField("task_name")
    private String taskName;

    @TableField("device_sn")
    private String deviceSn;

    @TableField("device_name")
    private String deviceName;

    @TableField("payload")
    private String payload;

    @TableField("wayline_name")
    private String waylineName;

    @TableField("distance")
    private Long distance;

    @TableField("fly_time")
    private Long flyTime;

    @TableField("begin_time")
    private Long beginTime;

    @TableField("end_time")
    private Long endTime;

    @TableField("create_time")
    private Long createTime;

    @TableField("update_time")
    private Long updateTime;

    @TableField("username")
    private String username;

    @TableField("template_type")
    private String templateType;

    @TableField("flight_kilometers")
    private Double flightKilometers;
}

