renamed server/ to api/ since this is really only the api portion of the typical fc server
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DROP TABLE `messages`;
|
||||
11
server-api/migrations/2020-07-06-022319_messages/up.sql
Normal file
11
server-api/migrations/2020-07-06-022319_messages/up.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- Time stamp is _not_ in ms
|
||||
CREATE TABLE IF NOT EXISTS `messages`(
|
||||
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`time` BIGINT NOT NULL,
|
||||
`content` VARCHAR(2048) NOT NULL,
|
||||
`author_id` BIGINT UNSIGNED NOT NULL,
|
||||
`channel_name` VARCHAR(255) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
FOREIGN KEY (`author_id`) REFERENCES members(`id`),
|
||||
FOREIGN KEY (`channel_name`) REFERENCES channels(`name`)
|
||||
);
|
||||
Reference in New Issue
Block a user