-
Declaration
Swift
static let schema: String
-
The snippet’s ID.
Declaration
Swift
@ID var id: UUID?
-
Each ‘song’ is a sequence of video snippets spliced together. Each snippet offered to a user for recording has a index into hat sequence. Snippet 0 is the first snippet in a song.
Declaration
Swift
@Field var songSnippetIndex: Int
-
The URL of the snippet media. Nil upon creation. Gets filled in once the user uploads their video clip for this snippet offer.
Declaration
Swift
@Field var mediaURL: String?
-
Timestamp of the model’s creation, set automatically.
Declaration
Swift
@Timestamp var createdAt: Date?
-
Timestamp of the model’s last update, set automatically.
Declaration
Swift
@Timestamp var updatedAt: Date?
-
Timestamp of the model’s soft-deletion, set automatically.
Declaration
Swift
@Timestamp var deletedAt: Date?
-
Used by Fluent
Declaration
Swift
init()
-
Initializes a new MKSnippet object.
Declaration
Swift
init(song: MKSong, songSnippetIndex: Int, author: UserCacheData) throws
Parameters
song
snippetNumber
-
The type for
MKSong
reports.Declaration
Swift
var reportType: ReportType { get }
-
Declaration
Swift
var authorUUID: UUID { get }
-
Declaration
Swift
var autoQuarantineThreshold: Int { get }
-
Declaration
Swift
var moderationStatus: ContentModerationStatus { get set }