2025-07-19 04:02:09 -05:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
|
|
|
|
|
|
namespace FreeTubeSync.Model;
|
|
|
|
|
|
|
|
|
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
|
|
|
|
public class SearchHistory
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
public string _id { get; set; } = string.Empty;
|
2025-07-19 12:41:50 -05:00
|
|
|
public long lastUpdatedAt { get; set; }
|
2025-07-19 04:02:09 -05:00
|
|
|
|
|
|
|
|
public void Update(SearchHistory other)
|
|
|
|
|
{
|
|
|
|
|
if (other.lastUpdatedAt != lastUpdatedAt) lastUpdatedAt = other.lastUpdatedAt;
|
|
|
|
|
}
|
|
|
|
|
}
|