mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
24 lines
403 B
PHP
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');
|
|
}
|
|
|
|
}
|