AlertWord

final class AlertWord : Model, @unchecked Sendable

Properties

  • id

    The alertword’s ID.

    Declaration

    Swift

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

    Declaration

    Swift

    @AlertWord
    .Field var word: String { get set }
  • The number of Twarrts that contain this alertword

    Declaration

    Swift

    @AlertWord
    .Field var twarrtCount: Int { get set }
  • The number of ForumPosts that contain this alertword

    Declaration

    Swift

    @AlertWord
    .Field var postCount: Int { get set }

Relations

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

    Declaration

    Swift

    @AlertWord
    .Siblings var users: [User] { get set }

Initialization