package com.qiuguo.iot.data.entity.device;
import lombok.Data;
import org.hswebframework.ezorm.rdb.mapping.annotation.Comment;
import org.hswebframework.web.crud.annotation.EnableEntityEvent;
import org.hswebframework.web.api.crud.entity.GenericEntity;
import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;
/**
* <p>
* </p>*闹钟记录表
* @author wulin
* @since 2023-09-05
*/

@Data
@Comment("闹钟记录表")
@Table(name = "device_alarm_clock_record")
@EnableEntityEvent
public class DeviceAlarmClockRecordEntity extends GenericEntity<Long> {
    @Comment("id")
    @Column(name = "id", length = 11, nullable = false, unique = true)
    private Long id;

    @Comment("是否删除：0 否 1 删除")
    @Column(name = "is_delete", nullable = false)
    private Integer isDelete;

    @Comment("创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @Comment("修改时间")
    @Column(name = "modify_time")
    private Date modifyTime;

    @Comment("设备id")
    @Column(name = "device_id", nullable = false)
    private Long deviceId;

    @Comment("用户id")
    @Column(name = "user_id", nullable = false)
    private Long userId;

    @Comment("第一次响铃时间，如果有重复，那么每天这个时间响铃")
    @Column(name = "time", nullable = false)
    private Date time;

    @Comment("重复次数：0：响铃一次（time指定的时间） 1：每天 2：指定星期")
    @Column(name = "repeat", nullable = false)
    private Integer repeat;

    @Comment("当repeat=2时具体的星期 1,2,3,4,5,6,7")
    @Column(name = "repeat_day", length = 100)
    private String repeatDay;

    @Comment("闹铃标题")
    @Column(name = "title", length = 255, nullable = false)
    private String title;

    @Comment("闹铃提示文案（语音播报）")
    @Column(name = "read_text", length = 255)
    private String readText;

    @Comment("响铃类型 0：系统内置 1：指定声音（音乐）")
    @Column(name = "sound_type", nullable = false)
    private Integer soundType;

    @Comment("响铃地址")
    @Column(name = "sound", length = 255)
    private String sound;

    @Comment("响铃名称")
    @Column(name = "sound_name", length = 100, nullable = false)
    private String soundName;

}