package com.lesingle.edu.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lesingle.edu.common.enums.TenantPackageStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * 租户套餐关联实体
 */
@Schema(description = "租户套餐关联实体")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tenant_package")
public class TenantPackage extends BaseEntity {

    @Schema(description = "租户 ID")
    private Long tenantId;

    @Schema(description = "课程套餐 ID")
    private Long collectionId;


    @Schema(description = "开始日期")
    private LocalDate startDate;

    @Schema(description = "结束日期")
    private LocalDate endDate;

    @Schema(description = "实付价格")
    private Long pricePaid;

    @Schema(description = "状态：ACTIVE、EXPIRED")
    private TenantPackageStatus status;

}
