Files
crawler-plugin/backend-java/src/main/resources/db/V41__patrol_delete_condition.sql

9 lines
366 B
SQL

CREATE TABLE IF NOT EXISTS biz_patrol_delete_condition (
id BIGINT PRIMARY KEY AUTO_INCREMENT,
user_id BIGINT NOT NULL,
condition_text VARCHAR(500) NOT NULL,
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE KEY uk_patrol_delete_condition_user_text (user_id, condition_text),
KEY idx_patrol_delete_condition_user_id (user_id)
);