- add cv info

This commit is contained in:
2023-06-16 14:23:34 +02:00
parent 390c5b8087
commit d35421a97e
5 changed files with 111 additions and 0 deletions

23
app/Models/CVInfo.php Normal file
View 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');
}
}