You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
380 B
20 lines
380 B
package org.tbasket.db.schemas
|
|
|
|
import io.getquill.*
|
|
|
|
import org.tbasket.db.Database
|
|
case class Tactic(id: Int, name: String, owner: User, filePath: String)
|
|
|
|
object Tactic:
|
|
import Database.ctx.*
|
|
|
|
val schema = quote {
|
|
querySchema[Tactic](
|
|
"tactic",
|
|
_.id -> "id",
|
|
_.name -> "name",
|
|
_.owner.id -> "owner_id",
|
|
_.filePath -> "file_path"
|
|
)
|
|
}
|