using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace server.Models
{
public class Season
{
///
/// Identifier for the season.
///
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string? Id { get; set; }
///
/// The season number.
///
[BsonElement("seasonNumber")]
public int? SeasonNumber { get; set; }
///
/// The number of episodes in the season.
///
[BsonElement("numberOfEpisodes")]
public int? NumberOfEpisodes { get; set; }
///
/// The date the season first aired.
///
[BsonElement("dateFirstAired")]
[BsonDateTimeOptions(DateOnly = true)]
public DateTime? DateFirstAired { get; set; }
///
/// The date the season last aired.
///
[BsonElement("dateLastAired")]
[BsonDateTimeOptions(DateOnly = true)]
public DateTime? DateLastAired { get; set; }
}
}