aboutsummaryrefslogtreecommitdiffstats
path: root/source/app/Models/Connection.php
blob: e634c26e4a1f3b4e18961d527777a6295d9bade8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Connection extends Model
{
    use HasFactory;

    protected $fillable = [
        'student_id',
        'company_id',
        'status',
        'skill_match_percentage',
    ];

    // Relaties (optioneel)
    public function student(): BelongsTo
    {
        return $this->belongsTo(Student::class);
    }

    public function company(): BelongsTo
    {
        return $this->belongsTo(Company::class);
    }
}