39249-vm/db/migrations/001_create_contact_requests.sql
Flatlogic Bot 36ead92a6c 1
2026-03-20 12:52:25 +00:00

12 lines
434 B
SQL

-- Create contact requests table
CREATE TABLE IF NOT EXISTS contact_requests (
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(120) NOT NULL,
email VARCHAR(160) NOT NULL,
message TEXT NOT NULL,
status VARCHAR(30) NOT NULL DEFAULT 'new',
ip_address VARCHAR(45) DEFAULT NULL,
user_agent VARCHAR(255) DEFAULT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;