Database objects initial check in

This commit is contained in:
ivan-pelly
2026-02-18 06:15:53 -08:00
parent 41a0dbca2a
commit f4cb4fe3cc
16 changed files with 413 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
CREATE TABLE `password_history` (
`id_password_history` int NOT NULL,
`id_user` int DEFAULT NULL,
`password_hash` varchar(255) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id_password_history`),
KEY `idx_user_created` (`id_user`,`created_at`),
CONSTRAINT `password_history_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;