diff --git a/database/v2020_07_06_history_log.sql b/database/v2020_07_06_history_log.sql index d0d9754..43a178f 100644 --- a/database/v2020_07_06_history_log.sql +++ b/database/v2020_07_06_history_log.sql @@ -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, diff --git a/src/service/repository.ts b/src/service/repository.ts index 6cf32bd..63f53de 100644 --- a/src/service/repository.ts +++ b/src/service/repository.ts @@ -180,7 +180,7 @@ export default class RepositoryService { }, }, include: [{ - attributes: ['id', 'fullname', 'empId'], + attributes: ['id', 'fullname'], model: User, as: 'user', }],