package com.xindazhou.business.dal.community.dataobject.ban;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xindazhou.framework.mybatis.core.dataobject.BaseDO;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 用户封禁 DO
 *
 * @author xindazhou
 */
@TableName("community_ban")
@KeySequence("community_ban_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BanDO extends BaseDO {

    /**
     * 封禁ID
     */
    @TableId
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 用户昵称
     */
    private String userNickname;

    /**
     * 封禁原因
     */
    private String banReason;

    /**
     * 封禁开始时间
     */
    private LocalDateTime banStartTime;

    /**
     * 封禁结束时间（NULL表示无限期）
     */
    private LocalDateTime banEndTime;

    /**
     * 是否无限期封禁
     */
    private Boolean isIndefinite;

}

