package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/*
 *项目名: netflix
 *文件名: UserTicketView
 *创建者: JavaZou
 *创建时间:2023/4/21 14:52
 */
@Getter
@Setter
@SearchBean(tables = "groups_relation gr left join groups_trips gt on gt.id = gr.groups_id" +
		" left join goods_don_sku gdk on gdk.id = gt.sku_id left join goods_don g on g.id = gdk.goods_id")
public class UserTicketView {
	@DbField("gr.id")
	private Long relationId;

	@DbField("gr.user_id")
	private Long userId;

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

	@DbField("gt.sku_id")
	private Long skuId;

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

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

	@DbField("gdk.num")
	private Integer skuNum;

	@DbField("gr.expiry_time")
	private Date expiryTime;

	@DbField("gr.status")
	@JsonIgnore
	private String status;

	@DbField("gr.yhs_id")
	private Long yhsId;

	@DbField("gr.cmt")
	private Integer cmt;

	@DbField("gr.is_vip")
	private Boolean isVip;

	/**
	 * 是否被冻结
	 * 默认false
	 */
	@DbField("gr.is_frozen")
	private Boolean isFrozen;

	/**
	 * 解冻时长
	 */
	@DbField("gr.unfrozen_time")
	private Date unfrozenTime;

	/**
	 * 冻结保留天数
	 */
	@DbField("gr.reserved_days")
	private Integer reservedDays;

	@DbField("gdk.is_mirror")
	private Boolean isMirror;

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

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