Skip to content

public.device_app_versions

Description

Labels

svc-portal

Columns

NameTypeDefaultNullableChildrenParentsComment
idvarchar(36)falseDevice app version identifier (UUID).
device_iduuidfalsepublic.devicesDevice ID.
app_idvarchar(36)falsepublic.managed_appsManaged app ID.
installed_version_codeintegerfalseInstalled version code.
installed_version_namevarchar(50)falseInstalled version name.
first_installed_attimestamp with time zonetrueFirst installation timestamp.
last_updated_attimestamp with time zonefalseLast update timestamp.
last_reported_attimestamp with time zonefalseLast device report timestamp.

Viewpoints

NameDefinition
App ManagementOTA app updates for SmartPOS terminals

Constraints

NameTypeDefinition
device_app_versions_device_id_fkeyFOREIGN KEYFOREIGN KEY (device_id) REFERENCES devices(device_id) ON DELETE CASCADE
device_app_versions_app_id_fkeyFOREIGN KEYFOREIGN KEY (app_id) REFERENCES managed_apps(id) ON DELETE CASCADE
device_app_versions_pkeyPRIMARY KEYPRIMARY KEY (id)
uq_device_app_versions_device_appUNIQUEUNIQUE (device_id, app_id)

Indexes

NameDefinition
device_app_versions_pkeyCREATE UNIQUE INDEX device_app_versions_pkey ON public.device_app_versions USING btree (id)
uq_device_app_versions_device_appCREATE UNIQUE INDEX uq_device_app_versions_device_app ON public.device_app_versions USING btree (device_id, app_id)
idx_device_app_versions_deviceCREATE INDEX idx_device_app_versions_device ON public.device_app_versions USING btree (device_id)
idx_device_app_versions_appCREATE INDEX idx_device_app_versions_app ON public.device_app_versions USING btree (app_id)
idx_device_app_versions_versionCREATE INDEX idx_device_app_versions_version ON public.device_app_versions USING btree (app_id, installed_version_code)

Relations


Generated by tbls

MPAC — MP-Solution Advanced Cloud Service