mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-03-31 00:29:54 +02:00
sync: migrate sync devices from fs to mongodb
This commit is contained in:
19
Notesnook.API/Models/SyncDevice.cs
Normal file
19
Notesnook.API/Models/SyncDevice.cs
Normal file
@@ -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