mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Add navigation property to device entity
This commit is contained in:
parent
98e19c9fd3
commit
f47fe308b1
@ -26,6 +26,9 @@ namespace Jellyfin.Data.Entities.Security
|
|||||||
|
|
||||||
DateCreated = DateTime.UtcNow;
|
DateCreated = DateTime.UtcNow;
|
||||||
DateLastActivity = DateCreated;
|
DateLastActivity = DateCreated;
|
||||||
|
|
||||||
|
// Non-nullable for EF Core, as this is a required relationship.
|
||||||
|
User = null!;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int Id { get; private set; }
|
public int Id { get; private set; }
|
||||||
@ -77,5 +80,10 @@ namespace Jellyfin.Data.Entities.Security
|
|||||||
/// Gets or sets the date of last activity.
|
/// Gets or sets the date of last activity.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime DateLastActivity { get; set; }
|
public DateTime DateLastActivity { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the user.
|
||||||
|
/// </summary>
|
||||||
|
public User User { get; private set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user