package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ejlchina.searcher.bean.DbIgnore;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 项目名: yhlxj11111111
 * 文件名: ClaudeCodeUser
 * 创建者: JavaZou
 * 创建时间:2025/8/11 13:59
 */
@Getter
@Setter
public class ClaudeCodeUser extends BaseEntity{
	private Long userId;

	/**
	 * 套餐
	 */
	private String planName;

	private Long relationId;

	@DbIgnore
	@TableField(exist = false)
	private Integer oriCodePoints;

	/**
	 * claude code每日限额
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private Integer claudeDailyLimit;

	/**
	 * Claude code 服务总额度
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private Integer claudeQuota;

	/**
	 * code 有效期
	 */
	private Date expiryTime;

	/**
	 * 续费升级订单id
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private Long renewOrderId;

	/**
	 * 续费升级skuid
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private Long renewSkuId;

	/**
	 * 续费升级过期时间
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private Date renewExpiryTime;

	/**
	 * 需要重试 默认false
	 */
	private Boolean isRetry;

	/**
	 * 重置次数
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private Integer resetCount;
}
