fix logic and tests, update docker CI file
This commit is contained in:
@@ -4,12 +4,14 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use App\Models\BaseModel;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class Student extends BaseModel
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'students';
|
||||
|
||||
/**
|
||||
@@ -38,7 +40,7 @@ class Student extends BaseModel
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'school_id' => 'integer',
|
||||
'school_id' => 'string',
|
||||
'age' => 'integer',
|
||||
'photo_consent' => 'boolean',
|
||||
'is_new' => 'boolean',
|
||||
@@ -392,4 +394,4 @@ class Student extends BaseModel
|
||||
'is_active' => ['nullable', 'boolean'],
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user