package com.cyksj.model.manage.views;

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

import java.util.Date;

/**
 * @author chan
 * @date 2022/10/12 12:11 PM
 */
@Getter
@Setter
@SearchBean(tables = "home_group hp left join groups_relation gr on gr.id = hp.relation_id " +
        "left join user u on gr.user_id = u.id " +
        "left join groups_trips gt on gt.id = gr.groups_id " +
        "left join goods_don_sku sku on gt.sku_id = sku.id")
public class HomeGroupView {

    @DbField("hp.id")
    private Long id;

    @DbField("hp.account_id")
    private Long accountId;

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

    @DbField("gr.start_time")
    private Date startTime;

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

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

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

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

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

    @DbField("hp.status")
    private String status;

}
