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.
This commit is contained in:
Heavy Bob
2022-09-10 12:35:36 +10:00
committed by GitHub
parent 5f63779c89
commit 17bc4768b7
+2
View File
@@ -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;
-- --------------------------------------------------------