{
  "query": "CREATE TABLE IF NOT EXISTS `reviews` (`id` int AUTO_INCREMENT NOT NULL, `authorName` varchar(100) NOT NULL, `authorNationality` varchar(50), `rating` int NOT NULL, `comment` text NOT NULL, `commentFr` text, `commentEn` text, `commentDe` text, `source` varchar(50) DEFAULT 'booking', `stayDate` varchar(20), `isVisible` boolean NOT NULL DEFAULT true, `createdAt` timestamp NOT NULL DEFAULT (now()), CONSTRAINT `reviews_id` PRIMARY KEY(`id`)); CREATE TABLE IF NOT EXISTS `reservations` (`id` int AUTO_INCREMENT NOT NULL, `reservationCode` varchar(20) NOT NULL, `roomId` int NOT NULL, `clientId` int, `guestFirstName` varchar(100) NOT NULL, `guestLastName` varchar(100) NOT NULL, `guestEmail` varchar(320) NOT NULL, `guestPhone` varchar(30), `guestNationality` varchar(50), `checkIn` date NOT NULL, `checkOut` date NOT NULL, `adults` int NOT NULL DEFAULT 1, `children` int NOT NULL DEFAULT 0, `totalPrice` decimal(10,2) NOT NULL, `status` enum('pending','confirmed','cancelled','completed') NOT NULL DEFAULT 'pending', `source` enum('direct','booking','airbnb','other') NOT NULL DEFAULT 'direct', `notes` text, `specialRequests` text, `createdAt` timestamp NOT NULL DEFAULT (now()), `updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP, CONSTRAINT `reservations_id` PRIMARY KEY(`id`), CONSTRAINT `reservations_reservationCode_unique` UNIQUE(`reservationCode`), CONSTRAINT `unique_room_dates` UNIQUE(`roomId`,`checkIn`))",
  "command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 36o4V54CBLBAd6v.fabfd647c362 --database Av9WJ4mhVY4Z89SDVK3Qfi --execute CREATE TABLE IF NOT EXISTS `reviews` (`id` int AUTO_INCREMENT NOT NULL, `authorName` varchar(100) NOT NULL, `authorNationality` varchar(50), `rating` int NOT NULL, `comment` text NOT NULL, `commentFr` text, `commentEn` text, `commentDe` text, `source` varchar(50) DEFAULT 'booking', `stayDate` varchar(20), `isVisible` boolean NOT NULL DEFAULT true, `createdAt` timestamp NOT NULL DEFAULT (now()), CONSTRAINT `reviews_id` PRIMARY KEY(`id`)); CREATE TABLE IF NOT EXISTS `reservations` (`id` int AUTO_INCREMENT NOT NULL, `reservationCode` varchar(20) NOT NULL, `roomId` int NOT NULL, `clientId` int, `guestFirstName` varchar(100) NOT NULL, `guestLastName` varchar(100) NOT NULL, `guestEmail` varchar(320) NOT NULL, `guestPhone` varchar(30), `guestNationality` varchar(50), `checkIn` date NOT NULL, `checkOut` date NOT NULL, `adults` int NOT NULL DEFAULT 1, `children` int NOT NULL DEFAULT 0, `totalPrice` decimal(10,2) NOT NULL, `status` enum('pending','confirmed','cancelled','completed') NOT NULL DEFAULT 'pending', `source` enum('direct','booking','airbnb','other') NOT NULL DEFAULT 'direct', `notes` text, `specialRequests` text, `createdAt` timestamp NOT NULL DEFAULT (now()), `updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP, CONSTRAINT `reservations_id` PRIMARY KEY(`id`), CONSTRAINT `reservations_reservationCode_unique` UNIQUE(`reservationCode`), CONSTRAINT `unique_room_dates` UNIQUE(`roomId`,`checkIn`))",
  "rows": [],
  "messages": [],
  "stdout": "",
  "stderr": "",
  "execution_time_ms": 191
}