feat: support mysql and postgresql database
This commit is contained in:
9 files changed
+69
-8
No files matched your search
@@ -10,10 +10,10 @@ package cn.rtast.fancybot.db
|
||||
import org.jetbrains.exposed.sql.Table
|
||||
|
||||
object ActionTable : Table("action") {
|
||||
val id = integer("id").autoIncrement().nullable()
|
||||
val action = varchar("action", 255).nullable()
|
||||
val timestamp = long("timestamp").nullable()
|
||||
val triggerId = long("trigger_id").nullable()
|
||||
val result = varchar("result", 255)
|
||||
val id = integer("id").autoIncrement()
|
||||
val action = varchar("action", 255)
|
||||
val timestamp = long("timestamp")
|
||||
val triggerId = long("trigger_id")
|
||||
val result = text("result")
|
||||
override val primaryKey = PrimaryKey(id)
|
||||
}
|
||||
Reference in New Issue
Block a user