mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 09:41:19 +00:00
66 lines
1.6 KiB
C#
66 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using AspNetCore.Security.Jwt;
|
|
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace MyCore.Models
|
|
{
|
|
public class UserInfo : IAuthenticationUser
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string Id { get; set; }
|
|
|
|
[BsonElement("Role")]
|
|
public string Role { get; set; }
|
|
|
|
[BsonElement("Email")]
|
|
public string Email { get; set; } // UNIQUE !..
|
|
|
|
[BsonElement("Password")]
|
|
public string Password { get; set; }
|
|
|
|
[BsonElement("FirstName")]
|
|
public string FirstName { get; set; }
|
|
|
|
[BsonElement("LastName")]
|
|
public string LastName { get; set; }
|
|
|
|
[BsonElement("Token")]
|
|
public string Token { get; set; }
|
|
|
|
[BsonElement("Birthday")]
|
|
public string Birthday { get; set; }
|
|
|
|
[BsonElement("Address")]
|
|
public string Address { get; set; }
|
|
|
|
[BsonElement("City")]
|
|
public string City { get; set; }
|
|
|
|
[BsonElement("State")]
|
|
public string State { get; set; }
|
|
|
|
[BsonElement("Language")]
|
|
public string Language { get; set; }
|
|
|
|
[BsonElement("TimeZone")]
|
|
public string TimeZone { get; set; }
|
|
|
|
[BsonElement("PostalCode")]
|
|
public int PostalCode { get; set; }
|
|
|
|
[BsonElement("ScreenConfigurationIds")]
|
|
public int[] ScreenConfigurationIds { get; set; }
|
|
|
|
[BsonElement("DeviceIds")]
|
|
public int[] DeviceIds { get; set; }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|