<?php

namespace App\Models;

use CodeIgniter\Model;

class MidiaModel extends Model
{
    protected $DBGroup          = 'default';
    protected $table            = 'midia';
    protected $primaryKey       = 'id_midia';
    protected $useAutoIncrement = true;
    protected $insertID         = 0;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $protectFields    = true;
    protected $allowedFields    = [
                                    'id_autor',
                                    'mid_nome',
                                    'mid_file',
                                    'mid_descricao',
                                    'mid_vencimento',
                                   ];

    // Dates
    protected $useTimestamps = false;
    protected $dateFormat    = 'datetime';
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
    protected $deletedField  = 'deleted_at';

    // Validation
    protected $validationRules      = [];
    protected $validationMessages   = [];
    protected $skipValidation       = false;
    protected $cleanValidationRules = true;


}