Skip to content

models/index.py

models.index

Create the collection index

This file is executed to create the index in MongoDB. All models with index() will be aggregated here.

make_index

make_index() -> None

Make index for the collection with index()

Source code in models/index.py
def make_index() -> None:
    ''' Make index for the collection with `index()` '''
    APITokenDB().index()
    ApplyReviewDB().index()
    BudgetDB().index()
    ExpenseDB().index()
    FormDB().index()
    MailLetterDB().index()
    MattermostLinkDB().index()
    MattermostUsersDB().index()
    OAuthDB().index()
    PolicySignedDB().index()
    ProjectDB(pid='').index()
    SenderReceiverDB().index()
    TasksDB().index()
    TeamDB(pid='', tid='').index()
    TeamMemberChangedDB().index()
    TeamMemberTagsDB().index()
    TeamPlanDB().index()
    TelegramDB().index()
    TrackDB().index()
    USessionDB().index()
    UsersDB().index()
    WaitListDB().index()