diff --git a/migrations/20230730134827_stats.sql b/migrations/20230730134827_stats.sql new file mode 100644 index 0000000..5ef248b --- /dev/null +++ b/migrations/20230730134827_stats.sql @@ -0,0 +1,9 @@ +CREATE TABLE stat ( + `id` BIGINT NOT NULL AUTO_INCREMENT, + `utc_time` DATETIME NOT NULL DEFAULT NOW(), + `type` ENUM('reminder_sent', 'reminder_failed'), + `reminder_id` INT UNSIGNED, + `message` TEXT, + + PRIMARY KEY (`id`) +);