Ryouiki
Self-hosted domain communication service

Message

Messages are the basic unit of communication across the platform.

Message {
    User    :USER_ID
    Content :sequence
    Time    :TIMESTAMP

    # Chain
    Prev :natural
    Next :natural
}

Properties

User

Internal identifier of the user that sent the message.

Content

Formatted text content.

Time

UNIX timestamp of when the message was received by the server.

Variants

Reply

Links to another message and notifies the user.

Variant_Reply {

}

Forward

Embeds a message in another message.

Variant_Forward {

}

Format

Reactions

Attachments

Link

Attachment_Link {
    Url :sequence
}

Poll

Poll {
    Response {
        User   :USER_ID
        Choice :natural
    }

    Choices   :list{sequence}
    Responses :list{Response}
    Options   :block{1}
    # [0:1] Select multiple
}

Files

Attachment_File {
    Name :sequence
}

Images

Attachment_Image {
    Alt :sequence
}

Storage