30 lines
776 B
C#
30 lines
776 B
C#
using System;
|
|
|
|
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using MongoDB.Bson.Serialization.Conventions;
|
|
using MongoDB.Driver;
|
|
|
|
namespace TextSender_API.Models;
|
|
|
|
public class User
|
|
{
|
|
#region Properties
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string? Id { get; set; }
|
|
[BsonElement("firstname")]
|
|
public string? Firstname { get; set; }
|
|
[BsonElement("lastname")]
|
|
public string? Lastname { get; set; }
|
|
[BsonElement("phonenumber")]
|
|
public string? PhoneNumber { get; set; }
|
|
[BsonElement("username")]
|
|
public string? Username { get; set; }
|
|
[BsonElement("password")]
|
|
public string? Password { get; set; }
|
|
[BsonElement("datecreated")]
|
|
public DateTime? DateCreated { get; set; }
|
|
#endregion
|
|
}
|