Database updates

This commit is contained in:
ivan-pelly
2026-02-21 08:01:29 -08:00
parent fa0903e7be
commit c9ed34ddbb
49 changed files with 699 additions and 331 deletions
+4 -3
View File
@@ -1,14 +1,15 @@
CREATE TABLE `user` (
`id_user` int NOT NULL,
`id_role` int DEFAULT NULL,
`id_user` char(36) NOT NULL,
`id_role` char(36) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`password_hash` varchar(255) DEFAULT NULL,
`password_salt` varchar(255) DEFAULT NULL,
`password_updated_at` timestamp NULL DEFAULT NULL,
`failed_login_attempts` int DEFAULT '0',
`locked_until` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id_user`),
KEY `id_role` (`id_role`),
KEY `user_ibfk_1` (`id_role`),
CONSTRAINT `user_ibfk_1` FOREIGN KEY (`id_role`) REFERENCES `role` (`id_role`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;