Modified API and created its tests
This commit is contained in:
@@ -19,7 +19,7 @@ class CreateSiswasTable extends Migration
|
||||
$table->string('nisn');
|
||||
$table->string('kelas');
|
||||
$table->string('tempat_lahir');
|
||||
$table->string('tanggal_lahir');
|
||||
$table->date('tanggal_lahir');
|
||||
$table->boolean('lulus');
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
@@ -15,11 +15,12 @@ class CreateAccessLogsTable extends Migration
|
||||
{
|
||||
Schema::create('access_logs', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedInteger('siswa_id');
|
||||
$table->unsignedBigInteger('siswa_id');
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
$table->foreign('siswa_id')
|
||||
->references('id')
|
||||
->on('siswas')
|
||||
->onUpdate('cascade')
|
||||
->onDelete('restrict');
|
||||
|
||||
Reference in New Issue
Block a user