Joywork/sql/complex_room_notes.sql
2026-05-22 21:21:54 +03:00

8 lines
388 B
SQL

CREATE TABLE `complex_room_notes` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`room_id` bigint(20) unsigned NOT NULL,
`note` text,
PRIMARY KEY (`id`),
KEY `complex_room_notes_complex_rooms_FK` (`room_id`),
CONSTRAINT `complex_room_notes_complex_rooms_FK` FOREIGN KEY (`room_id`) REFERENCES `complex_rooms` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8;