mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-02-12 19:22:45 +00:00
26 lines
732 B
C#
26 lines
732 B
C#
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using Notesnook.API.Interfaces;
|
|
using Streetwriters.Data.Attributes;
|
|
|
|
namespace Notesnook.API.Models
|
|
{
|
|
[BsonCollection("notesnook", "user_settings")]
|
|
public class UserSettings : IUserSettings
|
|
{
|
|
public UserSettings()
|
|
{
|
|
this.Id = ObjectId.GenerateNewId().ToString();
|
|
}
|
|
public string UserId { get; set; }
|
|
public long LastSynced { get; set; }
|
|
public string Salt { get; set; }
|
|
public EncryptedData VaultKey { get; set; }
|
|
public EncryptedData AttachmentsKey { get; set; }
|
|
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string Id { get; set; }
|
|
}
|
|
}
|