Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 15, 2020 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/fa2a2f23423f09d7ba15a461b208a793 to your computer and use it in GitHub Desktop.
Save parzibyte/fa2a2f23423f09d7ba15a461b208a793 to your computer and use it in GitHub Desktop.
<?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