1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-19 07:55:17 +00:00

Update database structure

This commit is contained in:
2022-03-16 19:22:37 +01:00
parent 5cb8ec6dba
commit 0eebfbe98a
7 changed files with 50 additions and 15 deletions

View File

@ -305,3 +305,12 @@ CREATE TABLE `comunic_admin_log` (
`time` INT NULL,
`action` VARCHAR(255) NULL,
PRIMARY KEY (`id`));
CREATE TABLE `comunic_reports` (
`id` INT NOT NULL,
`user_id` INT NOT NULL,
`target` VARCHAR(25) NOT NULL,
`target_id` INT NOT NULL,
`time` INT NOT NULL,
`comment` TEXT NULL,
PRIMARY KEY (`id`));

View File

@ -1 +1,9 @@
-- Nothing yet
-- Create report table
CREATE TABLE `comunic_reports` (
`id` INT NOT NULL,
`user_id` INT NOT NULL,
`target` VARCHAR(25) NOT NULL,
`target_id` INT NOT NULL,
`time` INT NOT NULL,
`comment` TEXT NULL,
PRIMARY KEY (`id`));