<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class UserFacePhoto extends Model
{
    protected $table = 'user_face_photos';

    protected $fillable = [
        'user_id',
        'file_path',
        'storage_path',
        'is_default',
    ];

    protected $hidden = ['storage_path'];

    protected $casts = [
        'is_default' => 'boolean',
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
