Files
nexusphp/app/Models/TorrentBuyLog.php
2023-02-11 16:08:48 +08:00

24 lines
403 B
PHP

<?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');
}
}