feat: add niuzi command
This commit is contained in:
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
|
||||
)
|
||||
Reference in New Issue
Block a user