From 68809b64dca00ec8031c9bf65a600673a8014c2c Mon Sep 17 00:00:00 2001 From: uuuuuuuk Date: Thu, 12 Oct 2023 10:48:15 +0900 Subject: [PATCH] =?UTF-8?q?:memo:=20Item=20=EC=97=94=ED=8B=B0=ED=8B=B0=20?= =?UTF-8?q?=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../miso/domain/item/entity/Item.kt | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/main/kotlin/andreas311/miso/domain/item/entity/Item.kt diff --git a/src/main/kotlin/andreas311/miso/domain/item/entity/Item.kt b/src/main/kotlin/andreas311/miso/domain/item/entity/Item.kt new file mode 100644 index 00000000..a07a236c --- /dev/null +++ b/src/main/kotlin/andreas311/miso/domain/item/entity/Item.kt @@ -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 +) \ No newline at end of file