<?php namespace App\Models;

use CodeIgniter\Model;

class FigmaCommentsModel extends Model
{
	protected $table = 'figma_comments';
	protected $primaryKey = 'id';
	protected $useAutoIncrement = true;
	protected $returnType = 'array';
	protected $useSoftDeletes = false;
	protected $protectFields = true;
	protected $allowedFields = [
		'file_id',
		'figma_comment_id',
		'user_name',
		'message',
		'is_resolved',
		'resolved_at',
		'created_at_figma',
		'client_meta_json',
	];

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