Remove content column from Notes Table

This commit is contained in:
Hubert Van De Walle 2020-04-19 17:37:42 +02:00
parent 0dd4886846
commit b9ef05c10d
2 changed files with 0 additions and 2 deletions

View File

@ -8,7 +8,6 @@ interface Note : Entity<Note> {
val id: Int
var title: String
var content: String
var user: User
var lastViewed: LocalDateTime?
}

View File

@ -6,7 +6,6 @@ import me.liuwj.ktorm.schema.*
object Notes : Table<Note>("Notes") {
val id by int("id").primaryKey().bindTo { it.id }
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 lastViewed by datetime("last_viewed").bindTo { it.lastViewed }
}