-- 001_create_murid_table.sql
CREATE TABLE IF NOT EXISTS `murid` (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `nis` VARCHAR(20) NOT NULL UNIQUE,
    `nama_lengkap` VARCHAR(100) NOT NULL,
    `tempat_lahir` VARCHAR(50) DEFAULT NULL,
    `tanggal_lahir` DATE DEFAULT NULL,
    `jenis_kelamin` ENUM('Laki-laki', 'Perempuan') DEFAULT NULL,
    `alamat` TEXT DEFAULT NULL,
    `no_telepon` VARCHAR(20) DEFAULT NULL,
    `email` VARCHAR(100) DEFAULT NULL,
    `foto` VARCHAR(255) DEFAULT 'default.png', -- Path to photo file
    `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
