package com.gxwebsoft.apps.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 代报餐管理
 *
 * @author 科技小王子
 * @since 2023-04-24 19:25:59
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "BcAgent对象", description = "代报餐管理")
@TableName("apps_bc_agent")
public class BcAgent implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @TableId(value = "agent_id", type = IdType.AUTO)
    private Integer agentId;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "代报餐用户ID")
    private Integer parentId;

    @ApiModelProperty(value = "状态, 0待处理, 1已完成")
    private Integer status;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "加入时间")
    private Date createTime;

    @ApiModelProperty(value = "被代报餐职员")
    @TableField(exist = false)
    private User user;

    @ApiModelProperty(value = "代报餐人员")
    @TableField(exist = false)
    private User parentUser;

    @ApiModelProperty(value = "被代报餐职员")
    @TableField(exist = false)
    private String nickname;

    @ApiModelProperty(value = "代报餐人员")
    @TableField(exist = false)
    private String parentName;

}
