Re-creates the database for developments purposes.
Deletes all tables and re-creates the database.
"""
"""
Base.metadata.drop_all()
Base.metadata.drop_all()
Base.metadata.create_all()
Base.metadata.create_all()
...
@@ -144,6 +140,14 @@ class AuraDatabaseModel():
...
@@ -144,6 +140,14 @@ class AuraDatabaseModel():
classTimeslot(DB.Model,AuraDatabaseModel):
classTimeslot(DB.Model,AuraDatabaseModel):
"""
"""
One specific timeslot for a show.
One specific timeslot for a show.
Relationships:
playlist (Playlist): The specific playlist for this timeslot
schedule_default (Playlist): Some playlist played by default, when no specific playlist is assigned
show_default (Playlist): Some playlist played by default, when no default schedule playlist is assigned
schedule_fallback (Playlist): Some playlist played as fallback, when no specific playlist is assigned or if it is errorneous (includes silence detection)
show_fallback (Playlist): Some playlist played as fallback, when no schedule fallback playlist is assigned or if some specific playlist is errorneous (includes silence detection)
station_fallback (Playlist): Defined in the original AURA API but not implemented, as station fallbacks are handled locally
"""
"""
__tablename__='timeslot'
__tablename__='timeslot'
...
@@ -155,10 +159,18 @@ class Timeslot(DB.Model, AuraDatabaseModel):
...
@@ -155,10 +159,18 @@ class Timeslot(DB.Model, AuraDatabaseModel):