Skip to content

Commit

Permalink
refactor: order 필드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
TaeyeonRoyce committed Feb 20, 2024
1 parent cd79dec commit 33d30f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/kotlin/com/petqua/domain/order/Order.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType.IDENTITY
import jakarta.persistence.Id
import jakarta.persistence.Table
import java.math.BigDecimal

@Table(name = "orders")
@Entity
Expand All @@ -37,4 +38,7 @@ class Order(
@Enumerated(STRING)
@Column(nullable = false)
val status: OrderStatus,

@Column(nullable = false)
val totalAmount: BigDecimal,
) : BaseEntity()
5 changes: 4 additions & 1 deletion src/main/kotlin/com/petqua/domain/order/OrderProduct.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ class OrderProduct(
val deliveryFee: BigDecimal,

@Column(nullable = false)
val totalPrice: BigDecimal,
val shippingNumber: String,

@Column(nullable = false)
val orderPrice: BigDecimal,

@Column(nullable = false)
val productId: Long = 0,
Expand Down

0 comments on commit 33d30f1

Please sign in to comment.