2019-11-27 00:46:00 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
|
|
|
class CreateAttendancesTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
2019-12-01 00:22:33 +01:00
|
|
|
Schema::create('attendances', function (Blueprint $table) {
|
2019-12-03 12:45:04 +01:00
|
|
|
$table->bigIncrements('id')->unique();
|
2019-11-27 00:46:00 +01:00
|
|
|
$table->integer('classes_id');
|
|
|
|
$table->integer('student_id_number');
|
|
|
|
$table->string('student_name');
|
|
|
|
$table->string('student_surname');
|
2020-01-17 17:10:54 +01:00
|
|
|
$table->integer('seat_number')->nullable();
|
2019-12-09 12:17:23 +01:00
|
|
|
$table->text('notes')->nullable();
|
2019-11-27 00:46:00 +01:00
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('attendances');
|
|
|
|
}
|
|
|
|
}
|