DailyTheme
final class DailyTheme : ModelEvery day during the cruise, there’s a theme. This model lets us store the themes for each day, with a bit of text explaining the theme and an image related to the theme somehow.
For an 8 day cruise, there shouldn’t be more than ~10 of these records. Each day of the cruise tends to have an ‘officall’ theme day, and it might be appropriate to add unofficial themes for a day or two before embarkation?
See
See Also: DailyThemeData the DTO for returning info on DailyThemes.See
See Also: DailyThemeUploadData the DTO for mutating DailyThemes..See
See Also: CreateDailyThemeSchema the Migration for creating the DailyTheme table in the database.- 
                  
                  DeclarationSwift static let schema: String
- 
                  
                  The theme’s ID. DeclarationSwift @ID var id: UUID?
- 
                  
                  The title of the theme. DeclarationSwift @Field var title: String
- 
                  
                  A paragraph-length description of the theme, including info on how to participate. DeclarationSwift @Field var info: String
- 
                  
                  An image that relates to the theme. DeclarationSwift @OptionalField var image: String?
- 
                  
                  Day of cruise, counted from Settings.shared.cruiseStartDate. 0 is embarkation day. Values could be negative (e.g. Day -1 is “Anticipation Day”) Values for this field are uniqued in the database, meaning switching two theme days requires extra steps.DeclarationSwift @Field var cruiseDay: Int32
- 
                  
                  DeclarationSwift init()
- 
                  
                  Initializes a new DailyTheme. DeclarationSwift init(title: String, info: String, image: String?, day: Int32)ParameterstitleThe title for the the theme day. infoExtra info about the daily theme. imageAn image relating to the theme somehow.. dayWhich day of the cruise this DailyTheme pertains to. Day 0 is embarkation day; days are midnight to midnight in the ship’s time zone. 
 View on GitHub
            View on GitHub
           DailyTheme Class Reference
      DailyTheme Class Reference