package com.cyksj.model.views;

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

import java.util.Date;

/**
 * 项目名: yhlxj
 * 文件名: TicketPwdViewRecordView
 * 创建者: JavaZou
 * 创建时间:2024/1/23 13:54
 */
@Getter
@Setter
@SearchBean(tables = "(select * from ticket_pwd_view_record where account is not null) tpr left join goods_don_sku sku on sku.id = tpr.sku_id" +
		" left join goods_don g on g.id = sku.goods_id" +
		" left join user u on u.id = tpr.user_id")
public class TicketPwdViewRecordView {
	@DbField("tpr.id")
	private Long id;

	@DbField("u.id")
	private Long userId;

	@DbField("u.nickname")
	private String nickname;

	@DbField("tpr.account")
	private String account;

	@DbField("tpr.password")
	private String password;

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

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

	@DbField("sku.id")
	private Long skuId;

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

	@DbField("tpr.created_time")
	private Date createdTime;
}
