mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 06:27:37 +00:00
Database objects initial check in
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
CREATE TABLE `password_reset_token` (
|
||||
`id_password_reset_token` int NOT NULL,
|
||||
`id_user` int DEFAULT NULL,
|
||||
`token_hash` varchar(255) DEFAULT NULL,
|
||||
`expires_at` timestamp NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`used_at` timestamp NULL DEFAULT NULL,
|
||||
`invalidated_at` timestamp NULL DEFAULT NULL,
|
||||
`request_ip` varchar(45) DEFAULT NULL,
|
||||
PRIMARY KEY (`id_password_reset_token`),
|
||||
UNIQUE KEY `uq_token_hash` (`token_hash`),
|
||||
KEY `idx_user_created` (`id_user`,`created_at`),
|
||||
CONSTRAINT `password_reset_token_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
Reference in New Issue
Block a user