Skip to content

Commit

Permalink
[FEAT] 업적 Domain 추가 (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
tidavid1 authored Feb 19, 2024
1 parent ecb7864 commit 298ff3a
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package io.oeid.mogakgo.domain.achievement.domain;

import io.oeid.mogakgo.domain.achievement.domain.enums.AchievementType;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@Entity
@Table(name = "achievement_tb")
@NoArgsConstructor(access = lombok.AccessLevel.PROTECTED)
public class Achievement {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private Long id;

@Column(name = "title")
private String title;

@Column(name = "description")
private String description;

@Column(name = "img_url")
private String imgUrl;

@Enumerated(EnumType.STRING)
@Column(name = "type")
private AchievementType achievementType;

@Builder
private Achievement(String title, String description, String imgUrl,
AchievementType achievementType) {
this.title = title;
this.description = description;
this.imgUrl = imgUrl;
this.achievementType = achievementType;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package io.oeid.mogakgo.domain.achievement.domain.enums;

public enum AchievementType {

}

0 comments on commit 298ff3a

Please sign in to comment.