<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class ImageFaceCapture extends Model
{
    use SoftDeletes;

    /**
     * @var string
     */
    protected $table = 'image_face_capture';

    /**
     * @var string[]
     */
    protected $fillable = [
        'user_id',
        'center',
        'top',
        'top_right',
        'right',
        'bottom_right',
        'bottom',
        'bottom_left',
        'left',
        'top_left',
    ];

    /**
     * @var string[]
     */
    protected $dates = [
        'created_at',
        'updated_at',
        'deleted_at'
    ];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function user()
    {
        return $this->belongsTo(User::class, 'user_id', 'id');
    }

}
