38 lines
954 B
C#
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
|
|
} |