package com.fs.doctor.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

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

/**
 * <p>
 * 时间限制记录表，根据时间周期标识清空表内容
 * </p>
 *
 * @author zhangqin
 * @since 2026-03-03
 */
@Getter
@Setter
@TableName("limit_cycle")
@ApiModel(value = "LimitCycle对象", description = "时间限制记录表，根据时间周期标识清空表内容")
public class LimitCycle extends Model<LimitCycle> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("限制记录主键id")
    @TableId("limit_id")
    private Long limitId;

    @ApiModelProperty("修改银行卡: updateBankCard")
    @TableField("limit_type")
    private String limitType;

    @ApiModelProperty("每天: day")
    @TableField("limit_cycle_key")
    private String limitCycleKey;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Override
    public Serializable pkVal() {
        return this.limitId;
    }
}
