CREATE TABLE IF NOT EXISTS `funsecretos`.`activity_user` (
  `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` INT(11) UNSIGNED NOT NULL,
  `message` VARCHAR(100) NOT NULL,
  `type` TINYINT(4) NOT NULL DEFAULT 0 COMMENT '0-Otro, 1-Finalizo curso, 2-Presento evaluacion, 3-Pregunta curso, 4-Solicito participacion proyecto, 5-Publico en proyecto, 6-Comento en proyecto, 7-Pregunto en consultorio, 8-Cambio su perfil. ',
  `created_at` TIMESTAMP NULL,
  `updated_at` TIMESTAMP NULL,
  PRIMARY KEY (`id`),
  INDEX `fk_activity_user_users1_idx` (`user_id` ASC),
  CONSTRAINT `fk_activity_user_users1`
    FOREIGN KEY (`user_id`)
    REFERENCES `funsecretos`.`users` (`id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB;