fix: empId & sql

pull/712/head 2.2.3
bigfengyu 5 years ago
parent ea32d245b7
commit 12ee098a63

@ -4,7 +4,7 @@ CREATE TABLE `history_log` (
`entityId` int NOT NULL,
`changeLog` text COLLATE utf8mb4_unicode_ci NOT NULL,
`relatedJSONData` text COLLATE utf8mb4_unicode_ci,
`userId` int NOT NULL,
`userId` bigint(11) unsigned NOT NULL,
`createdAt` datetime NOT NULL,
`updatedAt` datetime NOT NULL,
`deletedAt` datetime DEFAULT NULL,

@ -180,7 +180,7 @@ export default class RepositoryService {
},
},
include: [{
attributes: ['id', 'fullname', 'empId'],
attributes: ['id', 'fullname'],
model: User,
as: 'user',
}],

Loading…
Cancel
Save