from flask_restx import fields
from marshmallow import fields, Schema


spot_dict = {
	"name" : fields.String(
        required=True, 
        help_text="Name of the spot."
    ),
    "duration" : fields.Integer(
        required=True, 
        help_text="Duration of the spot in seconds."
    ),
    "products" : fields.List(
        fields.String, 
        help_text="References to the products featured in the spot."
    ),
    "cost" : fields.Decimal( 
        precision=2,
        min_value=0.0,
        help_text="Cost of producing the spot."
    ),
    "producer" : fields.String(
        max_length=100,
        help_text="Name of the producer or production company."
    ),
    "created_date" : fields.DateTime(
        help_text="Date and time when the spot was created."
    ),
    "is_approved" : fields.Boolean(
        default=False,
        help_text="Approval status of the spot."
    ),
    "cast" : fields.List(
        fields.String(max_length=100),
        help_text="List of actors or characters featured in the spot."
    ),
    "poster_image" : fields.String(
        help_text="URL/Path Poster image for the spot."
    ),
    "spot_video" : fields.String(
        help_text="URL/Path Video file of the spot."
    ),
    "i_frames" : fields.List(
        fields.String(),
        help_text="List of URL/Path I-frame images related to the spot."
    )
}