Skip to content

public.refunds

Description

Labels

svc-smarttab

Columns

NameTypeDefaultNullableChildrenParentsComment
iduuidfalsepublic.slip_copies
payment_iduuidfalsepublic.payments
idempotency_keyvarchar(100)false
amountnumeric(12,2)false
reasonvarchar(255)false
staff_codevarchar(50)false
statusvarchar(50)false
refunded_attimestamp with time zonetrue
created_attimestamp with time zonenow()false
card_arnvarchar(100)true
metadatajsonbtrue
transaction_idvarchar(255)true
caller_typevarchar(20)'user'::character varyingfalse
caller_idvarchar(50)true

Viewpoints

NameDefinition
Order & BillingOrder lifecycle — Orders → Bills → Payments → Settlements

Constraints

NameTypeDefinition
refunds_amount_checkCHECKCHECK ((amount > (0)::numeric))
refunds_payment_id_fkeyFOREIGN KEYFOREIGN KEY (payment_id) REFERENCES payments(id) ON DELETE RESTRICT
refunds_pkeyPRIMARY KEYPRIMARY KEY (id)

Indexes

NameDefinition
refunds_pkeyCREATE UNIQUE INDEX refunds_pkey ON public.refunds USING btree (id)
ix_refunds_idempotency_keyCREATE UNIQUE INDEX ix_refunds_idempotency_key ON public.refunds USING btree (idempotency_key)
ix_refunds_payment_idCREATE INDEX ix_refunds_payment_id ON public.refunds USING btree (payment_id)
ix_refunds_statusCREATE INDEX ix_refunds_status ON public.refunds USING btree (status)

Relations


Generated by tbls

MPAC — MP-Solution Advanced Cloud Service