package com.ai.da.mapper.primary.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_subscription_info")
public class SubscriptionInfo extends BaseEntity{

    private Long accountId;

    private String orderNo;

    // stripe || paypal 平台生成的id
    private String subscriptionId;

    // month || year
    private String type;

    // active || canceled
    private String status = "active";

    private byte cancelNotified = (byte)0;

    // 续订的下一个付款日
    private String nextPayDate;

    // 当前订阅订单有效期开始时间
    private Long currentPeriodStart;

    // 当前订阅订单有效期结束时间
    private Long currentPeriodEnd;

    // 取消订阅原因
    private String cancelReason;

}
