Saving changes

This commit is contained in:
kdeng00
2023-09-19 19:36:17 -04:00
parent 179acc1920
commit 18ebc9eefa
3 changed files with 67 additions and 7 deletions
+18 -7
View File
@@ -1,16 +1,27 @@
using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Driver;
namespace TextSender_API.Models;
public class User
{
#region Properties
public int UserID { get; set; }
public string Firstname { get; set; }
public string Lastname { get; set; }
public string PhoneNumber { get; set; }
public string Username { get; set; }
public string Password { get; set; }
public DateTime DateCreated { get; set; }
[BsonElement("_id")]
public ObjectId UserID { 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
}