package com.huimv.admin.device.dao.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Data
@Table(name = "sys_camera_area")
@Accessors(chain = true)
public class SysCameraAreaEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Integer id;

    /**
     * 区域(单元)名称
     */
    @Column(name = "area_name")
    private String areaName;

    /**
     * 不用管
     */
    @Column(name = "remark")
    private String remark;

    @Column(name = "farm_id", nullable = false)
    private Integer farmId;

    @Column(name = "public_url", nullable = false)
    private String publicUrl;

}
