<?php

namespace Mtc\Plugins\BlockManager\Models;

use Illuminate\Database\Eloquent\Model;

class BlockManagerBlock extends Model
{
    protected $table = 'block_manager_blocks';

    protected $fillable = [
        'uuid',
        'slug',
        'name',
        'description',
        'category_id',
        'icon',
        'structure_json',
        'last_shipped_at',
        'shipped_block_registry_id',
    ];

    protected $casts = [
        'structure_json' => 'array',
        'last_shipped_at' => 'datetime',
        'category_id' => 'integer',
        'shipped_block_registry_id' => 'integer',
    ];
}
