AlertWord

final class AlertWord : Model

Properties

  • id

    The alertword’s ID.

    Declaration

    Swift

    @ID
    var id: Int?
  • The alertword. Must be one word, no spaces. Should be stored in lowercase.

    Declaration

    Swift

    @Field
    var word: String
  • The number of Twarrts that contain this alertword

    Declaration

    Swift

    @Field
    var twarrtCount: Int
  • The number of ForumPosts that contain this alertword

    Declaration

    Swift

    @Field
    var postCount: Int

Relations

  • The sibling Users who have added this alert word to their list of words to be notified on.

    Declaration

    Swift

    @Siblings
    var users: <<error type>>

Initialization