Lines 1220-1225
CREATE TABLE `bookings` (
Link Here
|
1220 |
`creation_date` timestamp DEFAULT current_timestamp() COMMENT 'the timestamp for when a booking was created', |
1220 |
`creation_date` timestamp DEFAULT current_timestamp() COMMENT 'the timestamp for when a booking was created', |
1221 |
`modification_date` timestamp DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT 'the timestamp for when a booking has been updated', |
1221 |
`modification_date` timestamp DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT 'the timestamp for when a booking has been updated', |
1222 |
`status` enum('new', 'cancelled', 'completed') NOT NULL DEFAULT 'new' COMMENT 'current status of the booking', |
1222 |
`status` enum('new', 'cancelled', 'completed') NOT NULL DEFAULT 'new' COMMENT 'current status of the booking', |
|
|
1223 |
`cancellation_reason` varchar(80) DEFAULT NULL COMMENT 'optional authorised value BOOKING_CANCELLATION', |
1223 |
PRIMARY KEY (`booking_id`), |
1224 |
PRIMARY KEY (`booking_id`), |
1224 |
KEY `patron_id` (`patron_id`), |
1225 |
KEY `patron_id` (`patron_id`), |
1225 |
KEY `biblio_id` (`biblio_id`), |
1226 |
KEY `biblio_id` (`biblio_id`), |
1226 |
- |
|
|