CREATE TABLE IF NOT EXISTS sys_notice_read (
    read_id BIGINT NOT NULL AUTO_INCREMENT,
    notice_id INT NOT NULL,
    user_id BIGINT NOT NULL,
    read_time DATETIME NOT NULL,
    PRIMARY KEY (read_id),
    UNIQUE KEY uk_user_notice (user_id, notice_id),
    KEY idx_notice_id (notice_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Notice read records';
