Mixonomer/music/model/config.py

21 lines
592 B
Python
Raw Normal View History

from fireo.models import Model
2022-11-27 23:36:50 +00:00
from fireo.fields import TextField, NumberField
class Config(Model):
2021-03-24 10:06:54 +00:00
"""Service-level config data structure for app keys and settings
"""
class Meta:
collection_name = 'config'
2021-03-24 10:06:54 +00:00
"""Set correct path in Firestore
"""
2022-12-09 08:37:05 +00:00
apns_team_id = TextField()
apns_key_id = TextField()
playlist_cloud_operating_mode = TextField() # task, function
2021-03-24 10:06:54 +00:00
"""Determines whether playlist and tag update operations are done by Cloud Tasks or Functions
"""
jwt_max_length = NumberField()
jwt_default_length = NumberField()