This commit is contained in:
2022-09-09 18:01:50 +06:00
parent 6d8bc0326f
commit 7549286c84
7 changed files with 41 additions and 21 deletions

View File

@@ -22,9 +22,7 @@ class ExposedPostsRepo(
tableName = "posts"
) {
val idColumn = text("id").clientDefault { uuid4().toString() }
val createdColumn = double("datetime").default(0.0).clientDefault {
DateTime.nowUnix()
}
val createdColumn = double("datetime").default(0.0)
private val contentRepo by lazy {
ExposedContentInfoRepo(