package com.sdut.labex.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * File: User
 * Created: 2023/6/11
 * Author: springforest
 * Description:
 */
@TableName(value = "user")
@Data
public class User implements Serializable {
    /**
     * id;
     */
    @TableId
    private String id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 班级
     */
    private String className;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 学院
     */
    private String department;

    /**
     * 身份（student，teacher，admin）
     */
    private String role;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
