7.4. Database scheme

Database connected to the Central Server will store all the persistent information about users, user privileges, existing sessions and messages transmitted through the system. To keep all this information the following database scheme is needed (primary keys are bold):


Sessions

SID (number), AT (number), master (UID)

Applications

AID (number), SID (number), UID (number)

Participants

UID (number), host (string)

Users

UID (number), user name (string), user password (string), ...

Events

AID (number), message (array of bytes), timestamp (timestamp)

Privileges

UID (number), AT(number), local launch (boolean), remote launch (boolean), joining session (boolean), changing to master (boolean)

AppDetails

AT(number), app_name(string), master(boolean)