package com.sonic.frog.domain.entity;

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

/**
 * 用户购买相册创作次数记录
 */
@Data
@TableName("buy_create_count_record")
public class BuyCreateCountRecord {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 购买创作次数
     */
    @TableField("buy_num")
    private Integer buyNum;

    /**
     * 总金额
     */
    @TableField("total_amount")
    private Long totalAmount;

    /**
     * 订单号
     */
    @TableField("order_no")
    private String orderNo;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 编辑时间
     */
    @TableField("edit_time")
    private LocalDateTime editTime;
}