package com.test.bijihoudaun.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 io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("`registration_codes`")
@Schema(description = "注册码实体")
public class RegistrationCode implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID", name = "id")
    private Long id;

    @Schema(description = "注册码", name = "code")
    @TableField("`code`")
    private String code;

    @Schema(description = "过期时间", name = "expiryTime")
    @TableField("expiry_time")
    private String expiryTime;

    @Schema(description = "创建者", name = "createdBy")
    @TableField("created_by")
    private String createdBy;

    @Schema(description = "创建时间", name = "createdAt")
    @TableField("created_at")
    private String createdAt;
}