保誠-保戶業務員媒合平台
Jack
2021-11-23 e7ff6eaf7ffd713d102f596b4e5d906504160ff8
pamapi/src/main/java/com/pollex/pam/domain/Customer.java
@@ -5,6 +5,8 @@
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@@ -14,6 +16,7 @@
import org.springframework.data.annotation.LastModifiedDate;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.pollex.pam.enums.OtpLoginTypeEnum;
@Entity
@Table(name = "customer")
@@ -37,6 +40,10 @@
   
   @Column(name = "email")
    private String email;
   @Enumerated(value = EnumType.STRING)
   @Column(name = "contact_type")
    private OtpLoginTypeEnum contactType;
   
   @CreatedDate
    @Column(name = "created_date", updatable = false)
@@ -96,6 +103,14 @@
      this.lastModifiedDate = lastModifiedDate;
   }
    
   public OtpLoginTypeEnum getContactType() {
      return contactType;
   }
   public void setContactType(OtpLoginTypeEnum contactType) {
      this.contactType = contactType;
   }
    
}