2019-06-16 21:54:57 +01:00
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
2020-02-10 02:10:18 +00:00
|
|
|
namespace Marechai.Database.Models
|
2019-06-16 21:54:57 +01:00
|
|
|
{
|
|
|
|
|
public abstract class DocumentBase : BaseModel<long>
|
|
|
|
|
{
|
|
|
|
|
[Required]
|
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
public string NativeTitle { get; set; }
|
2020-02-10 22:44:18 +00:00
|
|
|
[DisplayFormat(DataFormatString = "{0:d}"), DataType(DataType.Date)]
|
2019-06-16 21:54:57 +01:00
|
|
|
public DateTime? Published { get; set; }
|
|
|
|
|
public short? CountryId { get; set; }
|
|
|
|
|
[MaxLength(262144, ErrorMessage = "Synopsis is too long")]
|
|
|
|
|
public string Synopsis { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|