using System; using Google.Cloud.Firestore; namespace MusicTools.Fire { [FirestoreData] public class User { [FirestoreProperty] public string access_token { get; set; } [FirestoreProperty] public string email { get; set; } [FirestoreProperty] public DateTime last_login { get; set; } [FirestoreProperty] public DateTime last_refreshed { get; set; } [FirestoreProperty] public string lastfm_username { get; set; } [FirestoreProperty] public bool locked { get; set; } [FirestoreProperty] public string password { get; set; } [FirestoreProperty] public string refresh_token { get; set; } [FirestoreProperty] public bool spotify_linked { get; set; } [FirestoreProperty] public int token_expiry { get; set; } [FirestoreProperty] public string type { get; set; } [FirestoreProperty] public string username { get; set; } [FirestoreProperty] public bool validated { get; set; } [FirestoreDocumentId] public DocumentReference Reference { get; set; } [FirestoreDocumentCreateTimestamp] public Timestamp CreateTime { get; set; } [FirestoreDocumentUpdateTimestamp] public Timestamp UpdateTime { get; set; } [FirestoreDocumentReadTimestamp] public Timestamp ReadTime { get; set; } } }