73 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| // ***********************************************************************
 | |
| // <copyright file="UserAddDto.cs">
 | |
| //     Heath
 | |
| // </copyright>
 | |
| // ***********************************************************************
 | |
| 
 | |
| using MongoDB.Bson;
 | |
| using MongoDB.Bson.Serialization.Attributes;
 | |
| using System.Text.Json.Serialization;
 | |
| 
 | |
| namespace Core.Cerberos.Domain.Contexts.Onboarding.Request
 | |
| {
 | |
|     /// <summary>
 | |
|     /// Data transfer object (DTO) for adding a user.
 | |
|     /// </summary>
 | |
|     public class UserRequest
 | |
|     {
 | |
|         /// <summary>
 | |
|         /// Gets or sets the email address of the user.
 | |
|         /// </summary>
 | |
|         [BsonElement("email")]
 | |
|         [BsonRepresentation(BsonType.String)]
 | |
|         [JsonPropertyName("email")]
 | |
|         public string Email { get; set; } = null!;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Gets or sets the name of the user.
 | |
|         /// </summary>
 | |
|         [BsonElement("name")]
 | |
|         [BsonRepresentation(BsonType.String)]
 | |
|         [JsonPropertyName("name")]
 | |
|         public string Name { get; set; } = null!;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Gets or sets the middlename of the user.
 | |
|         /// </summary>
 | |
|         [BsonElement("middleName")]
 | |
|         [BsonRepresentation(BsonType.String)]
 | |
|         [JsonPropertyName("middleName")]
 | |
|         public string MiddleName { get; set; } = null!;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Gets or sets the last name of the user.
 | |
|         /// </summary>
 | |
|         [BsonElement("lastName")]
 | |
|         [BsonRepresentation(BsonType.String)]
 | |
|         [JsonPropertyName("lastName")]
 | |
|         public string LastName { get; set; } = null!;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Gets or sets the role ID of the user.
 | |
|         /// </summary>
 | |
|         [BsonElement("roleId")]
 | |
|         [BsonRepresentation(BsonType.ObjectId)]
 | |
|         [JsonPropertyName("roleId")]
 | |
|         public string RoleId { get; set; } = null!;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Gets or sets the array of companies associated with the user.
 | |
|         /// </summary>
 | |
|         [BsonElement("companies")]
 | |
|         [JsonPropertyName("companies")]
 | |
|         public string[] Companies { get; set; } = null!;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Gets or sets the array of projects associated with the user.
 | |
|         /// </summary>
 | |
|         [BsonElement("projects")]
 | |
|         [JsonPropertyName("projects")]
 | |
|         public string[]? Projects { get; set; }
 | |
|     }
 | |
| }
 | 
