package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 项目名: yhlxj11111111
 * 文件名: CodexUser
 * 创建者: Claude
 * 创建时间:2025/9/15
 */
@Getter
@Setter
public class CodexUser extends BaseEntity {
    
    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 套餐名
     */
    private String planName;
    
    /**
     * 每日预算上限
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer openaiDailyLimit;
    
    /**
     * 每月预算上限
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer openaiQuota;
    
    /**
     * 座位ID
     */
    private Long relationId;

    /**
     * 过期时间
     */
    private Date expiryTime;

    /**
     * 续费升级订单id
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long renewOrderId;

    /**
     * 续费升级skuid
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long renewSkuId;

    /**
     * 续费升级过期时间
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date renewExpiryTime;

    /**
     * 是否重试更新
     */
    private Boolean isRetry;

    /**
     * 是否购买 默认false
     */
    private Boolean isPay;
}