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;

/**
 * @author zwhui
 * @date 2024/4/16 16:04
 */
@Getter
@Setter
@SearchBean(tables = "midjourney_account ma left join account a on ma.account_id = a.id",
        where = ":extra_sql:")
public class MidjourneyAccountView {
    @DbField("ma.id")
    private Long id;

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

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

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

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

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

    /**
     * 状态 true有效 false无效
     */
    @DbField("ma.status")
    private Boolean status;

    /**
     * 服务器id
     */
    @DbField("ma.guild_id")
    private Long guildId;

    /**
     * 频道id
     */
    @DbField("ma.channel_id")
    private Long channelId;

    /**
     * user_token
     */
    @DbField("ma.user_token")
    private String userToken;

    /**
     * fast剩余时间
     */
    @DbField("ma.fast_remain_time")
    private String fastRemainTime;

    /**
     * 账号备注
     */
    @DbField("ma.remark")
    private String remark;

    @DbField("a.api_secret")
    private String apiSecret;

    @DbField("ma.created_time")
    private Date createdTime;

}
