Pőcze Bence
d2bb1d4936
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
14 lines
601 B
SQL
14 lines
601 B
SQL
CREATE TABLE `events` (
|
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
`slug` varchar(255) CHARACTER SET ascii COLLATE ascii_bin DEFAULT NULL,
|
|
`community_id` int(10) unsigned NOT NULL,
|
|
`start` timestamp NOT NULL DEFAULT current_timestamp(),
|
|
`end` timestamp NOT NULL DEFAULT current_timestamp(),
|
|
`title` varchar(255) NOT NULL,
|
|
`description` text NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `community_id` (`community_id`),
|
|
UNIQUE KEY `slug` (`slug`),
|
|
CONSTRAINT `events_community_id` FOREIGN KEY (`community_id`) REFERENCES `communities` (`id`)
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
|