21 lines
660 B
C#
21 lines
660 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Treestar.Shared.Models.Enums;
|
|
|
|
namespace Treestar.Shared.Models.DBDomain
|
|
{
|
|
[Index(nameof(Guid))]
|
|
public class Novel : BaseEntity
|
|
{
|
|
[Key]
|
|
public string Url { get; set; }
|
|
public Guid Guid { get; set; }
|
|
public string Title { get; set; }
|
|
public Author? Author { get; set; }
|
|
public List<Tag> Tags { get; set; }
|
|
public List<Chapter> Chapters { get; set; }
|
|
public NovelStatus Status { get; set; }
|
|
public DateTime LastUpdated { get; set; }
|
|
public DateTime DatePosted { get; set; }
|
|
}
|
|
} |