mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-11-03 19:17:05 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			870 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			870 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; }
 | 
						|
        public AppUserPreferences UserPreferences { get; set; }
 | 
						|
        
 | 
						|
        [ConcurrencyCheck]
 | 
						|
        public uint RowVersion { get; set; }
 | 
						|
 | 
						|
        public void OnSavingChanges()
 | 
						|
        {
 | 
						|
            RowVersion++;
 | 
						|
        }
 | 
						|
 | 
						|
    }
 | 
						|
} |