text: CREATE TABLE `SITE_DB`.`user_log_agreements` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `user_id` int(11) NOT NULL,
  
    `name` varchar(255) NOT NULL DEFAULT '',
  
    `accepted_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  
    PRIMARY KEY (`id`),
    KEY `user_id` (`user_id`),
    CONSTRAINT `user_log_agreements_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `SITE_DB`.`users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  