Fix conversation table creation
This commit is contained in:
@@ -13,8 +13,8 @@ create table `Conversations` (
|
||||
`attachment` varchar(100) NULL,
|
||||
`employee` bigint(20) NOT NULL,
|
||||
`target` bigint(20) NULL,
|
||||
`created` DATETIME default '0000-00-00 00:00:00',
|
||||
`updated` DATETIME default '0000-00-00 00:00:00',
|
||||
`created` DATETIME default NULL,
|
||||
`updated` DATETIME default NULL,
|
||||
`timeint` BIGINT(20) NOT NULL,
|
||||
primary key (`id`),
|
||||
unique key `KEY_Conversations_attachment` (`attachment`),
|
||||
@@ -33,7 +33,7 @@ create table `ConversationUserStatus` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`employee` bigint(20) NOT NULL,
|
||||
`status` varchar(15) NULL,
|
||||
`seen_at` DATETIME default '0000-00-00 00:00:00',
|
||||
`seen_at` DATETIME default NULL,
|
||||
primary key (`id`),
|
||||
unique key `KEY_ConversationLastSeen_employee` (`employee`),
|
||||
index `KEY_ConversationLastSeen_seen_at` (`seen_at`),
|
||||
|
||||
Reference in New Issue
Block a user