From de95412a6cb09eeb7a59132c997bf7191516bb6d Mon Sep 17 00:00:00 2001 From: openhands Date: Sun, 26 Jul 2026 20:56:31 +0200 Subject: [PATCH] Add migration for website_login_logs table --- prisma/migrations/0019_add_website_login_logs.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 prisma/migrations/0019_add_website_login_logs.sql diff --git a/prisma/migrations/0019_add_website_login_logs.sql b/prisma/migrations/0019_add_website_login_logs.sql new file mode 100644 index 00000000..690dd494 --- /dev/null +++ b/prisma/migrations/0019_add_website_login_logs.sql @@ -0,0 +1,9 @@ +CREATE TABLE IF NOT EXISTS `website_login_logs` ( + `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + `user_id` INT NOT NULL, + `ip` VARCHAR(45) NOT NULL, + `user_agent` VARCHAR(512) DEFAULT NULL, + `created_at` TIMESTAMP NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `website_login_logs_user_id_index` (`user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;