package com.backendsys.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("sys_user_integral_log")
public class SysUserIntegralLog {

    @TableId(type = IdType.AUTO)
    private Long id;
    private Long user_id;

    @TableField(exist = false)
    private String user_nickname;

    private String content;             // 内容
    private Integer integral;           // 积分
    private Integer operation;          // 操作 (1:增加, -1:减少)
    private Long operation_user_id;     // 操作人 (手动操作必填)

    @TableField(exist = false)
    private String operation_user_nickname;

    private Integer origin;             // 来源 (1:手动操作, 2:..)
    private String operation_ip;
    private String create_time;

    @TableField(exist = false)
    private String create_time_begin;
    @TableField(exist = false)
    private String create_time_end;
}
