package easydo.technology.model;

import easydo.technology.annotation.Minio;
import easydo.technology.annotation.NotTableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@Minio
@EqualsAndHashCode(callSuper = true)
public class PurchasePlan extends CommonModel {
    private String id;
    private String code;
    private String name;
    private String saleOrderId;
    private String createTime;
    private Long purchaseUserId;
    private Long createId;
    private Long updateId;
    private String status;
    private String tenantId;
    private String updateTime;
    private String beginDate;
    private String endDate;
    private String remark;

    // 非数据库字段，用于级联组装
    @NotTableField
    private List<PurchasePlanDetail> childrenList;
    @NotTableField
    private SaleOrder saleOrder;
    @NotTableField
    private String purchaseUserName;
}
