'datetime', 'password' => 'hashed', 'is_active' => 'boolean', ]; } /** * Get the sales routes for the user. */ public function salesRoutes(): HasMany { return $this->hasMany(SalesRoute::class); } /** * Get the sales plans for the user. */ public function salesPlans(): HasMany { return $this->hasMany(SalesPlan::class); } /** * Get the agent that this user belongs to. */ public function agent(): BelongsTo { return $this->belongsTo(Agent::class); } /** * Get the user group (role) of the user */ public function group(): BelongsTo { return $this->belongsTo(UserGroup::class, 'user_group_id'); } }