2020-06-30 16:38:06 +01:00
|
|
|
from fireo.models import Model
|
2022-11-27 23:36:50 +00:00
|
|
|
from fireo.fields import TextField, NumberField
|
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
|
|
|
|
|
|
|
spotify_client_id = TextField()
|
|
|
|
spotify_client_secret = TextField()
|
|
|
|
last_fm_client_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
|
|
|
|
"""
|
2020-06-30 16:38:06 +01:00
|
|
|
secret_key = TextField()
|
2022-08-08 18:37:17 +01:00
|
|
|
jwt_secret_key = TextField()
|
2022-08-08 22:02:14 +01:00
|
|
|
jwt_max_length = NumberField()
|
|
|
|
jwt_default_length = NumberField()
|