2022-06-01 11:49:45 +00:00
|
|
|
CREATE TABLE `vn`.`chat` (
|
2022-06-02 12:55:39 +00:00
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`senderFk` int(10) unsigned DEFAULT NULL,
|
|
|
|
`recipient` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
|
2022-06-01 11:49:45 +00:00
|
|
|
`dated` date DEFAULT NULL,
|
|
|
|
`checkUserStatus` tinyint(1) DEFAULT NULL,
|
2022-06-02 12:55:39 +00:00
|
|
|
`message` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
|
2022-06-01 11:49:45 +00:00
|
|
|
`status` tinyint(1) DEFAULT NULL,
|
2022-06-02 12:55:39 +00:00
|
|
|
`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;
|