AdminDB structures
Admin room
Room
Should be unique.
{:pub_key, admin_room_pub_key}
Admin
Admins are the users that visited admin room once at least. New potential admins can be invited from admin panel.
{{:new_admin, admin_pub_key}, admin_card}
Wifi password
{:wifi_password, hashed_password}
Cargo settings
Set cargo checkpoints. Checkpoints are automatically invited to the Cargo rooms.
{:cargo_settings, CargoSettings{checkpoints: [#Chat.Card, #Chat.Card]}}
Cargo user
Add cargo user if you want to access the cargo settings.
{:cargo_user, cargo_user_identity}
Media settings
When new USB drive is plugged into the secondary port, the following functionality will be started. Functionalities:
- backup - full backup of main drive;
- onliners - backup of data in scope of online (at this moment) users;
- cargo - special cargo scenario.
{:media_settings, %Chat.Admin.MediaSettings{functionality: functionality}}
Backup settings
Configures whether the backup should be done after copying data, or if it should be syncing further changes. Types:
- regular - finishes after copying;
- continuous - copies data and then waits for new changes.
{:backup_settings, %Chat.Admin.BackupSettings{type: type}}
Messaging
Room message links
Links for messages in public rooms
{{:room_message_link, link_hash}, {encrypted_room_identity, room_hash, msg_index, msg_id}}