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

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

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

import money.rave.common.backend.date.utc
import money.rave.common.backend.enumeration.Market
import java.time.ZonedDateTime
import javax.persistence.*

@Entity
@Table(name = "wallet")
data class Wallet(

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    val id: Int? = null,

    @Column(name = "market", nullable = false)
    @Enumerated(EnumType.STRING)
    val market: Market? = null,

    @OneToMany
    val balances: List = emptyList(),

    @Column(name = "created_at", nullable = false)
    val createdAt: ZonedDateTime = utc(),
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy