Skip to content

public.slips

Description

Labels

svc-smarttab

Columns

NameTypeDefaultNullableChildrenParentsComment
idintegernextval('card_slips_id_seq'::regclass)falsepublic.slip_copies
payment_iduuidfalsepublic.payments
slip_numbervarchar(50)true
merchant_idintegerfalsepublic.merchants
store_idintegerfalsepublic.stores
created_attimestamp with time zonenow()false
transaction_idvarchar(255)true

Viewpoints

NameDefinition
Receipts & SlipsReceipt and credit card slip generation and delivery

Constraints

NameTypeDefinition
card_slips_merchant_id_fkeyFOREIGN KEYFOREIGN KEY (merchant_id) REFERENCES merchants(id) ON DELETE RESTRICT
card_slips_store_id_fkeyFOREIGN KEYFOREIGN KEY (store_id) REFERENCES stores(id) ON DELETE RESTRICT
card_slips_payment_id_fkeyFOREIGN KEYFOREIGN KEY (payment_id) REFERENCES payments(id) ON DELETE CASCADE
card_slips_pkeyPRIMARY KEYPRIMARY KEY (id)

Indexes

NameDefinition
card_slips_pkeyCREATE UNIQUE INDEX card_slips_pkey ON public.slips USING btree (id)
ix_slips_merchant_idCREATE INDEX ix_slips_merchant_id ON public.slips USING btree (merchant_id)
ix_slips_store_idCREATE INDEX ix_slips_store_id ON public.slips USING btree (store_id)
ix_slips_payment_idCREATE UNIQUE INDEX ix_slips_payment_id ON public.slips USING btree (payment_id)

Relations


Generated by tbls

MPAC — MP-Solution Advanced Cloud Service