'required|integer', 'email' => 'required|valid_email|max_length[255]', 'role' => 'required|in_list[admin,editor,viewer]', 'token' => 'required|max_length[255]', 'expires_at' => 'required', ]; protected $validationMessages = []; protected $skipValidation = false; protected $cleanValidationRules = true; // Callbacks protected $allowCallbacks = true; protected $beforeInsert = []; protected $afterInsert = []; protected $beforeUpdate = []; protected $afterUpdate = []; protected $beforeFind = []; protected $afterFind = []; protected $beforeDelete = []; protected $afterDelete = []; public function getPendingByWorkspace(int $workspaceId): array { return $this->where('workspace_id', $workspaceId) ->where('accepted', 0) ->orderBy('created_at', 'DESC') ->findAll(); } }