|SyncState newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|SyncState newQuery() * @method static \Illuminate\Database\Eloquent\Builder|SyncState query() * @method static \Illuminate\Database\Eloquent\Builder|SyncState whereBatchId($value) * @method static \Illuminate\Database\Eloquent\Builder|SyncState whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|SyncState whereDateFrom($value) * @method static \Illuminate\Database\Eloquent\Builder|SyncState whereDateTo($value) * @method static \Illuminate\Database\Eloquent\Builder|SyncState whereEntity($value) * @method static \Illuminate\Database\Eloquent\Builder|SyncState whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|SyncState whereProcessedPages($value) * @method static \Illuminate\Database\Eloquent\Builder|SyncState whereStartedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|SyncState whereStatus($value) * @method static \Illuminate\Database\Eloquent\Builder|SyncState whereTotalPages($value) * @method static \Illuminate\Database\Eloquent\Builder|SyncState whereUpdatedAt($value) * @mixin \Eloquent */ class SyncState extends Model { protected $table = 'sync_states'; protected $fillable = [ 'entity', 'date_from', 'date_to', 'status', 'batch_id', 'total_pages', 'processed_pages', 'started_at', ]; protected function casts(): array { return [ 'date_from' => 'date', 'date_to' => 'date', 'started_at' => 'datetime', 'status' => SyncStatus::class, 'total_pages' => 'integer', 'processed_pages' => 'integer', ]; } public function incrementProcessedPages(): void { $this->increment('processed_pages'); } }