package com.cyksj.model.views;

import com.cyksj.model.manage.views.GroupsRelationView;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.DbIgnore;
import com.ejlchina.searcher.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/*
 *项目名: netflix
 *文件名: UserAvailableGoodsTicketView
 *创建者: JavaZou
 *创建时间:2023/3/8 17:02
 */
@Getter
@Setter
@SearchBean(tables = "user_pay_equipment_available_benefits ub left join goods_don_sku gdk on gdk.id = ub.sku_id" +
		" left join goods_don g on g.id = gdk.goods_id")
public class UserAvailableGoodsTicketView {
	@DbField("ub.id")
	private Long benefitsId;

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

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

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

	@DbField("ub.real_order_id")
	private Long realOrderId;

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

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

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

	@DbField("ub.deleted")
	@JsonIgnore
	private Boolean deleted;

	@DbIgnore
	private List<GroupsRelationView> ticketList;
}
