package com.yaoai.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("plans")
public class Plan {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /** FREE / PRO / TEAM / ENTERPRISE */
    private String code;

    private String name;

    private BigDecimal priceMonthly;

    private Integer monthlyCredits;

    /** 0=unlimited */
    private Integer maxMembers;

    /** 0=unlimited */
    private Integer maxProjects;

    private Integer maxConcurrentTasks;

    /** JSON */
    private String features;

    /** 1=ACTIVE 0=INACTIVE */
    private Integer isActive;

    private LocalDateTime updatedAt;

    private Long updatedBy;
}
