Created
January 15, 2020 03:38
-
-
Save parzibyte/d89fe68d218fdd0e44882bcb2afb465b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Schema::create('asistencia', function (Blueprint $table) { | |
$table->bigIncrements('id'); | |
$table->unsignedBigInteger('id_alumno'); | |
$table->dateTime("fecha_y_hora"); | |
$table->enum("estado", ["a", "r", "f"]);// <-- Aquí el enum | |
$table->foreign("id_alumno") | |
->references("id") | |
->on("alumnos") | |
->onDelete("cascade") | |
->onUpdate("cascade"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment