Skip to content

public.iot_credentials

Description

Labels

svc-portal

Columns

NameTypeDefaultNullableChildrenParentsComment
idintegernextval('iot_credentials_id_seq'::regclass)falseCredential record identifier.
device_iduuidfalsepublic.devicesAssociated device ID.
thing_namevarchar(128)falseAWS IoT Thing name.
certificate_arnvarchar(255)falseAWS IoT certificate ARN.
certificate_idvarchar(64)falseAWS IoT certificate ID.
policy_namevarchar(128)falseAWS IoT policy name.
statusvarchar(50)falseCredential status: ACTIVE, REVOKED, or ROTATION_REQUIRED.
created_attimestamp with time zonefalseRecord creation timestamp.
updated_attimestamp with time zonefalseRecord last update timestamp.
last_connected_attimestamp with time zonetrueLast MQTT connection timestamp.

Viewpoints

NameDefinition
Merchant HierarchyMulti-tenant hierarchy — PSP → Merchant → Store → Staff/Devices

Constraints

NameTypeDefinition
iot_credentials_device_id_fkeyFOREIGN KEYFOREIGN KEY (device_id) REFERENCES devices(device_id) ON DELETE CASCADE
iot_credentials_pkeyPRIMARY KEYPRIMARY KEY (id)

Indexes

NameDefinition
iot_credentials_pkeyCREATE UNIQUE INDEX iot_credentials_pkey ON public.iot_credentials USING btree (id)
ix_iot_credentials_certificate_idCREATE UNIQUE INDEX ix_iot_credentials_certificate_id ON public.iot_credentials USING btree (certificate_id)
ix_iot_credentials_device_idCREATE UNIQUE INDEX ix_iot_credentials_device_id ON public.iot_credentials USING btree (device_id)
ix_iot_credentials_thing_nameCREATE UNIQUE INDEX ix_iot_credentials_thing_name ON public.iot_credentials USING btree (thing_name)

Relations


Generated by tbls

MPAC — MP-Solution Advanced Cloud Service