mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
29 lines
686 B
PHP
29 lines
686 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class ServerShadowsocks extends Model
|
|
{
|
|
protected $table = 'v2_server_shadowsocks';
|
|
protected $dateFormat = 'U';
|
|
protected $guarded = ['id'];
|
|
protected $casts = [
|
|
'created_at' => 'timestamp',
|
|
'updated_at' => 'timestamp',
|
|
'group_id' => 'array',
|
|
'route_id' => 'array',
|
|
'tags' => 'array',
|
|
'excludes' => 'array',
|
|
'obfs_settings' => 'array',
|
|
'ips' => 'array'
|
|
];
|
|
|
|
public function parent(): BelongsTo
|
|
{
|
|
return $this->belongsTo(self::class, 'parent_id', 'id');
|
|
}
|
|
}
|