15 lines
368 B
C#
15 lines
368 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Portoa.Persistence;
|
|
|
|
namespace VideoGameQuotes.Api {
|
|
public class Category : Entity<Category, int> {
|
|
public Category() {
|
|
Created = DateTime.UtcNow;
|
|
}
|
|
|
|
public virtual DateTime Created { get; set; }
|
|
[Required, StringLength(255)]
|
|
public virtual string Name { get; set; }
|
|
}
|
|
} |