package com.zhentao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

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

/**
 * VIP套餐实体类
 */
@Data
@TableName("vip_package")
public class VipPackage implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @TableId(value = "package_id", type = IdType.AUTO)
    private Long packageId;
    
    private String packageName;
    private Integer durationDays;
    private BigDecimal originalPrice;
    private BigDecimal currentPrice;
    private Integer isRecommend;
    private String benefits;
    private Integer sortOrder;
    private Integer status;
    
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}

