ldc-supportweb/app/Models/GitlabUser.php
2026-06-05 17:05:46 +02:00

41 lines
978 B
PHP

<?php
declare(strict_types=1);
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $id Primary key of the gitlab user.
* @property int $user_id Gitlab id of the user.
* @property int $gitlab_id Id of the user.
* @property-read \Illuminate\Support\Carbon $created_at Date the gitlab user was created.
* @property-read \Illuminate\Support\Carbon $updated_at Date the gitlab user was updated.
*/
class GitlabUser extends Model
{
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
#[\Override]
protected $fillable = [
'user_id',
'gitlab_id',
];
// * RELATIONSHIPS.
/**
* Get user of the gitlab id.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\User,$this>
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}