feat: fix bug and useing sqlite to store data
This commit is contained in:
13 files changed
+185
-89
No files matched your search
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright © 2024 RTAkland
|
||||
* Author: RTAkland
|
||||
* Date: 2024/8/30
|
||||
*/
|
||||
|
||||
|
||||
package cn.rtast.fancybot.entity
|
||||
|
||||
import org.jetbrains.exposed.sql.Table
|
||||
|
||||
object JrrpTable : Table("jrrp") {
|
||||
val id = integer("id").autoIncrement()
|
||||
val userId = long("userId").uniqueIndex()
|
||||
val timestamp = long("timestamp")
|
||||
val point = long("point")
|
||||
|
||||
override val primaryKey = PrimaryKey(id)
|
||||
}
|
||||
|
||||
data class JrrpRecord(
|
||||
val id: Long,
|
||||
val timestamp: Long,
|
||||
var points: Long,
|
||||
)
|
||||
Reference in New Issue
Block a user