wuchimedes | 079c163 | 2025-04-02 22:01:20 +0800 | [diff] [blame] | 1 | package com.example.g8backend.entity; |
| 2 | |
| 3 | import com.baomidou.mybatisplus.annotation.IdType; |
| 4 | import com.baomidou.mybatisplus.annotation.TableId; |
| 5 | import com.baomidou.mybatisplus.annotation.TableName; |
| 6 | import lombok.Data; |
| 7 | |
| 8 | @Data |
| 9 | @TableName("peers") |
| 10 | public class Peer { |
wuchimedes | 079c163 | 2025-04-02 22:01:20 +0800 | [diff] [blame] | 11 | private Long peerId; |
wuchimedes | 223bfab | 2025-04-04 17:16:05 +0800 | [diff] [blame^] | 12 | private String info_hash; |
| 13 | private Long userId; // passkey from announce |
wuchimedes | 079c163 | 2025-04-02 22:01:20 +0800 | [diff] [blame] | 14 | private String ipAddress; |
| 15 | private Integer port; |
| 16 | private Double uploaded; |
| 17 | private Double downloaded; |
| 18 | |
wuchimedes | 079c163 | 2025-04-02 22:01:20 +0800 | [diff] [blame] | 19 | } |