mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-10-01 18:49:42 +02:00
sync: migrate sync devices from fs to mongodb
This commit is contained in:
1 parent
c7bb053cea
commit
b98612be7a
19 files changed
+341
-350
No files matched your search
@@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
using MongoDB.Bson;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
|
||||
namespace Notesnook.API.Models
|
||||
{
|
||||
public class SyncDevice
|
||||
{
|
||||
[BsonId]
|
||||
public ObjectId Id { get; set; }
|
||||
|
||||
public required string UserId { get; set; }
|
||||
public required string DeviceId { get; set; }
|
||||
public required long LastAccessTime { get; set; }
|
||||
public required bool IsSyncReset { get; set; }
|
||||
public string? AppVersion { get; set; }
|
||||
public string? DatabaseVersion { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user