package com.zhentao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 案例时间线实体类
 */
@Data
@TableName("case_timeline")
public class CaseTimeline implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 时间线ID
     */
    @TableId(value = "timeline_id", type = IdType.AUTO)
    private Integer timelineId;
    
    /**
     * 案例ID
     */
    private Integer caseId;
    
    /**
     * 时间节点日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate timelineDate;
    
    /**
     * 时间线标题
     */
    private String timelineTitle;
    
    /**
     * 时间线描述
     */
    private String timelineDesc;
    
    /**
     * 排序（值小的在前）
     */
    private Integer sortOrder;
}


