CREATE TABLE `vn`.`chat` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `senderFk` int(10) unsigned DEFAULT NULL,
  `recipient` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dated` date DEFAULT NULL,
  `checkUserStatus` tinyint(1) DEFAULT NULL,
  `message` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` tinyint(1) DEFAULT NULL,
  `attempts` int(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `chat_FK` (`senderFk`),
  CONSTRAINT `chat_FK` FOREIGN KEY (`senderFk`) REFERENCES `account`.`user` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;