package com.cpop.system.business.entity;

import com.cpop.core.base.entity.BaseEntity;
import com.cpop.core.base.entity.BaseInsertListener;
import com.cpop.core.base.entity.BaseUpdateListener;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 校区续费表 实体类。
 *
 * @author DB
 * @since 2023-12-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(value = "j_sys_store_renew", dataSource = "jambox", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
public class StoreRenew extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @Id
    private String id;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 校区id
     */
    private String storeId;

    /**
     * 生效版本
     */
    private String takeEffectVersion;

    /**
     * 生效时间
     */
    private LocalDateTime takeEffectTime;

    /**
     * 到期日期
     */
    private LocalDate expireDate;

    /**
     * 版本描述
     */
    private String versionDesc;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 逻辑删除（0否1是）
     */
    @Column(isLogicDelete = true)
    private Boolean isDelete;

}
