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

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author huiqing.jiang
 * @version 0.3
 * @date 2024/9/30
 */
@Data
@TableName("wayline_break_point")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WaylineBreakPointEntity implements Serializable {

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

    @TableField("break_index")
    private Integer breakIndex;

    @TableField("state")
    private Integer state;

    @TableField("progress")
    private Float progress;

    @TableField("wayline_id")
    private Integer waylineId;

    @TableField("flight_id")
    private String flightId;

    @TableField("break_reason")
    private String breakReason;

    @TableField("longitude")
    private BigDecimal longitude;

    @TableField("latitude")
    private BigDecimal latitude;

    @TableField("height")
    private BigDecimal height;

    @TableField("attitude_head")
    private BigDecimal attitudeHead;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Long createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Long updateTime;

}
