package com.casic.missiles.model.workbench;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 工作台-日历日程安排表
 * </p>
 *
 * @author wangpeng
 * @since 2023-06-16
 */
@ApiModel
@Data
@TableName("workbench_calendar_schedule")
public class WorkbenchCalendarSchedule implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id", dataType = "Long")
    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "id", dataType = "Long")
    @NotNull(message = "登录用户id不能为空")
    @TableField("user_id")
    private Long userId;

    /**
     * 日程日期
     */
    @ApiModelProperty(value = "日期（格式：2023-06-16）", dataType = "String")
    @NotEmpty(message = "日期不能为空")
    @TableField("schedule_date")
    private String scheduleDate;

    /**
     * 日程安排事宜
     */
    @ApiModelProperty(value = "日程安排", dataType = "String")
    @TableField("schedule_matters")
    private String scheduleMatters;

    /**
     * 创建时间
     */
    @ApiModelProperty(hidden = true)
    @TableField("create_time")
    private String createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(hidden = true)
    @TableField("update_time")
    private String updateTime;

}
