package com.storlead.mail.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 附件表
 * </p>
 *
 * @author chenkq
 * @since 2024-05-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("attachments")
@ApiModel(value="AttachmentEntity对象", description="附件表")
public class AttachmentEntity extends SysBaseField{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "绑定的邮件")
    @TableField("email_id")
    private Long emailId;

    @ApiModelProperty(value = "number")
    @TableField("file_name")
    private String fileName;

    @ApiModelProperty(value = "number")
    @TableField("file_url")
    private String fileUrl;

    @ApiModelProperty(value = "文件大小")
    @TableField("file_size")
    private Integer fileSize;


}
