Back to Schema

Database Tables

Connected

Database Overview

67
Total Tables
Online
Connection Status
canaccom
Database Name

Table: invoices

0 rows

Structure

Field Type Null Key Default Extra
id int NO PRI NULL auto_increment
booking_id int NO MUL NULL
block_booking_id int YES NULL
invoice_number varchar(50) NO UNI NULL
share_token varchar(64) YES UNI NULL
invoice_date date NO MUL NULL
due_date date NO MUL NULL
invoice_type enum('hotel','client','commission') NO MUL NULL
recipient_name varchar(255) NO NULL
recipient_email varchar(255) YES NULL
recipient_contact varchar(255) YES NULL
recipient_address text YES NULL
recipient_phone varchar(20) YES NULL
group_name varchar(255) YES NULL
status enum('draft','sent','paid','overdue','cancelled') YES MUL draft
paid_date date YES MUL NULL
viewed_at datetime YES NULL
sent_at datetime YES NULL
payment_method varchar(100) YES NULL
payment_reference varchar(100) YES NULL
subtotal decimal(12,2) NO 0.00
tax_amount decimal(10,2) YES 0.00
tax_rate decimal(5,2) YES 0.00
discount_amount decimal(10,2) YES 0.00
commission_rate decimal(5,2) YES 12.00
commission_amount decimal(10,2) YES 0.00
additional_charges decimal(10,2) YES 0.00
total_amount decimal(12,2) NO 0.00
amount_paid decimal(12,2) YES 0.00
balance_due decimal(12,2) YES 0.00
notes text YES NULL
terms_and_conditions text YES NULL
reminder_enabled tinyint(1) NO 0
reminder_interval_days int NO 30
reminder_last_sent_at datetime YES NULL
created_by int YES MUL NULL
created_at timestamp YES CURRENT_TIMESTAMP DEFAULT_GENERATED
updated_at timestamp YES CURRENT_TIMESTAMP DEFAULT_GENERATED on update CURRENT_TIMESTAMP