Rebrand database project.

This commit is contained in:
2020-02-10 02:23:32 +00:00
parent 091a27c3d9
commit 6e1ba53f3b
198 changed files with 5 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Marechai.Database.Models
{
public abstract class DocumentBase : BaseModel<long>
{
[Required]
public string Title { get; set; }
public string NativeTitle { get; set; }
[DisplayFormat(DataFormatString = "{0:d}")]
[DataType(DataType.Date)]
public DateTime? Published { get; set; }
public short? CountryId { get; set; }
[MaxLength(262144, ErrorMessage = "Synopsis is too long")]
public string Synopsis { get; set; }
}
}