Created
January 15, 2020 02:53
-
-
Save parzibyte/fa2a2f23423f09d7ba15a461b208a793 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"]);//asistencia,retardo,falta | |
$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