Files
schedtxt_api/Models/Contact.cs
T
kdeng00 794368883d Added model and started working on endpoint
Working on endpoint to create contacts using a file
2023-10-02 06:49:02 -04:00

38 lines
954 B
C#

using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace TextSender_API.Models;
public class Contact
{
#region Properties
public int ContactID { get; set; }
public string? Firstname { get; set; }
public string? Lastname { get; set; }
public string? PhoneNumber { get; set; }
public DateTime DateCreated { get; set; }
public int UserID { get; set; }
#endregion
}
public class ContactCreationQueue
{
#region Properties
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string? Id { get; set; }
[BsonElement("filepath")]
public string? Filepath { get; set; }
[BsonElement("status")]
public string? Status { get; set; }
[BsonElement("user_id")]
public string? UserId { get; set; }
[BsonElement("date_created")]
public DateTime? DateCreated { get; set; }
[BsonElement("processed")]
public bool? Processed { get; set; }
#endregion
}