Remove content column from Notes Table
This commit is contained in:
parent
0dd4886846
commit
b9ef05c10d
@ -8,7 +8,6 @@ interface Note : Entity<Note> {
|
|||||||
|
|
||||||
val id: Int
|
val id: Int
|
||||||
var title: String
|
var title: String
|
||||||
var content: String
|
|
||||||
var user: User
|
var user: User
|
||||||
var lastViewed: LocalDateTime?
|
var lastViewed: LocalDateTime?
|
||||||
}
|
}
|
||||||
@ -6,7 +6,6 @@ import me.liuwj.ktorm.schema.*
|
|||||||
object Notes : Table<Note>("Notes") {
|
object Notes : Table<Note>("Notes") {
|
||||||
val id by int("id").primaryKey().bindTo { it.id }
|
val id by int("id").primaryKey().bindTo { it.id }
|
||||||
val title by varchar("title").bindTo { it.title }
|
val title by varchar("title").bindTo { it.title }
|
||||||
val content by text("content").bindTo { it.content }
|
|
||||||
val user by int("user_id").references(Users) { it.user }
|
val user by int("user_id").references(Users) { it.user }
|
||||||
val lastViewed by datetime("last_viewed").bindTo { it.lastViewed }
|
val lastViewed by datetime("last_viewed").bindTo { it.lastViewed }
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user