|
booking_id
|
int(11)
|
|
|
|
|
receipt_no
|
varchar(50)
|
|
|
|
|
customer_id
|
int(11)
|
|
|
|
|
vehicle_id
|
int(11)
|
|
|
|
|
rental_type
|
enum
|
-- |
|
walk_in_baru
|
|
start_date
|
date
|
|
|
|
|
time_out
|
time
|
|
|
|
|
expected_end_date
|
date
|
|
|
|
|
expected_end_time
|
time
|
|
|
|
|
duration_unit
|
enum
|
-- |
|
day
|
|
with_driver
|
tinyint(1)
|
|
|
0
|
|
driver_cost
|
decimal(10,2)
|
|
|
0.00
|
|
rental_duration
|
decimal(10,2)
|
|
|
0.00
|
|
actual_return_date
|
date
|
|
|
|
|
actual_return_time
|
time
|
|
|
|
|
rental_days
|
int(11)
|
|
|
1
|
|
daily_rate
|
decimal(10,2)
|
|
|
0.00
|
|
hourly_rate
|
decimal(10,2)
|
|
|
0.00
|
|
insurance
|
decimal(10,2)
|
|
|
0.00
|
|
discount_amount
|
decimal(10,2)
|
|
|
0.00
|
|
extra_charges
|
decimal(10,2)
|
|
|
0.00
|
|
early_return_discount
|
decimal(10,2)
|
|
|
0.00
|
|
rental_refund_amount
|
decimal(10,2)
|
|
|
0.00
|
|
rental_refund_status
|
enum
|
-- |
|
none
|
|
rental_refund_date
|
date
|
|
|
|
|
rental_refund_proof
|
varchar(255)
|
|
|
|
|
extra_charges_reason
|
text
|
|
|
|
|
damage_charge
|
decimal(10,2)
|
|
|
0.00
|
|
damage_notes
|
text
|
|
|
|
|
deposit
|
decimal(10,2)
|
|
|
0.00
|
|
deposit_type
|
enum
|
-- |
|
|
|
deposit_ref
|
varchar(100)
|
|
|
|
|
deposit_proof
|
varchar(255)
|
|
|
|
|
deposit_status
|
enum
|
-- |
|
not_received
|
|
deposit_refund_amount
|
decimal(10,2)
|
|
|
0.00
|
|
deposit_refund_date
|
date
|
|
|
|
|
deposit_refund_proof
|
varchar(255)
|
|
|
|
|
rental_payment_type
|
enum
|
-- |
|
|
|
rental_payment_ref
|
varchar(100)
|
|
|
|
|
rental_payment_proof
|
varchar(255)
|
|
|
|
|
payment_status
|
enum
|
-- |
|
unpaid
|
|
amount_paid
|
decimal(10,2)
|
|
|
0.00
|
|
balance_due
|
decimal(10,2)
|
|
|
0.00
|
|
date_paid
|
date
|
|
|
|
|
booking_status
|
enum
|
-- |
|
active
|
|
team
|
varchar(50)
|
|
|
|
|
remarks
|
text
|
|
|
|
|
cancellation_reason
|
text
|
|
|
|
|
rejection_reason
|
text
|
|
|
|
|
created_by
|
int(11)
|
|
|
|
|
created_at
|
datetime
|
|
|
current_timestamp()
|
|
updated_at
|
datetime
|
|
|
current_timestamp()
|
|
pickup_mileage
|
int(11)
|
|
|
|
|
pickup_mileage_image
|
varchar(255)
|
|
|
|
|
return_mileage
|
int(11)
|
|
|
|
|
return_mileage_image
|
varchar(255)
|
|
|
|
|
sst_type
|
varchar(10)
|
|
|
none
|