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

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

import java.io.Serializable;

@TableName(value = "manage_device_livestream_url")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ManageDeviceLivestreamUrlEntity implements Serializable {

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

    @TableField(value = "workspace_id")
    private String workspaceId;

    @TableField(value = "device_sn")
    private String deviceSn;

    @TableField(value = "payload")
    private String payload;

    @TableField(value = "payload_index")
    private String payloadIndex;

    @TableField(value = "url_type")
    private Integer urlType;

    @TableField(value = "sub_type")
    private Integer subType;

    @TableField(value = "channel_id")
    private Integer channelId;

    @TableField(value = "url")
    private String url;

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

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