package com.erp.skumatch.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("platform_spu")
public class PlatformSpu {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long shopId;
    private String platformCode;
    private String spuId;
    private String spuName;
    private String spuCode;
    private BigDecimal price;
    private BigDecimal originalPrice;
    private Integer stock;
    private String images;
    private String specs;
    private String status;
    private String syncStatus;
    private LocalDateTime lastSyncAt;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}
