package com.ffii.fpsms.modules.common.mail.entity

import com.ffii.core.entity.BaseEntity
import jakarta.persistence.*
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size

@Entity
@Table(name = "mail_send_log_line")
open class MailSendLogLine : BaseEntity<Long>() {

    @NotNull
    @ManyToOne
    @JoinColumn(name = "sendMailLogId", nullable = false)
    open var sendMailLog: MailSendLog? = null

    @Size(max = 255)
    @Column(name = "toMail")
    open var toMail: String? = null

    @Lob
    @Column(name = "errorMessage")
    open var errorMessage: String? = null
}