package com.keao.edu.im.pojo;

import lombok.Getter;
import lombok.Setter;

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

/**
 * Created by weiqinxiao on 2019/2/28.
 */
@Entity
@Table(name = "rongyun_room")
public class Room implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;

    private @Getter @Setter String rid;
    private @Getter @Setter String name;
    private @Getter @Setter String portrait;
    private @Getter @Setter Date createDt;
    private @Getter @Setter String display;
    private @Getter @Setter int whiteboardNameIndex;

    @Override
    public String toString() {
        return "Room{" +
                "rid='" + rid + '\'' +
                ", name='" + name + '\'' +
                ", portrait='" + portrait + '\'' +
                ", createDt=" + createDt +
                ", display='" + display + '\'' +
                ", whiteboardNameIndex='" + whiteboardNameIndex + '\'' +
                '}';
    }
}
