1
0
Andy Esnard 1 жил өмнө
parent
commit
62ca049777
1 өөрчлөгдсөн 10 нэмэгдсэн , 0 устгасан
  1. 10 0
      init-db.sql

+ 10 - 0
init-db.sql

@@ -19,6 +19,16 @@ CREATE TABLE IF NOT EXISTS `conversation_history` (
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
 
+CREATE TABLE IF NOT EXISTS `reminders` (
+  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `user_id` varchar(50) NOT NULL DEFAULT '0',
+  `channel_id` varchar(50) NOT NULL DEFAULT 'current_timestamp()',
+  `remind_at` datetime NOT NULL DEFAULT current_timestamp(),
+  `content` text NOT NULL,
+  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+
 /*!40103 SET TIME_ZONE=IFNULL(@OLD_TIME_ZONE, 'system') */;
 /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
 /*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;