Mixonomer/music/model/config.py

23 lines
621 B
Python
Raw Normal View History

from fireo.models import Model
2022-12-10 08:44:27 +00:00
from fireo.fields import TextField, NumberField, IDField
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-10 08:44:27 +00:00
id = IDField()
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()