Skip to content

public.app_update_logs

Description

Labels

svc-portal

Columns

NameTypeDefaultNullableChildrenParentsComment
idvarchar(36)false
device_iduuidtruepublic.devices
release_idvarchar(36)falsepublic.app_releases
statusvarchar(20)false
error_codeintegertrue
error_messagetexttrue
timestamptimestamp with time zonefalse
download_duration_secondsintegertrue
install_duration_secondsintegertrue

Viewpoints

NameDefinition
App ManagementOTA app updates for SmartPOS terminals

Constraints

NameTypeDefinition
ck_app_update_logs_statusCHECKCHECK (((status)::text = ANY ((ARRAY['success'::character varying, 'failed'::character varying, 'downloading'::character varying, 'installing'::character varying])::text[])))
app_update_logs_device_id_fkeyFOREIGN KEYFOREIGN KEY (device_id) REFERENCES devices(device_id) ON DELETE SET NULL
app_update_logs_release_id_fkeyFOREIGN KEYFOREIGN KEY (release_id) REFERENCES app_releases(id) ON DELETE CASCADE
app_update_logs_pkeyPRIMARY KEYPRIMARY KEY (id)

Indexes

NameDefinition
app_update_logs_pkeyCREATE UNIQUE INDEX app_update_logs_pkey ON public.app_update_logs USING btree (id)
idx_app_update_logs_deviceCREATE INDEX idx_app_update_logs_device ON public.app_update_logs USING btree (device_id)
idx_app_update_logs_releaseCREATE INDEX idx_app_update_logs_release ON public.app_update_logs USING btree (release_id)
idx_app_update_logs_timestampCREATE INDEX idx_app_update_logs_timestamp ON public.app_update_logs USING btree ("timestamp")

Relations


Generated by tbls

MPAC — MP-Solution Advanced Cloud Service