Skip to content

Instantly share code, notes, and snippets.

@ronakjain2012
Created March 16, 2025 10:57
Show Gist options
  • Save ronakjain2012/0ba2ead38e7f2adbf1530435847a8a6a to your computer and use it in GitHub Desktop.
Save ronakjain2012/0ba2ead38e7f2adbf1530435847a8a6a to your computer and use it in GitHub Desktop.
logger table structure, Log table structure for event or activity logging
-- scriptdb.logs definition
CREATE TABLE `logs` (
`id` int NOT NULL AUTO_INCREMENT,
`traceId` text,
`eventId` text,
`eventName` text,
`actionType` text,
`userId` text,
`msisdn` text,
`key1` text,
`key2` text,
`value1` text,
`value2` text,
`source` text,
`status` text,
`createdAt` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment