Change notes columns
This commit is contained in:
@@ -9,5 +9,5 @@ interface Note : Entity<Note> {
|
||||
val id: Int
|
||||
var title: String
|
||||
var user: User
|
||||
var lastViewed: LocalDateTime?
|
||||
var updatedAt: LocalDateTime?
|
||||
}
|
||||
@@ -7,5 +7,5 @@ object Notes : Table<Note>("Notes") {
|
||||
val id by int("id").primaryKey().bindTo { it.id }
|
||||
val title by varchar("title").bindTo { it.title }
|
||||
val user by int("user_id").references(Users) { it.user }
|
||||
val lastViewed by datetime("last_viewed").bindTo { it.lastViewed }
|
||||
val updatedAt by datetime("last_viewed").bindTo { it.updatedAt }
|
||||
}
|
||||
Reference in New Issue
Block a user