Skip to content

Commit

Permalink
📝 Item 엔티티 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuuuuuk committed Oct 12, 2023
1 parent baf895b commit 68809b6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/main/kotlin/andreas311/miso/domain/item/entity/Item.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package andreas311.miso.domain.item.entity

import org.hibernate.annotations.DynamicUpdate
import javax.persistence.*

@Entity
@DynamicUpdate
class Item(

@Id
@Column(name = "shop_id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
val id: Long,

@Column(name = "price")
val price: Int,

@Column(name = "name")
val name: String,

@Column(name = "content")
val content: String,

@Column(name = "image_url")
val imageUrl: String
)

0 comments on commit 68809b6

Please sign in to comment.