package com.mcwl.communityCenter.domain;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mcwl.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 提问
 */
@ApiModel(description = "提问")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("cc_question")
public class Question extends BaseEntity {

    @TableId
    private Long id;


    /**
     * 用户id - 租户id
     */
    @TableField(fill = FieldFill.INSERT)
    private Long tenantId;

    /**
     * 社区id
     */
    private Long communityId;

    /**
     * 提问用户id
     */
    private Long questionUserId;

    /**
     * 提问内容
     */
    private String content;

    /**
     * 提问图片
     */
    private String questionUrl;

    /**
     * 是否匿名
     */
    private Integer isAnonymous;

    /**
     * 状态 0未解决 1已解决
     */
    private Integer status;

    /**
     * 提问类型 0免费 1付费
     */
    private Integer type;

    /**
     * 付费金额 当提问类型为付费时必填
     */
    private Double amount;



}
