This script can be used to seed a development database with somewhat reasonable dummy data. This can be useful for developers who need to test features with something beyond the sparse amount of data one creates during the standard development lifecycle.
The script itself is mildly clunky, as you need to edit it and change one of these constants
NUM_GROUPS = 0 NUM_TOPICS = 0 NUM_TAGS = 0 # must be greater than 0 when creating topics NUM_USERS = 0
to a non-zero number in order to have the script do something. That said, seeding should be rare and deliberate, so I don't think this is such a big ask.
I also did not add in support for resources I don't currently need (e.g. comments). I can add them in later if desired.