type PermissionResult {
    totalCount: Int
    count: Int
    nodes: [Permission]
}

type PermissionHistory implements DbHistoryModel {
    id: Int
    name: String
    description: String

    deleted: Boolean
    editor: String
    created: String
    updated: String
}

type Permission implements DbModel {
    id: Int
    name: String
    description: String

    deleted: Boolean
    editor: User
    created: String
    updated: String

    history: [PermissionHistory]
}

input PermissionSort {
    id: SortOrder
    name: SortOrder
    description: SortOrder

    deleted: SortOrder
    editor: UserSort
    created: SortOrder
    updated: SortOrder
}

input PermissionFilter {
    id: IntFilter
    name: StringFilter
    description: StringFilter

    deleted: BooleanFilter
    editor: UserFilter
    created: DateFilter
    updated: DateFilter
}

input PermissionInput {
    id: Int
    name: String
    description: String
}
