All Downloads are FREE. Search and download functionalities are using the official Maven repository.

money.rave.common.backend.entity.wallet.Balance.kt Maven / Gradle / Ivy

package money.rave.common.backend.entity.wallet

import java.math.BigDecimal
import javax.persistence.*

@Entity
@Table(name = "balance")
data class Balance(

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    val id: Long,

    @ManyToOne
    @JoinColumn(name = "wallet_id", referencedColumnName = "id", insertable = false, updatable = false, nullable = false)
    val wallet: Wallet,

    @Column(name = "asset", nullable = false, length = 64)
    val asset: String,

    @Column(name = "volume", nullable = false, precision = 40, scale = 8)
    val volume: BigDecimal,
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy