package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.DbIgnore;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 项目名: yhlxj
 * 文件名: GoodsDonSkuRenewView
 * 创建者: JavaZou
 * 创建时间:2024/8/29 11:38
 */
@Getter
@Setter
@SearchBean(tables = "goods_don_sku sku left join goods_don g on g.id = sku.goods_id",
		where = "sku.status is true and g.status is true and g.deleted is true")
public class GoodsDonSkuRenewView {
	@DbField("sku.id")
	private Long skuId;

	@DbField("sku.spec_val")
	private String specVal;

	@DbField("sku.price")
	private BigDecimal price;

	@DbField("g.id")
	private Long goodsId;

	@DbField("g.title")
	private String title;

	@DbField("sku.months")
	private Integer months;

	/**
	 * gpt 镜像限制次数
	 */
	@DbField("sku.gpt_limit_num")
	private Integer gptUserLimitNum;

	/**
	 * gpt 镜像限制时间
	 */
	@DbField("sku.gpt_limit_time")
	private Long gptUserLimitTime;

	/**
	 * deepseek限制次数
	 */
	@DbField("sku.ds_limit_num")
	private Integer userDsLimitNum;

	/**
	 * deepseek限制时间
	 */
	@DbField("sku.ds_limit_time")
	private Long userDsLimitTime;

	/**
	 * 其他模型限制次数
	 */
	@DbField("sku.other_limit_num")
	private Integer userOtherLimitNum;

	/**
	 * 其他模型限制时间
	 */
	@DbField("sku.other_limit_time")
	private Long userOtherLimitTime;

	/**
	 * 续费升级套餐id
	 */
	@DbIgnore
	private Long packageId;

	/**
	 * 续费升级目前规格订单id
	 */
	@DbIgnore
	private Long originalOrderId;
}
