Database connected to the Central server will have to store all the persistent information about users, user privileges, existing sessions and virtual connections and messages transmitted through the system. To keep all this information the following database scheme is needed (primary keys are bold):
SID (number), AT (number), master (UID)
AID (number), SID (number), UID (number)
UID (number), host (string)
UID (number), user name (string), user password (string), ...
AID (number), message (array of bytes), timestamp (timestamp)
UID (number), AT(number), local launch (boolean), remote launch (boolean), joining session (boolean), changing to master (boolean)
AT(number), app_name(string), master(boolean)