blob: 43302ce62b7625827463887691015069a62ae118 [file] [log] [blame]
wuchimedes079c1632025-04-02 22:01:20 +08001package com.example.g8backend.entity;
2
3import com.baomidou.mybatisplus.annotation.IdType;
4import com.baomidou.mybatisplus.annotation.TableId;
5import com.baomidou.mybatisplus.annotation.TableName;
6import lombok.Data;
7
8@Data
9@TableName("peers")
10public class Peer {
wuchimedes079c1632025-04-02 22:01:20 +080011 private Long peerId;
wuchimedes223bfab2025-04-04 17:16:05 +080012 private String info_hash;
13 private Long userId; // passkey from announce
wuchimedes079c1632025-04-02 22:01:20 +080014 private String ipAddress;
15 private Integer port;
16 private Double uploaded;
17 private Double downloaded;
18
wuchimedes079c1632025-04-02 22:01:20 +080019}