This commit is contained in:
Hartmut Bauer committed 2026-10-21 23:47:44 +02:00
1 parent 3d165ee610
commit e8bd1bcb97
9 files changed
+135 -57

No files matched your search

@@ -0,0 +1,16 @@
package net.keinekekse.app.books.db.schema
import org.jetbrains.exposed.v1.core.dao.id.EntityID
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
import org.jetbrains.exposed.v1.dao.IntEntity
import org.jetbrains.exposed.v1.dao.IntEntityClass
object SamplerTable : IntIdTable("samplers") {
var bookId = reference("book_id", BooksTable.id).uniqueIndex()
}
class SamplerDAO(id: EntityID<Int>) : IntEntity(id) {
companion object : IntEntityClass<SamplerDAO>(SamplerTable)
var book by BookDAO referencedOn SamplerTable.bookId
}