diff --git a/src/main/java/com/loafle/overflow/model/email/EmailAuth.java b/src/main/java/com/loafle/overflow/model/email/EmailAuth.java index 4741a0d..05a3b9f 100644 --- a/src/main/java/com/loafle/overflow/model/email/EmailAuth.java +++ b/src/main/java/com/loafle/overflow/model/email/EmailAuth.java @@ -16,6 +16,7 @@ public class EmailAuth { private Date createDate; private Date authConfirmDate; private Member member; + private String emailType; @Id @GeneratedValue(strategy= GenerationType.IDENTITY) @@ -66,4 +67,14 @@ public class EmailAuth { public void setMember(Member member) { this.member = member; } + + @Basic + @Column(name = "EMAIL_TYPE", nullable = true, length = 10) + public String getEmailType() { + return emailType; + } + + public void setEmailType(String emailType) { + this.emailType = emailType; + } } diff --git a/src/main/java/com/loafle/overflow/model/email/type/EmailType.java b/src/main/java/com/loafle/overflow/model/email/type/EmailType.java new file mode 100644 index 0000000..e448cca --- /dev/null +++ b/src/main/java/com/loafle/overflow/model/email/type/EmailType.java @@ -0,0 +1,14 @@ +package com.loafle.overflow.model.email.type; + +public enum EmailType { + SIGNUP("SIGNUP"), + PASSWORD("PASSWORD"); + + private String stringValue; + EmailType(String string) {stringValue = string;} + + @Override + public String toString() { + return stringValue; + } +}