'decimal:2', 'active' => 'boolean', ]; } public function household(): BelongsTo { return $this->belongsTo(Household::class); } public function category(): BelongsTo { return $this->belongsTo(Category::class); } public function transactions(): HasMany { return $this->hasMany(Transaction::class); } public function wasGeneratedFor(int $year, int $month): bool { return $this->last_generated_year === $year && $this->last_generated_month === $month; } }