2022-06-19 16:42:35 -05:00
|
|
|
using MongoDB.Bson;
|
|
|
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
|
|
|
|
|
|
namespace server.Models
|
|
|
|
|
{
|
|
|
|
|
public class Season
|
|
|
|
|
{
|
|
|
|
|
[BsonId]
|
|
|
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
|
|
|
public string? Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[BsonElement("seasonNumber")]
|
|
|
|
|
public int? SeasonNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
[BsonElement("numberOfEpisodes")]
|
|
|
|
|
public int? NumberOfEpisodes { get; set; }
|
|
|
|
|
|
|
|
|
|
[BsonElement("dateFirstAired")]
|
2022-06-20 15:29:17 -05:00
|
|
|
[BsonDateTimeOptions(DateOnly = true)]
|
2022-06-19 16:42:35 -05:00
|
|
|
public DateTime? DateFirstAired { get; set; }
|
|
|
|
|
|
|
|
|
|
[BsonElement("dateLastAired")]
|
2022-06-20 15:29:17 -05:00
|
|
|
[BsonDateTimeOptions(DateOnly = true)]
|
2022-06-19 16:42:35 -05:00
|
|
|
public DateTime? DateLastAired { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|