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 com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * @author codex
 */
@Getter
@Setter
@TableName("collaboration_task")
@ApiModel(value = "CollaborationTaskEntity对象", description = "合作笔记任务表")
public class CollaborationTaskEntity extends BaseEntity<CollaborationTaskEntity> {

    @TableId(value = "task_id", type = IdType.AUTO)
    private Long taskId;

    @TableField("record_id")
    private Long recordId;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField("release_date")
    private Date releaseDate;

    @TableField("sort_order")
    private Integer sortOrder;

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

}
