user name+id now added to params and channels table now accepts channel_name

This commit is contained in:
shockrah
2020-07-30 23:50:03 -07:00
parent b8c4cee57f
commit 000a75c81f
5 changed files with 21 additions and 17 deletions

View File

@@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS `messages`(
`time` BIGINT NOT NULL,
`content` VARCHAR(2048) NOT NULL,
`author_id` BIGINT UNSIGNED NOT NULL,
`channel_id` BIGINT UNSIGNED NOT NULL,
`channel_name` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`),
FOREIGN KEY (`author_id`) REFERENCES members(`id`),
FOREIGN KEY (`channel_id`) REFERENCES channels(`id`)