package com.lesingle.modules.biz.contest.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lesingle.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 活动公告实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_biz_contest_notice")
@Schema(description = "活动公告实体")
public class BizContestNotice extends BaseEntity {

    @Schema(description = "活动ID")
    @TableField("contest_id")
    private Long contestId;

    @Schema(description = "租户ID")
    @TableField("tenant_id")
    private Long tenantId;

    @Schema(description = "公告标题")
    private String title;

    @Schema(description = "公告内容（富文本）")
    private String content;

    @Schema(description = "公告类型：system/manual/urgent")
    @TableField("notice_type")
    private String noticeType;

    @Schema(description = "优先级")
    private Integer priority;

    @Schema(description = "发布时间")
    @TableField("publish_time")
    private LocalDateTime publishTime;

    /** 关联活动（仅查询接口填充，不落库） */
    @Schema(description = "关联活动")
    @TableField(exist = false)
    private BizContest contest;
}
