<?php namespace App\Models;

use CodeIgniter\Model;

class FigmaFilesModel extends Model
{
	protected $table = 'figma_files';
	protected $primaryKey = 'id';
	protected $useAutoIncrement = true;
	protected $returnType = 'array';
	protected $useSoftDeletes = false;
	protected $protectFields = true;
	protected $allowedFields = [
		'file_key',
		'name',
		'version',
		'last_modified',
		'editor_type',
		'last_synced_at',
	];

	protected $useTimestamps = true;
	protected $dateFormat = 'datetime';
	protected $createdField = 'created_at';
	protected $updatedField = 'updated_at';
}
