On-premise Database Tables Schema

mesibo on-premise gives you complete access to your data and total control over it. All the database tables created by mesibo on-premise and the data written in them are accessible to you.

While you can view all the data in the mesibo on-premise database, you can only use data from the below-listed tables and the columns. All other tables and columns are for mesibo on-premise use only and can be modified or deleted without notice. Hence, you MUST not access or use them.

Caution

You must not write to tables in the on-premise mesibo database under any circumstances. Also ensure that you do not overload the mesibo on-premise database. If frequent reads are needed, consider setting up the database in a master-slave replication configuration. This allows read operations to be performed on the slave, reducing load on the master. The slave can then be accessed to retrieve required data as needed.

Messages Table

mesibo on-premise stores all the messages between your users in the messages table when you enable message retention. Following are the columns you can read.

ColumnDescription
idMessage ID
refidMessage Reference ID
uidUID of the user to whom the message was sent
srcUID of the sender
gidGroup ID if the message was sent to the group
flagsmessage flags used when sending
tsMessage Time
rich1 = Rich message with image, location, title, etc., 0 = Normal text message
titleTitle of the rich message (valid only if rich=1)
subtitleMessage part of the rich message (valid only if rich=1)
imageImage URL of the rich message (valid only if rich=1)
latitudeLatitude - (valid only if rich=1 and the value is in range -90 and +90 )
longitudeLongitude - (valid only if rich=1 and the value is in range -180 and +180 )
messageNormal Text or Binary message (valid only if rich=0)

Calls Table

mesibo on-premise stores all the call logs in the calls table. Following are the columns you can read.

ColumnDescription
idID
uidUID of the user who initiated the call
duidUID of the user to whom the call was made
huidUID of the user who hanged up the call
tsTime when the call was made
rtsTime when ringing on the destination started
atsTime when destination answered
etsTime when the call was ended
typeType of the call, 0 = voice, 1 = video
statusReal-time Call Status

Group Calls Table

mesibo on-premise stores all the group call logs in the groupcalls table. Following are the columns you can read.

ColumnDescription
idCall ID
uidUID of the user who joined the call
peerUID of the publisher if the uid is the subscriber, 0 if the uid is the publisher
sidStream ID
stsTime when the call was started, in epoch seconds
etsTime when the call was ended, in epoch seconds
bwBandwidth consumed (in bytes)
video1 if the video frames were sent or received, 0 otherwise
audio1 if the audio frames were sent or received, 0 otherwise
active1 if the call is active, 0 otherwise

Users Table

mesibo on-premise stores all users in the users table. You can join this table with messages and calls table to find the address from the UID. Following are the columns you can read.

ColumnDescription
uidUID of the user
addressAddress of the user
onlineOnline status of the user, 1 = online, 0 = offline
activeActive status of the user, 1 = active, 0 = not active