paid torrent

This commit is contained in:
xiaomlove
2023-02-11 16:08:48 +08:00
parent 43b35b4e77
commit 3c64e76011
50 changed files with 556 additions and 87 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace App\Models;
use Nexus\Database\NexusDB;
class TorrentBuyLog extends NexusModel
{
public $timestamps = true;
protected $fillable = ['uid', 'torrent_id', 'price', 'channel'];
public function user()
{
return $this->belongsTo(User::class, 'uid');
}
public function torrent()
{
return $this->belongsTo(Torrent::class, 'torrent_id');
}
}