Skip to content

//room/dev.atick.storage.room.models/BudgetEntity

BudgetEntity

[androidJvm]\ data class BudgetEntity(val month: Long, val amount: Double, val description: String? = null)

Entity representing a budget in the database.

Constructors

BudgetEntity [androidJvm]
constructor(month: Long, amount: Double, description: String? = null)

Properties

Name Summary
amount [androidJvm]
val amount: Double
The amount allocated for the budget.
description [androidJvm]
val description: String? = null
An optional description of the budget.
month [androidJvm]
val month: Long
The timestamp of the start of the month, used as the primary key.