This commit is contained in:
32
api/app/Models/Ambulatorio/Dente.php
Normal file
32
api/app/Models/Ambulatorio/Dente.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Ambulatorio;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class Dente extends Model
|
||||
{
|
||||
protected $table = 'ambulatorio_dente';
|
||||
|
||||
protected $casts = [
|
||||
'is_deciduo' => 'boolean',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'arcada_id',
|
||||
'numero',
|
||||
'is_deciduo',
|
||||
'ordem',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function arcada()
|
||||
{
|
||||
return $this->belongsTo(ArcadaDentaria::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user