<?php

namespace App\Models;

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

class Galeria extends Model
{
    CONST CREATED_AT = "criado_em";
    CONST UPDATED_AT = null;

    protected $primaryKey = "galeria_id";

    use HasFactory;

    protected $fillable = [
        'path_imagem',
        'tipo_galeria',
        'criado_em',
        'galeria_de_id',
        'galeria_de_type'
    ];

    public function galeriaDe()
    {
        return $this->morphTo();
    }
}
