package com.starry.admin.modules.order.module.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.starry.common.domain.BaseEntity;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 订单生命周期日志实体。
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("play_order_log_info")
public class PlayOrderLogInfoEntity extends BaseEntity<PlayOrderLogInfoEntity> {

    @TableId
    private String id;

    private String tenantId;

    private String orderId;

    private String operationType;

    private String operatorType;

    private String operatorId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime operTime;

    private String remark;

}
