1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 21:39:21 +00:00
comunicapiv3/docs/migration.sql

11 lines
285 B
MySQL
Raw Normal View History

2022-03-16 18:22:37 +00:00
-- Create report table
CREATE TABLE `comunic_reports` (
2022-03-17 16:26:13 +00:00
`id` INT NOT NULL AUTO_INCREMENT,
2022-03-16 18:22:37 +00:00
`user_id` INT NOT NULL,
2022-03-17 16:26:13 +00:00
`target_type` VARCHAR(25) NOT NULL,
2022-03-16 18:22:37 +00:00
`target_id` INT NOT NULL,
`time` INT NOT NULL,
2022-03-17 16:26:13 +00:00
`cause` VARCHAR(20) NOT NULL,
2022-03-16 18:22:37 +00:00
`comment` TEXT NULL,
PRIMARY KEY (`id`));