36352-vm/db/migrations/003_create_attendance_table.sql
Flatlogic Bot e15fa31a20 t6
2025-11-27 10:42:12 +00:00

7 lines
250 B
SQL

CREATE TABLE IF NOT EXISTS attendance (
id INT AUTO_INCREMENT PRIMARY KEY,
student_id INT NOT NULL,
attendance_date DATE NOT NULL,
status ENUM('present', 'absent', 'late') NOT NULL,
FOREIGN KEY (student_id) REFERENCES users(id)
);