package com.cxy.classroll.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "user")
public class User {
    private static final long serialVersionUID = 1L;

    @TableField("id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "微信openid")
    @TableField("wx_open_id")
    private String wx_open_id;

    @Schema(description = "学工号")
    @TableField("no")
    private String no;

    @Schema(description = "姓名")
    @TableField("name")
    private String name;

    @Schema(description = "学校")
    @TableField("school")
    private String school;

    @Schema(description = "积分")
    @TableField("score")
    private int score;

    @Schema(description = "身份")
    @TableField("identify")
    private int identify;
}
