mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-07 02:27:16 +02:00
add relationship on model user,torrent,peer
This commit is contained in:
@@ -142,6 +142,10 @@ var UserSchema = new Schema({
|
||||
_torrents: [{
|
||||
type: Schema.ObjectId,
|
||||
ref: 'Torrent'
|
||||
}],
|
||||
_peers: [{
|
||||
type: Schema.ObjectId,
|
||||
ref: 'Peer'
|
||||
}]
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user