furniture-api/src/main/kotlin/data/database/tables/CartTable.kt
2025-06-11 12:49:23 +03:00

10 lines
360 B
Kotlin

package com.example.data.database.tables
import org.jetbrains.exposed.v1.core.Table
object CartTable: Table("cart") {
val userUuid = reference("user_uuid", UserTable.uuid)
val furnitureId = reference("furniture_id", FurnitureTable.id)
val count = integer("cart_count")
override val primaryKey: PrimaryKey = PrimaryKey(userUuid, furnitureId)
}