'integer', 'start_date' => 'date', 'due_date' => 'date', 'completed_at' => 'date', 'sort_order' => 'integer', 'imported_at' => 'datetime', ]; public function attachments(): HasMany { return $this->hasMany(SystemizationTodoAttachment::class, 'systemization_todo_id') ->orderBy('id'); } public function isCompleted(): bool { return $this->status === self::STATUS_COMPLETED; } }