feat: add niuzi bank commands

This commit is contained in:
2024-09-24 15:41:24 +08:00
parent e51c7ecf04
commit 765a1a60e6
14 files changed
+486 -197

No files matched your search

@@ -0,0 +1,26 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/9/24
*/
package cn.rtast.fancybot.entity.db
import org.jetbrains.exposed.sql.Table
object NiuziBankTable: Table("niuzi_bank") {
val id = long("id").autoIncrement()
val userId = long("userId").uniqueIndex()
val timestamp = long("timestamp")
val balance = double("balance")
val interestRate = double("interest_rate")
override val primaryKey = PrimaryKey(id)
}
data class NiuziBankAccount(
val userId: Long,
val balance: Double,
val interestRate: Double,
val timestamp: Long
)