syntax = "proto3";

package ccim.protocol;

enum MessageType {
    MESSAGE_TYPE_TEXT = 0;
    MESSAGE_TYPE_VOICE = 1;
}

enum MessageSourceType {
    MESSAGE_SOURCE_TYPE_PRIVATE = 0;
    MESSAGE_SOURCE_TYPE_CHANNEL = 1;
}

message ChatMessage {
    int64 msg_id = 1;
    int64 sender_user_id = 2;
    int64 msg_src_id = 3;
    MessageSourceType msg_src_type = 4;
    MessageType msg_type = 5;
    string content = 6;
    int64 created_date = 7;
    int64 modified_date = 8;
}