/**
 * There are <a href="https://github.com/ketayao/keta-custom">keta-custom</a> code generation
 */
package com.sw.mes.outside.entity;

import java.util.Date;

import lombok.Data;
import javax.persistence.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

/**
 * @Author
 * @Description：
 * @Date: Create in
 * @Modified By:
 */
@Data
@Entity
@Table(name = "alarm_config")
@DynamicUpdate
@DynamicInsert
public class AlarmConfig {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    
	/**
	 * 设备类型
	 */
    @Column(length=30)
    private String deviceType;
    
	/**
	 * 报警描述
	 */
    @Column(length=150)
    private String name;
    
	/**
	 * 报警code
	 */
    @Column(length=30)
    private String code;
    
	/**
	 * 创建时间
	 */
    @Column(length=19)
	@Temporal(TemporalType.TIMESTAMP)
    private Date createTime;
    
	/**
	 * 修改时间
	 */
    @Column(length=19)
	@Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;
    

	public AlarmConfig() {
	}

	public AlarmConfig(Long id) {
		this.id = id;
	}
}
