/*
 * Copyright 2022-2025 兮玥(190785909@qq.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.chestnut.member.domain;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Getter;
import lombok.Setter;

/**
 * 会员经验日志表
 *
 * @author 兮玥
 * @email 190785909@qq.com
 */
@Getter
@Setter
@TableName(MemberLevelExpLog.TABLE_NAME)
public class MemberLevelExpLog implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;
	
	public static final String TABLE_NAME = "cc_member_exp_log";

	@TableId(value = "log_id", type = IdType.INPUT)
    private Long logId;
	
	/**
	 * 会员ID
	 */
	private Long memberId;
	
	/**
	 * 操作项类型
	 */
	private String opType;
	
	/**
	 * 操作项关联等级类型
	 */
	private String levelType;
	
	/**
	 * 获得/减少经验值
	 */
	private Integer changeExp;
	
	/**
	 * 变更后等级
	 */
	private Integer level;
	
	/**
	 * 变更后经验值
	 */
	private Long exp;
	
	/**
	 * 日志时间
	 */
	private LocalDateTime logTime;
}
