package com.codenetworkz.portfoliowebsite.models;

import com.codenetworkz.portfoliowebsite.models.BaseModel;
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@Entity
public class ContactForm extends BaseModel {


    @Size(min = 3, max = 50, message = "Full Name should be more then 3 and less then 50 character required.")
    private String fullName;

    @Email(message = "enter valid Email ID")
    private String email;

    @Size(min = 10, max = 12, message = "Phone No should be more then 8 and less then 12 character required.")
    private String phone;


    @Size(min = 10, max = 255, message = "Message should be more then 10 and less then 255 character required.")
    private String message;

    @Enumerated(EnumType.STRING)
    private Status sendMessage;

}
