Skip to content

Commit

Permalink
release: 0.6.9 (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb authored Oct 28, 2024
2 parents d4ea232 + ecb60d3 commit 44b6e03
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/kotlin/org/gitanimals/shop/domain/Sale.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,14 @@ import org.gitanimals.shop.core.AggregateRoot

@AggregateRoot
@Entity(name = "sale")
@Table(
name = "sale", indexes = [
Index(name = "sale_idx_type", columnList = "type", unique = true)
]
)
@Table(name = "sale")
class Sale(
@Id
@Column(name = "id")
val id: Long,

@Enumerated(EnumType.STRING)
@Column(name = "type", nullable = false, unique = true)
@Column(name = "type", nullable = false)
val type: SaleType,

@Column(name = "item", nullable = false)
Expand Down

0 comments on commit 44b6e03

Please sign in to comment.