Skip to content

public.stores

Description

Labels

svc-portal

Columns

NameTypeDefaultNullableChildrenParentsComment
idintegernextval('stores_id_seq'::regclass)falsepublic.devices public.staff public.orders public.bills public.payments public.settlements public.bill_operation_histories public.slips
merchant_idintegerfalsepublic.merchants
store_codevarchar(50)false
store_namevarchar(255)false
addresstexttrue
phonevarchar(20)true
payment_configjsontrue
printer_itemsjsontrue
is_activebooleantrue
created_attimestamp with time zonetrue
updated_attimestamp with time zonetrue
mps_idvarchar(20)true
receipt_settingvarchar(20)true
receipt_infojsontrue
shipping_infojsontrue

Viewpoints

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

Constraints

NameTypeDefinition
stores_merchant_id_fkeyFOREIGN KEYFOREIGN KEY (merchant_id) REFERENCES merchants(id) ON DELETE RESTRICT
stores_pkeyPRIMARY KEYPRIMARY KEY (id)
uq_stores_merchant_store_codeUNIQUEUNIQUE (merchant_id, store_code)

Indexes

NameDefinition
stores_pkeyCREATE UNIQUE INDEX stores_pkey ON public.stores USING btree (id)
uq_stores_merchant_store_codeCREATE UNIQUE INDEX uq_stores_merchant_store_code ON public.stores USING btree (merchant_id, store_code)
ix_stores_merchant_idCREATE INDEX ix_stores_merchant_id ON public.stores USING btree (merchant_id)
ix_stores_mps_idCREATE UNIQUE INDEX ix_stores_mps_id ON public.stores USING btree (mps_id)

Relations


Generated by tbls

MPAC — MP-Solution Advanced Cloud Service