feat: add niuzi command

This commit is contained in:
2024-09-08 15:07:43 +08:00
parent caa50968d7
commit 560ac53009
6 files changed
+247 -24

No files matched your search

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