<?php

namespace App\Models\Core\Auth;

use Illuminate\Database\Eloquent\SoftDeletes;
use Laratrust\Models\LaratrustTeam;

class Team extends LaratrustTeam
{
    use SoftDeletes;

    public $timestamps = false;

    protected $connection = 'mysql';

    public function users()
    {
        return $this->hasMany(User::class);
    }

    public function scopeActive($query)
    {
        return $query->where('active', 1);
    }
}
