2020-06-30 16:38:06 +01:00
|
|
|
from fireo.models import Model
|
2022-12-10 08:44:27 +00:00
|
|
|
from fireo.fields import TextField, NumberField, IDField
|
2020-06-30 16:38:06 +01:00
|
|
|
|
|
|
|
|
|
|
|
class Config(Model):
|
2021-03-24 10:06:54 +00:00
|
|
|
"""Service-level config data structure for app keys and settings
|
|
|
|
"""
|
|
|
|
|
2020-06-30 16:38:06 +01:00
|
|
|
class Meta:
|
|
|
|
collection_name = 'config'
|
2021-03-24 10:06:54 +00:00
|
|
|
"""Set correct path in Firestore
|
|
|
|
"""
|
2020-06-30 16:38:06 +01:00
|
|
|
|
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()
|
2020-06-30 16:38:06 +01:00
|
|
|
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
|
|
|
|
"""
|
2022-08-08 22:02:14 +01:00
|
|
|
jwt_max_length = NumberField()
|
|
|
|
jwt_default_length = NumberField()
|