<?php

namespace App\Models\api\v1;

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

class QrCode extends Model
{
    use HasFactory;

    public $table = "qrcode";

    protected $fillable = [
        'num_carte',
        'titre',
        'sous_titre',
        'couleur',
        'status',
        'qr_code',
        'id_space'
    ];

    public function cartes_spaces()
    {
        return $this->belongsTo(Space::class, "id_space");
    }
}
