package com.ghy.order.domain;


import com.ghy.common.enums.OrderBehaviorEnum;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 订单行为 order_behavior
 *
 * @author HH
 */
@Data
@Accessors(chain = true)
public class OrderBehavior {

    private Long id;

    @NotNull
    private Long workerId;
    @NotBlank
    private String workerName;

    @NotNull
    private Long orderMasterId;
    @NotBlank
    private String orderMasterCode;

    private Long orderDetailId;
    private String orderDetailCode;

    @NotNull
    private OrderBehaviorEnum behavior;

    private LocalDateTime behaviorTime;
}
