package com.pig4cloud.pigx.app.api.entity.as;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 付费计划表
 *
 * @author amigo
 * @date 2023-07
 */
@Data
@TableName("as_sub_payroll")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "as付费计划")
public class AsSubPayroll extends Model<AsSubPayroll> {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "ID")
	private Long id;
	/**
	 * 订阅计划id +=,
	 */
	@Schema(description = "sub_plans")
	private Long subPlans;
	@Schema(description = "platform_id")
	private Integer platformId;
	/**
	 * 付费方式 月/季/年 - 1/2/3
	 */
	@Schema(description = "payroll")
	private Integer payroll;

	@Schema(description = "price")
	private BigDecimal price;
	@Schema(description = "currency")
	private String currency;
	@Schema(description = "region")
	private String region;
	@Schema(description = "产品code")
	private String productCode;
}
