package com.qiuguo.iot.data.entity.user;
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 lombok.Data;
import java.util.Date;
/**
* <p>
* </p>*
* @author wulin
* @since 2023-09-18
*/

@Data
@Comment("用户房间表")
@Table(name = "user_room")
@EnableEntityEvent
public class UserRoomEntity extends GenericEntity<Long> {
    @Comment("id")
    @Column(name = "id", length = 11, nullable = false, unique = true)
    private Long id;

    @Comment("家庭id")
    @Column(name = "home_id", nullable = false)
    private Long homeId;

    @Comment("房间名称")
    @Column(name = "room_name", length = 100)
    private String roomName;

    @Comment("涂鸦空间id")
    @Column(name = "space_id", length = 100)
    private Long spaceId;

    @Comment("is_delete")
    @Column(name = "is_delete")
    private Integer isDelete;

    @Comment("create_time")
    @Column(name = "create_time")
    private Date createTime;

    @Comment("modify_time")
    @Column(name = "modify_time")
    private Date modifyTime;

}