Back to Schema

Database Tables

Connected

Database Overview

58
Total Tables
Online
Connection Status
canaccom
Database Name

Table: booking_documents

0 rows

Structure

Field Type Null Key Default Extra
id int NO PRI NULL auto_increment
booking_id int NO MUL NULL
room_id int YES MUL NULL
document_type enum('contract','rooming_list','code_of_conduct','invoice','confirmation','hotel_receipt','hotel_contract','team_agreement','insurance_certificate','payment_proof','rooming_list_template','welcome_packet','emergency_contacts','itinerary','other') NO MUL NULL
file_name varchar(255) NO NULL
file_path varchar(500) NO NULL
file_size int YES NULL
mime_type varchar(100) YES NULL
file_extension varchar(10) YES NULL
document_title varchar(255) YES NULL
document_description text YES NULL
document_date date YES MUL NULL
document_version varchar(20) YES NULL
status enum('draft','pending_approval','approved','rejected','archived') YES MUL draft
approved_by int YES MUL NULL
approved_at datetime YES NULL
approval_notes text YES NULL
uploaded_by int YES MUL NULL
uploaded_at timestamp YES MUL CURRENT_TIMESTAMP DEFAULT_GENERATED
created_at timestamp YES CURRENT_TIMESTAMP DEFAULT_GENERATED
updated_at timestamp YES CURRENT_TIMESTAMP DEFAULT_GENERATED on update CURRENT_TIMESTAMP