| package com.example.g8backend.entity; |
| |
| import com.baomidou.mybatisplus.annotation.IdType; |
| import com.baomidou.mybatisplus.annotation.TableId; |
| import com.baomidou.mybatisplus.annotation.TableName; |
| import lombok.Data; |
| |
| @Data |
| @TableName("peers") |
| public class Peer { |
| @TableId(type = IdType.AUTO) |
| private Long peerId; |
| |
| private Long userId; |
| private Long torrentId; |
| private String ipAddress; |
| private Integer port; |
| private Double uploaded; |
| private Double downloaded; |
| |
| @Override |
| public String toString() { |
| return "Peer{" + |
| "peerId=" + peerId + |
| ", userId=" + userId + |
| ", torrentId=" + torrentId + |
| ", ipAddress='" + ipAddress + '\'' + |
| ", port=" + port + |
| ", uploaded=" + uploaded + |
| ", downloaded=" + downloaded + |
| '}'; |
| } |
| } |