package com.agileboot.domain.collaboration.record.db;

import com.agileboot.common.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * @author codex
 */
@Getter
@Setter
@TableName("collaboration_file")
@ApiModel(value = "CollaborationFileEntity对象", description = "合作文件表")
public class CollaborationFileEntity extends BaseEntity<CollaborationFileEntity> {

    @TableId(value = "file_id", type = IdType.AUTO)
    private Long fileId;

    @TableField("record_id")
    private Long recordId;

    @TableField("file_type")
    private String fileType;

    @TableField("url")
    private String url;

    @TableField("file_name")
    private String fileName;

    @TableField("new_file_name")
    private String newFileName;

    @TableField("original_filename")
    private String originalFilename;

    @TableField("sort_order")
    private Integer sortOrder;

    @Override
    public Serializable pkVal() {
        return this.fileId;
    }

}
