openvk/install/sqls/00019-reports.sql
Alexander Minkin 5710d131fd
SQL: Reorder migration files
The issue was that numbers were duplicating, so I decided to fix them
2023-09-23 01:18:33 +03:00

11 lines
392 B
SQL

CREATE TABLE IF NOT EXISTS `reports` (
`id` bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`user_id` bigint(20) NOT NULL,
`target_id` bigint(20) NOT NULL,
`type` varchar(64) NOT NULL,
`reason` text NOT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`created` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
ALTER TABLE `reports` ADD INDEX (`id`);