Fix verification_attempts table definition in init-db.sql to match running schema and php queries
This commit is contained in:
+5
-6
@@ -43,14 +43,13 @@ CREATE TABLE users (
|
|||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
|
||||||
CREATE TABLE verification_attempts (
|
CREATE TABLE verification_attempts (
|
||||||
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
||||||
email VARCHAR(255) NOT NULL,
|
email VARCHAR(255) NOT NULL,
|
||||||
attempts INT NOT NULL DEFAULT 1,
|
attempts INT NOT NULL DEFAULT 0,
|
||||||
code_hash VARCHAR(255) NOT NULL,
|
|
||||||
expires_at DATETIME NOT NULL,
|
|
||||||
last_attempt_at DATETIME NOT NULL,
|
last_attempt_at DATETIME NOT NULL,
|
||||||
PRIMARY KEY (id),
|
locked_until DATETIME DEFAULT NULL,
|
||||||
UNIQUE KEY uq_verification_attempts_email (email)
|
code_hash VARCHAR(128) DEFAULT NULL,
|
||||||
|
expires_at DATETIME DEFAULT NULL,
|
||||||
|
PRIMARY KEY (email)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
|
||||||
-- Insert Admin and Manager demo accounts (Password: password)
|
-- Insert Admin and Manager demo accounts (Password: password)
|
||||||
|
|||||||
Reference in New Issue
Block a user