Added user collection
This commit is contained in:
parent
d16418b5d5
commit
9227ee971a
@ -24,10 +24,11 @@ db = db_client.get_database(name=db_config["name"])
|
||||
|
||||
collections = db.list_collection_names()
|
||||
|
||||
for collection in ["albums", "photos", "tokens"]:
|
||||
for collection in ["users", "albums", "photos", "tokens"]:
|
||||
if not collection in collections:
|
||||
db.create_collection(collection)
|
||||
|
||||
col_users = db.get_collection("users")
|
||||
col_albums = db.get_collection("albums")
|
||||
col_photos = db.get_collection("photos")
|
||||
col_tokens = db.get_collection("tokens")
|
Loading…
Reference in New Issue
Block a user