14 lines
353 B
C#
14 lines
353 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Treestar.Shared.Models.DBDomain
|
|
{
|
|
[Index(nameof(Email))]
|
|
public class User : BaseEntity
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
public string Email { get; set; }
|
|
public List<UserNovel> WatchedNovels { get; set; }
|
|
}
|
|
} |