|
id
|
bigint(20) unsigned
|
|
|
|
|
franchisee_profile_id
|
bigint(20) unsigned
|
|
|
|
|
transaction_type
|
enum
|
-- |
|
|
|
direction
|
enum
|
-- |
|
|
|
amount
|
decimal(14,2)
|
|
|
|
|
balance_before
|
decimal(14,2)
|
|
|
|
|
balance_after
|
decimal(14,2)
|
|
|
|
|
reference_type
|
varchar(40)
|
|
|
|
|
reference_id
|
bigint(20) unsigned
|
|
|
|
|
receipt_number
|
varchar(50)
|
|
|
|
|
payment_method
|
enum
|
-- |
|
|
|
payment_reference
|
varchar(120)
|
|
|
|
|
notes
|
varchar(255)
|
|
|
|
|
idempotency_key
|
varchar(100)
|
|
|
|
|
created_by
|
bigint(20) unsigned
|
|
|
|
|
created_at
|
timestamp
|
|
|
current_timestamp()
|