openvk/install/sqls/00052-blacklist.sql

9 lines
308 B
MySQL
Raw Normal View History

2024-12-11 16:56:21 +03:00
CREATE TABLE `blacklist_relations` (
2023-07-02 19:07:51 +03:00
`index` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
`author` BIGINT UNSIGNED NOT NULL,
`target` BIGINT UNSIGNED NOT NULL,
2023-07-20 02:35:09 +03:00
`created` BIGINT UNSIGNED NOT NULL,
2023-07-02 19:07:51 +03:00
PRIMARY KEY (`index`)
) ENGINE = InnoDB;
ALTER TABLE `blacklist_relations` ADD INDEX(`author`, `target`);