File: /var/www/informe-admision/app/Models/DataUploadsDetails.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class DataUploadsDetails extends Model
{
protected $table = 'data_uploads_details';
protected $primaryKey = 'id';
public $timestamps = false;
protected $fillable = [
'data_upload_id',
'num_row',
'load_status',
'error',
'old_family',
'new_family',
'ex_bradford_family',
'ex_student',
'application_year',
'application_level',
'current_status',
'applicant_father_lastname',
'applicant_mother_lastname',
'applicant_names',
'applicant_birth_date',
'applicant_rut',
'mother_email',
'father_email',
'guardian_father_lastname',
'guardian_mother_lastname',
'guardian_names',
'guardian_rut',
'guardian_email',
'interview_observation',
'interviewers',
'interviewee_comment',
'family_key',
'user_created',
'created_at',
];
public function data_upload()
{
return $this->belongsTo('App\Models\DataUploads', 'data_upload_id');
}
}