package com.cpop.oam.business.entity;

import com.cpop.core.base.entity.BaseEntity;
import com.cpop.core.base.entity.BaseInsertListener;
import com.cpop.core.base.entity.BaseUpdateListener;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 业务详情表 实体类。
 *
 * @author DB
 * @since 2023-12-12
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(value = "cp_oam_business_detail", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
public class BusinessDetail extends BaseEntity implements Serializable {

    /**
     *  主键
     */
    @Id
    private String id;

    /**
     * 事务id
     */
    @Id
    private String businessId;

    /**
     * 事务员工id
     */
    private String businessStaffId;

    /**
     * 品牌id
     */
    private String brandId;

    /**
     * 校区id
     */
    private String storeId;

    /**
     * 状态(0：进行中;1:完成：2：挂起)
     */
    private Integer detailStatus;

    /**
     * 详情描述
     */
    private String detailDesc;

    /**
     * 处理时间
     */
    private LocalDateTime detailRecordTime;


    /**
     * 逻辑删除（0否1是）
     */
    @Column(isLogicDelete = true)
    private Boolean isDelete;

}
