MKSnippet

final class MKSnippet : Model, @unchecked Sendable
extension MKSnippet: Reportable

Properties

  • id

    The snippet’s ID.

    Declaration

    Swift

    @MKSnippet
    .ID var id: UUID? { get set }
  • 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

    @MKSnippet
    .Field var songSnippetIndex: Int { get set }
  • 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

    @MKSnippet
    .Field var mediaURL: String? { get set }
  • Timestamp of the model’s creation, set automatically.

    Declaration

    Swift

    @MKSnippet
    .Timestamp var createdAt: Date? { get set }
  • Timestamp of the model’s last update, set automatically.

    Declaration

    Swift

    @MKSnippet
    .Timestamp var updatedAt: Date? { get set }
  • Timestamp of the model’s soft-deletion, set automatically.

    Declaration

    Swift

    @MKSnippet
    .Timestamp var deletedAt: Date? { get set }

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

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

    Declaration

    Swift

    @MKSnippet
    .Parent var song: MKSong { get set }

Initialization