package com.czg.account.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * 店铺签约 实体类。
 *
 * @author Administrator
 * @since 2025-02-11
 */
@Data

@NoArgsConstructor
@AllArgsConstructor
@Table("tb_shop_register")
public class ShopRegister implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Integer id;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 店铺签约金额
     */
    private BigDecimal amount;

    /**
     * 激活时长（月）
     */
    private Integer periodMonth;

    /**
     * 创建时间
     */
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private LocalDateTime updateTime;

}
