"""
Represents an encoding script used to produce a video.

For example, the 2009/Summer/Bakemonogatari-OP1.txt video script represents the encoding script of the Bakemonogatari-OP1.webm video.
"""
type VideoScript @model(class: "App\\Models\\Wiki\\Video\\VideoScript") {
    "The primary key of the resource"
    id: Int! @rename(attribute: "script_id")

    "The path of the file in storage"
    path: String!

    "The URL to download the file from storage"
    link: String!

    "The date that the resource was created"
    createdAt(format: String! = "Y-m-d H:i:s"): String @timestamp(attribute: "created_at")

    "The date that the resource was updated"
    updatedAt(format: String! = "Y-m-d H:i:s"): String @timestamp(attribute: "updated_at")

    video: Video! @belongsTo
}