@startuml fig_11_room_schema
scale 3
title Схема служебных сущностей Room (AppDb)
skinparam defaultFontName "DejaVu Sans"
skinparam class {
  BackgroundColor #F8F8F8
  BorderColor #333333
}

class AppDb <<Database>> {
  storageKeyMapDao
  storageMetaInfoDao
  storageSyncGroupDao
  yandexAccountDao
}

class DbStorageKeyMap {
  sourceUuid : UUID
  key : ByteArray
}

class DbStorageMetaInfo {
  uuid : UUID
  metaInfoJson : String
}

class DbStorageSyncGroup {
  groupId : UUID
  storageUuids : String
}

class DbYandexAccount {
  accountId : String
  accessToken : String
}

AppDb --> DbStorageKeyMap
AppDb --> DbStorageMetaInfo
AppDb --> DbStorageSyncGroup
AppDb --> DbYandexAccount

note bottom of AppDb
  Пользовательский контент
  в БД не хранится
end note

@enduml
