MKSnippet

final class MKSnippet : Model
extension MKSnippet: Reportable

Properties

  • id

    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?

Relations

  • The parent User who was offered the snippet slot. If mediaFilename is non-nil, the parent User who authored the video clip.

    Declaration

    Swift

    @Parent
    var author: User
  • The song that this snippet will be/is a part of.

    Declaration

    Swift

    @Parent
    var song: MKSong

Initialization