package com.example.demo01.entity;

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


    @Data
    @TableName("player")
    public class Player {
        @TableId(type = IdType.AUTO)
        private Long id;
        private String name;
        private Integer hp;
        private Integer maxHp;
        private Integer atk;
        private Integer exp;
        private Integer level;

        // 关键字段：记录玩家当前在哪间房
        private Long currentRoomId;
    }

