You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
549 B
SQL
14 lines
549 B
SQL
CREATE TABLE `history_log` (
|
|
`id` int NOT NULL AUTO_INCREMENT,
|
|
`entityType` int NOT NULL,
|
|
`entityId` int NOT NULL,
|
|
`changeLog` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`relatedJSONData` text COLLATE utf8mb4_unicode_ci,
|
|
`userId` int NOT NULL,
|
|
`createdAt` datetime NOT NULL,
|
|
`updatedAt` datetime NOT NULL,
|
|
`deletedAt` datetime DEFAULT NULL,
|
|
CONSTRAINT `hisotry_log_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `Users` (`id`) ON UPDATE CASCADE,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|