-
Declaration
Swift
static let schema: String
-
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
-
The sibling
User
s who have added this alert word to their list of words to be notified on.Declaration
Swift
@Siblings var users: <<error type>>
-
Used by Fluent
Declaration
Swift
init()
-
Initializes a new AlertWord object.
Declaration
Swift
init(_ word: String)
Parameters
word
the word to alert on..