<?php

namespace LaraBB\Forum\Models;

use App\Traits\Uuid;
use App\Traits\Who;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * Class Permission
 *
 * @property int $id
 * @property string $uuid
 * @property Carbon $created_at
 * @property string $created_uuid
 * @property Carbon $updated_at
 * @property string $updated_uuid
 * @property string $group_uuid
 * @property string $forum_uuid
 * @property boolean $show_forum
 * @property boolean $show_threads
 * @property boolean $show_posts
 * @property boolean $create_threads
 * @property boolean $create_posts
 * @property boolean $edit_threads
 * @property boolean $edit_posts
 * @property boolean $delete_threads
 * @property boolean $delete_posts
 *
 * @package LaraBB\Forum\Models
 */
class Permission extends Model
{
    use Uuid;
    use Who;

    /**
     * @var string
     */
    protected $table = 'forums_has_group_permissions';
    /**
     * @var string
     */
    protected $primaryKey = 'uuid';
    /**
     * @var string[]
     */
    protected $fillable = [
        'uuid',
        'created_at',
        'created_uuid',
        'updated_at',
        'updated_uuid',
        'group_uuid',
        'forum_uuid',
        'show_forum',
        'show_threads',
        'show_posts',
        'create_threads',
        'create_posts',
        'edit_threads',
        'edit_posts',
        'delete_threads',
        'delete_posts'
    ];
}