crm-summit/app/Models/FigmaFileVersionsModel.php
mahdahar 9138e0286a feat(figma): add DB-backed dashboard filters and paginated APIs
- add Figma API endpoints for summary, users, snapshots, comments, and admin sync
- support date and user filters plus pagination for snapshots and comments
- expand sync service and schema to store Figma user ids
- refresh dashboard UI with summary cards, filters, pagination, and sync action
- fold figma_user_id into base migration and remove extra migration
2026-04-28 09:01:32 +07:00

32 lines
687 B
PHP

<?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',
'user_name',
'last_modified_figma',
'created_at_figma',
];
protected $useTimestamps = true;
protected $dateFormat = 'datetime';
protected $createdField = 'created_at';
protected $updatedField = 'updated_at';
}