Database structure - WikiCommunityHealth/wikiconv-mongodb GitHub Wiki

Users

users-min

{
    id: "123",
    username: "name",
        or
    id: "168.125.23.36",
    username: undefined,

    isBot: boolean,

    workedOnPagesCount: int,
    nrOfRevisions: int,
    totalActions: int
}

users

{
    id: "123",
    username: "pippo",
        or
    id: "168.125.23.36",
    username: undefined,

    isBot: boolean,

    workedOnPagesCount: int,
    nrOfRevisions: int,
    totalActions: int,

    typeOfActions: {
        ADDITION: int,
        ...
    }

    scoreActions: {

        toxicActions: int,
        toxicActionsRation: float,
        ...
    }

    activityDate: {
        firstEdit: Date,
        lastEdit: Date,
        activeDays: int,
        editsPerDay: float
    }

}

Pages

pages

{
    id: "123",
    pageTitle: "page",

    workedByUsersCount: int,
    nrOfRevisions: int,
    totalActions: int,

    typeOfActions: {
        ADDITION: int,
        ...
    }

    scoreActions: {

        toxicActions: int,
        toxicActionsRation: float,
        ...
    }

    activityDate: {
        firstEdit: Date,
        lastEdit: Date,
        activeDays: int,
        editsPerDay: float
    }
}

pages-min

{
    id: "123"
    pageTitle: "pippo"

    workedByUsersCount: int,
    nrOfRevisions: int,
    totalActions: int
}