diff --git a/threedollar-core/threedollar-domain/src/main/java/com/threedollar/domain/sticker/Sticker.java b/threedollar-core/threedollar-domain/src/main/java/com/threedollar/domain/sticker/Sticker.java new file mode 100644 index 0000000..ed74ef2 --- /dev/null +++ b/threedollar-core/threedollar-domain/src/main/java/com/threedollar/domain/sticker/Sticker.java @@ -0,0 +1,34 @@ +package com.threedollar.domain.sticker; + + +import com.threedollar.domain.AccountType; +import com.threedollar.domain.BaseEntity; +import lombok.Getter; +import lombok.NoArgsConstructor; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.EnumType; +import javax.persistence.Enumerated; + +@Entity +@Getter +@NoArgsConstructor +public class Sticker extends BaseEntity { + + @Column(nullable = false) + @Enumerated(EnumType.STRING) + private StickerType stickerType; + + @Column(nullable = false) + private String imageUrl; + + @Column(nullable = false) + @Enumerated(EnumType.STRING) + private AccountType accountType; + + @Column(nullable = false) + private String accountId; + + +} diff --git a/threedollar-core/threedollar-domain/src/main/java/com/threedollar/domain/sticker/StickerType.java b/threedollar-core/threedollar-domain/src/main/java/com/threedollar/domain/sticker/StickerType.java new file mode 100644 index 0000000..192e5e9 --- /dev/null +++ b/threedollar-core/threedollar-domain/src/main/java/com/threedollar/domain/sticker/StickerType.java @@ -0,0 +1,17 @@ +package com.threedollar.domain.sticker; + +import lombok.Getter; + +@Getter +public enum StickerType { + + POLL("투표"), + + ; + private final String description; + + StickerType(String description) { + this.description = description; + } + +} diff --git a/threedollar-core/threedollar-domain/src/main/java/com/threedollar/domain/sticker/repository/StickerRepository.java b/threedollar-core/threedollar-domain/src/main/java/com/threedollar/domain/sticker/repository/StickerRepository.java new file mode 100644 index 0000000..a45dc73 --- /dev/null +++ b/threedollar-core/threedollar-domain/src/main/java/com/threedollar/domain/sticker/repository/StickerRepository.java @@ -0,0 +1,8 @@ +package com.threedollar.domain.sticker.repository; + +import com.threedollar.domain.sticker.Sticker; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface StickerRepository extends JpaRepository { + +} diff --git a/threedollar-core/threedollar-domain/src/main/java/com/threedollar/domain/sticker/repository/StickerRepositoryCustom.java b/threedollar-core/threedollar-domain/src/main/java/com/threedollar/domain/sticker/repository/StickerRepositoryCustom.java new file mode 100644 index 0000000..903206d --- /dev/null +++ b/threedollar-core/threedollar-domain/src/main/java/com/threedollar/domain/sticker/repository/StickerRepositoryCustom.java @@ -0,0 +1,4 @@ +package com.threedollar.domain.sticker.repository; + +public class StickerRepositoryCustom { +}