torrent api + swip constants

This commit is contained in:
xiaomlove
2021-05-15 19:29:44 +08:00
parent 786095ca96
commit 33e99516b6
55 changed files with 1968 additions and 38 deletions

17
app/Models/Thank.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
namespace App\Models;
class Thank extends NexusModel
{
public function user()
{
return $this->belongsTo(User::class, 'userid');
}
public function torrent()
{
return $this->belongsTo(Torrent::class. 'torrentid');
}
}