mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-31 04:04:19 -04:00
28 lines
806 B
C#
28 lines
806 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using API.Entities.Interfaces;
|
|
using Microsoft.AspNetCore.Identity;
|
|
|
|
|
|
namespace API.Entities
|
|
{
|
|
public class AppUser : IdentityUser<int>, IHasConcurrencyToken
|
|
{
|
|
public DateTime Created { get; set; } = DateTime.Now;
|
|
public DateTime LastActive { get; set; }
|
|
public ICollection<Library> Libraries { get; set; }
|
|
public ICollection<AppUserRole> UserRoles { get; set; }
|
|
public ICollection<AppUserProgress> Progresses { get; set; }
|
|
public ICollection<AppUserRating> Ratings { get; set; }
|
|
|
|
[ConcurrencyCheck]
|
|
public uint RowVersion { get; set; }
|
|
|
|
public void OnSavingChanges()
|
|
{
|
|
RowVersion++;
|
|
}
|
|
|
|
}
|
|
} |