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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Backend/DB/src/org/tbasket/db/schemas/Tactic.scala

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"
)
}