You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
519 B
13 lines
519 B
CREATE TABLE `lmmc`.`event_comment` (
|
|
`id` INT NOT NULL AUTO_INCREMENT ,
|
|
`name` VARCHAR(100) NOT NULL ,
|
|
`rate` SMALLINT(2) NOT NULL ,
|
|
`date` TIMESTAMP NOT NULL ,
|
|
`comment` TEXT NOT NULL ,
|
|
`status` TINYINT(1) NOT NULL DEFAULT '1',
|
|
`event_id` INT(10) NOT NULL ,
|
|
PRIMARY KEY (`id`));
|
|
|
|
ALTER TABLE `event_comment`
|
|
ADD KEY `fk_event_comments_event_id` (`event_id`),
|
|
ADD CONSTRAINT `fk_event_comments_event_id` FOREIGN KEY (`event_id`) REFERENCES `event` (`event_id`) ON UPDATE CASCADE;
|