Change notes columns

This commit is contained in:
2020-04-19 21:31:03 +02:00
parent 68d8363ebf
commit e4d8bffe71
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -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 }
}