- add cv info
This commit is contained in:
23
app/Models/CVInfo.php
Normal file
23
app/Models/CVInfo.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class CVInfo extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'cv_infos';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
public function cv(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(CV::class, ownerKey: 'cv_id');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user