Skip to content

Database structure

Nicola Toscan edited this page Nov 19, 2020 · 1 revision

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
}
Clone this wiki locally