Skip to content

public.device_app_versions

Description

Labels

svc-portal

Columns

NameTypeDefaultNullableChildrenParentsComment
idvarchar(36)false
device_iduuidfalsepublic.devices
app_idvarchar(36)falsepublic.managed_apps
installed_version_codeintegerfalse
installed_version_namevarchar(50)false
first_installed_attimestamp with time zonetrue
last_updated_attimestamp with time zonefalse
last_reported_attimestamp with time zonefalse

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