diff --git a/back/src/Kyoo.Abstractions/Models/Resources/Movie.cs b/back/src/Kyoo.Abstractions/Models/Resources/Movie.cs index d3ccf7c4..bdab427e 100644 --- a/back/src/Kyoo.Abstractions/Models/Resources/Movie.cs +++ b/back/src/Kyoo.Abstractions/Models/Resources/Movie.cs @@ -19,6 +19,7 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using EntityFrameworkCore.Projectables; using Kyoo.Abstractions.Controllers; @@ -118,6 +119,14 @@ namespace Kyoo.Abstractions.Models /// public Image? Logo { get; set; } + [SerializeIgnore] + [Column("air_date")] + public DateTime? StartAir => AirDate; + + [SerializeIgnore] + [Column("air_date")] + public DateTime? EndAir => AirDate; + /// /// A video of a few minutes that tease the content. ///