<?php namespace App\Models;

use CodeIgniter\Model;

class FigmaFileVersionsModel extends Model
{
	protected $table = 'figma_file_versions';
	protected $primaryKey = 'id';
	protected $useAutoIncrement = true;
	protected $returnType = 'array';
	protected $useSoftDeletes = false;
	protected $protectFields = true;
	protected $allowedFields = [
		'file_id',
		'figma_version_id',
		'version',
		'label',
		'description',
		'name',
		'editor_type',
		'figma_user_id',
		'last_modified_figma',
		'created_at_figma',
	];

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