Auctions schema and creation

This commit is contained in:
2026-08-25 23:38:29 +03:00
parent 8582a92d85
commit 81e126013b
6 changed files with 126 additions and 5 deletions
+6 -1
View File
@@ -4,4 +4,9 @@ import java.time.Instant
case class User(id: Option[Int], username: String, gid: String, passwordDigest: Option[String])
case class AuthToken(id: Option[Int], userId: Int, token: String, createdAt: Instant, expiresAt: Instant)
case class AuthToken(id: Option[Int], userId: Int, token: String, createdAt: Instant, expiresAt: Instant)
case class Auction(id: Option[Int], name: String, gid: String, authorId: Int,
startingPrice: BigDecimal, currentBid: Option[BigDecimal],
currentBidderId: Option[Int], currentBidAt: Option[Instant],
createdAt: Instant)