diff --git a/Src/VideoGameQuotes.Api/Category.cs b/Src/VideoGameQuotes.Api/Category.cs new file mode 100644 index 0000000..da58c35 --- /dev/null +++ b/Src/VideoGameQuotes.Api/Category.cs @@ -0,0 +1,15 @@ +using System; +using System.ComponentModel.DataAnnotations; +using Portoa.Persistence; + +namespace VideoGameQuotes.Api { + public class Category : Entity { + public Category() { + Created = DateTime.UtcNow; + } + + public virtual DateTime Created { get; set; } + [Required, StringLength(255)] + public virtual string Name { get; set; } + } +} \ No newline at end of file