Skip to content

public.app_releases

Description

Labels

svc-portal

Columns

NameTypeDefaultNullableChildrenParentsComment
idvarchar(36)falsepublic.app_update_logsApp release identifier (UUID).
app_idvarchar(36)falsepublic.managed_appsParent managed app ID.
version_codeintegerfalseVersion code (integer).
version_namevarchar(50)falseVersion name (e.g., 1.0.0).
release_notestexttrueRelease notes for this version.
min_sdk_versionintegertrueMinimum Android SDK version.
target_sdk_versionintegertrueTarget Android SDK version.
s3_keyvarchar(512)falseS3 key path to APK file.
file_size_bytesbigintfalseAPK file size in bytes.
checksum_sha256varchar(64)falseSHA256 checksum of APK file.
is_activebooleanfalseActive release flag. Only one per app.
uploaded_attimestamp with time zonefalseAPK upload timestamp.
uploaded_by_user_idvarchar(36)truepublic.usersUser ID who uploaded this release.
activated_attimestamp with time zonetrueRelease activation timestamp.
activated_by_user_idvarchar(36)truepublic.usersUser ID who activated this release.
update_window_startvarchar(5)'00:00'::character varyingfalseUpdate window start time (HH:MM UTC).
update_window_endvarchar(5)'23:59'::character varyingfalseUpdate window end time (HH:MM UTC).

Viewpoints

NameDefinition
App ManagementOTA app updates for SmartPOS terminals

Constraints

NameTypeDefinition
app_releases_activated_by_user_id_fkeyFOREIGN KEYFOREIGN KEY (activated_by_user_id) REFERENCES users(user_id) ON DELETE SET NULL
app_releases_uploaded_by_user_id_fkeyFOREIGN KEYFOREIGN KEY (uploaded_by_user_id) REFERENCES users(user_id) ON DELETE SET NULL
app_releases_app_id_fkeyFOREIGN KEYFOREIGN KEY (app_id) REFERENCES managed_apps(id) ON DELETE CASCADE
app_releases_pkeyPRIMARY KEYPRIMARY KEY (id)
uq_app_releases_app_versionUNIQUEUNIQUE (app_id, version_code)

Indexes

NameDefinition
app_releases_pkeyCREATE UNIQUE INDEX app_releases_pkey ON public.app_releases USING btree (id)
uq_app_releases_app_versionCREATE UNIQUE INDEX uq_app_releases_app_version ON public.app_releases USING btree (app_id, version_code)
idx_app_releases_app_activeCREATE INDEX idx_app_releases_app_active ON public.app_releases USING btree (app_id, is_active)
idx_app_releases_uploadedCREATE INDEX idx_app_releases_uploaded ON public.app_releases USING btree (uploaded_at)
ix_app_releases_app_idCREATE INDEX ix_app_releases_app_id ON public.app_releases USING btree (app_id)
ix_app_releases_is_activeCREATE INDEX ix_app_releases_is_active ON public.app_releases USING btree (is_active)

Relations


Generated by tbls

MPAC — MP-Solution Advanced Cloud Service