package com.huimv.lamp.dao.entity;

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

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

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

    private static final long serialVersionUID = 1L;

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

    @Column(name = "chip_id")
    private String chipId;

    @Column(name = "device_code")
    private String deviceCode;

    @Column(name = "lightness")
    private Integer lightness;

}
