package com.seer.teach.openapi.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

import com.seer.teach.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * SN授权表
 * </p>
 *
 * @author Wang
 * @since 2025-10-31 13:31:24
 */
@Getter
@Setter
@TableName("open_sn_codes")
@Schema(name = "SnCodesEntity对象", description = "SN授权表")
public class SnCodesEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "appId")
    @TableField("app_id")
    private Integer appId;

    @Schema(description = "SN码，唯一标识授权方")
    @TableField("sn_code")
    private String snCode;

    @Schema(description = "0=禁用，1=启用")
    @TableField("`status`")
    private Integer status;

    @Schema(description = "累计调用次数")
    @TableField("used_count")
    private Integer usedCount;

    @Schema(description = "到期时间（可为空表示永久有效）")
    @TableField("expire_time")
    private LocalDateTime expireTime;

    @Schema(description = "备注信息")
    @TableField("remark")
    private String remark;

}
