Skip to content

Commit

Permalink
♻️ NotificationType Enum 타입 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
weonest committed Nov 20, 2023
1 parent 1bec7ec commit 3ded120
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/main/java/dev/steady/notification/domain/Notification.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@

import dev.steady.global.entity.BaseEntity;
import dev.steady.user.domain.User;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import jakarta.persistence.*;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
Expand All @@ -27,6 +19,7 @@ public class Notification extends BaseEntity {
private Long id;

@Column(nullable = false)
@Enumerated(EnumType.STRING)
private NotificationType type;

@Column(nullable = false)
Expand Down

0 comments on commit 3ded120

Please sign in to comment.