36416-vm/db/migrations/002_create_reports_table.sql
Flatlogic Bot 6cef6ef090 Deris Ai
2025-11-28 17:47:44 +00:00

8 lines
273 B
SQL

CREATE TABLE IF NOT EXISTS reports (
id INT AUTO_INCREMENT PRIMARY KEY,
user_id INT NOT NULL,
report_type VARCHAR(255) NOT NULL,
report_data JSON NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (user_id) REFERENCES users(id)
);