package cn.stylefeng.team.portal.modular.front.entity;

import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@TableName("portal_calendar")
@Data
@EqualsAndHashCode(callSuper = true)
public class PortalCalendar extends BaseEntity {

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

    @TableField("user_id")
    @ChineseDescription("日历所属用户")
    private Long userId;

    @TableField("title")
    @ChineseDescription("日历标题")
    private String title;

    @TableField("description")
    @ChineseDescription("日历描述")
    private String description;

    @TableField("calendar_date")
    @ChineseDescription("日历记录的指定日期")
    private Date calendarDate;

    @TableField("start_time")
    @ChineseDescription("开始时间，年月日时分秒")
    private Date startTime;

    @TableField("end_time")
    @ChineseDescription("开始时间，年月日时分秒")
    private Date endTime;

    @TableField("urgency_type")
    @ChineseDescription("紧急程度：10-普通，20-紧急")
    private Integer urgencyType;

    @TableField(value = "version_flag", fill = FieldFill.INSERT)
    @ChineseDescription("乐观锁")
    @Version
    private Long versionFlag;

    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @ChineseDescription("是否删除：Y-删除，N-未删除")
    @TableLogic
    private String delFlag;

    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    @ChineseDescription("租户id")
    private Long tenantId;

}