14 lines
603 B
SQL
14 lines
603 B
SQL
CREATE TABLE IF NOT EXISTS `sms_logs` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`client_id` int(11) DEFAULT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
`sender` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`recipient` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`message` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`status` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
|
PRIMARY KEY (`id`),
|
|
KEY `client_id` (`client_id`),
|
|
KEY `user_id` (`user_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|