package org.mercury_im.messenger.data.model;

import org.mercury_im.messenger.data.enums.MessageContentType;

import io.requery.Column;
import io.requery.Entity;
import io.requery.Generated;
import io.requery.Key;
import io.requery.ManyToOne;
import io.requery.Table;

@Entity
@Table(name = "msg_payloads")
public abstract class AbstractMessagePayloadModel {

    @Key @Generated
    long id;

    @ManyToOne
    MessagePayloadContainerModel payloadContainer;

    @Column
    String body;

    @Column(nullable = false)
    MessageContentType type;
}
