package com.example.demo01.entity;

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

@Data
@TableName("room")
public class Room {
    @TableId
    private Long id;
    private String name;
    private String description;

    // 连接信息：存储相邻房间的 ID
    private Long northRoomId;
    private Long southRoomId;
    private Long eastRoomId;
    private Long westRoomId;

    // 该房间内怪物的 ID (如果为 null 则安全)
    private Long monsterId;
}
