package com.hzs.common.domain.third.email;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 邮件信息
 * </p>
 *
 * @author hzs
 * @since 2022-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("T_EMAIL")
@KeySequence("T_EMAIL_SEQ")
public class TEmail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 发送方
     */
    @TableField("SENDER")
    private String sender;

    /**
     * 接收方
     */
    @TableField("RECEIVER")
    private String receiver;

    /**
     * 发送主题
     */
    @TableField("SUBJECT")
    private String subject;

    /**
     * 接收主题
     */
    @TableField("CONTENT")
    private String content;

    /**
     * 邮件发送类型  (0-欢迎邮件) 对应EmailType枚举
     */
    @TableField("EMAIL_TYPE")
    private Integer emailType;


}
