package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Data;

import java.util.Date;

/**
 * @author chan
 * @date 2024/4/10 11:37
 */
@Data
@SearchBean(tables = "(SELECT MAX(id) id,m.user_token from midjourney_user_conversation_record as m " +
        "GROUP BY m.car_id,m.user_token) t left join midjourney_user_conversation_record as r on t.id = r.id"
        ,orderBy = "r.created_time desc"
)
public class MidjourneyUserConversationRecordHistoryView {

    @DbField("r.user_token")
    private String userToken;

    @DbField("t.user_token")
    private String mjUserToken;
    /**
     * 提示词
     */
    @DbField("r.prompt")
    private String prompt;

    /**
     * 对话id
     */
    @DbField("r.conversation_id")
    private String conversationId;

    /**
     * 对话时间
     */
    @DbField("r.created_time")
    private Date conversationTime;

    /**
     * 车队id
     */
    @DbField("r.car_id")
    private String carId;

    /**
     * 车队名称
     */
    @DbField("r.car_name")
    private String carName;

}
