diff --git a/application/models/Unavailabilities_model.php b/application/models/Unavailabilities_model.php index 5bbf6bea..aa139816 100644 --- a/application/models/Unavailabilities_model.php +++ b/application/models/Unavailabilities_model.php @@ -28,6 +28,23 @@ class Unavailabilities_model extends EA_Model { 'id_services' => 'integer', ]; + /** + * @var array + */ + protected $api_resource = [ + 'id' => 'id', + 'book' => 'book_datetime', + 'start' => 'start_datetime', + 'end' => 'end_datetime', + 'location' => 'location', + 'color' => 'color', + 'status' => 'status', + 'notes' => 'notes', + 'hash' => 'hash', + 'providerId' => 'id_users_provider', + 'googleCalendarId' => 'id_google_calendar', + ]; + /** * Save (insert or update) an unavailability. *