package com.nbport.zgwl.entity;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

@Data
@TableName(value = "BIZ_STUDENT")
@EqualsAndHashCode(callSuper = true)
@KeySequence(value = "SEQ_BIZ_STUDENT", dbType = DbType.ORACLE)
public class StudentEntity extends BaseEntity<StudentEntity> {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @TableField("student_no")
    private String studentNo;

    @TableField("student_name")
    private String studentName;

    @TableField("gender")
    private String gender;

    @TableField("age")
    private Integer age;

    @TableField("phone")
    private String phone;

    @TableField("address")
    private String address;
}
