<?php

namespace App\Modules\Network\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Prunable;
use Illuminate\Database\Eloquent\SoftDeletes;
use Log;

class PrefixCommunity extends Model
{
    use Prunable;
    use SoftDeletes;

    protected $table = 'prefix_community';

    protected $fillable = [
        'prefix_id',
        'is_large',
        'community'
    ];

    protected $dates = [
        'created_at',
        'updated_at',
        'deleted_at'
    ];

    public function prunable() {
        return static::where('deleted_at', '<=', now()->subDays(3));
    }
}
