17 lines
502 B
C#
17 lines
502 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace DBConnection.Models;
|
|
|
|
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 DateTime LastUpdated { get; set; }
|
|
public DateTime DatePosted { get; set; }
|
|
} |