2019-04-25 13:47:21 -07:00
|
|
|
<?php
|
|
|
|
|
|
2019-04-25 13:54:39 -07:00
|
|
|
namespace ProcessMaker\Model;
|
2019-04-25 13:47:21 -07:00
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class User extends Model
|
|
|
|
|
{
|
|
|
|
|
protected $table = "USERS";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the delegations this user has (all of them)
|
|
|
|
|
*/
|
|
|
|
|
public function delegations()
|
|
|
|
|
{
|
|
|
|
|
return $this->hasMany(Delegation::class, 'USR_ID', 'USR_ID');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|