feat: Payment, AdTrackingHistory 엔티티 price - Decimal(10, 4)에 대응되도록 Column 추가

This commit is contained in:
2025-10-01 21:08:35 +09:00
parent 81e7e7129c
commit 3c7ba669e2
2 changed files with 3 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ data class Payment(
var receiptId: String? = null var receiptId: String? = null
var method: String? = null var method: String? = null
@Column(precision = 10, scale = 4, nullable = false)
var price: BigDecimal = 0.toBigDecimal() var price: BigDecimal = 0.toBigDecimal()
var locale: String? = null var locale: String? = null
var orderId: String? = null var orderId: String? = null

View File

@@ -2,6 +2,7 @@ package kr.co.vividnext.sodalive.marketing
import java.math.BigDecimal import java.math.BigDecimal
import java.time.LocalDateTime import java.time.LocalDateTime
import javax.persistence.Column
import javax.persistence.Entity import javax.persistence.Entity
import javax.persistence.EnumType import javax.persistence.EnumType
import javax.persistence.Enumerated import javax.persistence.Enumerated
@@ -20,6 +21,7 @@ data class AdTrackingHistory(
val pidName: String, val pidName: String,
@Enumerated(value = EnumType.STRING) @Enumerated(value = EnumType.STRING)
val type: AdTrackingHistoryType, val type: AdTrackingHistoryType,
@Column(precision = 10, scale = 4, nullable = false)
val price: BigDecimal = 0.toBigDecimal(), val price: BigDecimal = 0.toBigDecimal(),
val locale: String? = null, val locale: String? = null,
val memberId: Long, val memberId: Long,