43 lines
831 B
PHP
43 lines
831 B
PHP
<?php
|
|
|
|
namespace LaraBB\Peer\Models;
|
|
|
|
use App\Traits\Uuid;
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
/**
|
|
* Class Peer
|
|
* @package LaraBB\Peer\Models
|
|
*
|
|
* @property int $id
|
|
* @property string $uuid
|
|
* @property Carbon $created_at
|
|
* @property string $created_uuid
|
|
* @property Carbon $updated_at
|
|
* @property string $updated_uuid
|
|
* @property string $peer_id
|
|
* @property string $torrent_uuid
|
|
* @property float $bytes
|
|
* @property string $ip
|
|
* @property int $port
|
|
* @property string $status
|
|
* @property bool $natuser
|
|
* @property string $client
|
|
* @property string $dns
|
|
* @property int $uploaded
|
|
* @property int $downloaded
|
|
* @property string $compact
|
|
*/
|
|
|
|
class Peer extends Model
|
|
{
|
|
use Uuid;
|
|
|
|
protected $table = 'peers';
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $primaryKey = 'uuid';
|
|
}
|