using System;
using System.Collections.Generic;
using FreeSql;
using FreeSql.DataAnnotations;

namespace JXCMS.CMS.Movie.Entity
{
    public class WebSiteEntity : BaseEntity<WebSiteEntity, int>
    {
        public string WebSiteName { get; set; }

        public string ApiUrl { get; set; }

        public string Cron { get; set; } = "0 0 * * * ?";

        public bool IsEnable { get; set; } = true;

        public string LatestMovieNote { get; set; }

        public DateTime LatestMoveTime { get; set; }
        
        [Navigate("Id")]
        public List<ClassifyEntity> WebSiteClassifyEntities { get; set; }

        [Column(IsIgnore = true)]
        public string NextRunTime { get; set; }
    }
}