From 17bc4768b7457ce6d8b64ae3867549e692b83d12 Mon Sep 17 00:00:00 2001 From: Heavy Bob Date: Sat, 10 Sep 2022 12:35:36 +1000 Subject: [PATCH] User Timestamps by default This small change will allow anyone using legacy to quickly see via sql when a user account was created and when the user was last active. --- [SQL]/legacy.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/[SQL]/legacy.sql b/[SQL]/legacy.sql index d7351c34..a838b9df 100644 --- a/[SQL]/legacy.sql +++ b/[SQL]/legacy.sql @@ -400,6 +400,8 @@ CREATE TABLE `users` ( `id` int(11) NOT NULL, `disabled` TINYINT(1) NULL DEFAULT '0', `last_property` varchar(255) DEFAULT NULL + `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, + `last_seen` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB; -- --------------------------------------------------------