add changes

This commit is contained in:
StevanFreeborn
2022-06-19 16:42:35 -05:00
parent 58f3c0e930
commit 11619d3638
12 changed files with 340 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
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")]
public DateTime? DateFirstAired { get; set; }
[BsonElement("dateLastAired")]
public DateTime? DateLastAired { get; set; }
}
}