# ===================================
# Filter Scope Definitions
# ===================================

scopes:

    groups:
        # Filter name
        label: rainlab.user::lang.group.label
        # Model Class name
        modelClass: RainLab\User\Models\UserGroup
        # Model attribute to display for the name
        nameFrom: name
        # Filter scope
        scope: filterByGroup

    created_at:
        label: rainlab.user::lang.user.created_at
        type: daterange
        conditions: created_at >= ':after' AND created_at <= ':before'

    activated:
        # Filter name
        label: rainlab.user::lang.user.status_activated
        # Filter type
        type: switch
        # SQL conditions
        conditions:
            - is_activated = '0'
            - is_activated = '1'
