fix: Exposedの変更を修正

This commit is contained in:
usbharu 2024-05-12 16:11:08 +09:00
parent 58783c5d5c
commit 5cb99ebd75
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ object CustomEmojis : Table("emojis") {
val instanceId = long("instance_id").references(Instance.id).nullable() val instanceId = long("instance_id").references(Instance.id).nullable()
val url = varchar("url", 255).uniqueIndex() val url = varchar("url", 255).uniqueIndex()
val category = varchar("category", 255).nullable() val category = varchar("category", 255).nullable()
val createdAt = timestamp("created_at").defaultExpression(CurrentTimestamp()) val createdAt = timestamp("created_at").defaultExpression(CurrentTimestamp)
override val primaryKey: PrimaryKey = PrimaryKey(id) override val primaryKey: PrimaryKey = PrimaryKey(id)

View File

@ -190,7 +190,7 @@ class RegisteredClientRepositoryImpl : RegisteredClientRepository {
object RegisteredClient : Table("registered_client") { object RegisteredClient : Table("registered_client") {
val id: Column<String> = varchar("id", 100) val id: Column<String> = varchar("id", 100)
val clientId: Column<String> = varchar("client_id", 100) val clientId: Column<String> = varchar("client_id", 100)
val clientIdIssuedAt: Column<Instant> = timestamp("client_id_issued_at").defaultExpression(CurrentTimestamp()) val clientIdIssuedAt: Column<Instant> = timestamp("client_id_issued_at").defaultExpression(CurrentTimestamp)
val clientSecret: Column<String?> = varchar("client_secret", 200).nullable().default(null) val clientSecret: Column<String?> = varchar("client_secret", 200).nullable().default(null)
val clientSecretExpiresAt: Column<Instant?> = timestamp("client_secret_expires_at").nullable().default(null) val clientSecretExpiresAt: Column<Instant?> = timestamp("client_secret_expires_at").nullable().default(null)
val clientName: Column<String> = varchar("client_name", 200) val clientName: Column<String> = varchar("client_name", 200)