Add TagType CRUD

This commit is contained in:
Oscar Morales
2025-07-31 19:07:22 -06:00
parent e191851982
commit 54dd38cfd6
6 changed files with 410 additions and 1 deletions

View File

@@ -0,0 +1,44 @@
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System.Text.Json.Serialization;
namespace Core.Inventory.Domain.Contexts.Inventory.Request
{
/// <summary>
/// Data transfer object (DTO) for adding tagType.
/// </summary>
public class TagTypeRequest
{
/// <summary>
/// Gets or sets the tenantId of the tagType.
/// </summary>
[BsonElement("tenantId")]
[BsonRepresentation(BsonType.String)]
[JsonPropertyName("tenantId")]
public string TenantId { get; set; } = null!;
/// <summary>
/// Gets or sets the typeName of the tagType.
/// </summary>
[BsonElement("typeName")]
[BsonRepresentation(BsonType.String)]
[JsonPropertyName("typeName")]
public string TypeName { get; set; } = null!;
/// <summary>
/// Gets or sets the level of the tagType.
/// </summary>
[BsonElement("level")]
[BsonRepresentation(BsonType.Int32)]
[JsonPropertyName("level")]
public int Level { get; set; }
/// <summary>
/// Gets or sets the parentTypeId of the tagType.
/// </summary>
[BsonElement("parentTypeId")]
[BsonRepresentation(BsonType.String)]
[JsonPropertyName("parentTypeId")]
public string ParentTypeId { get; set; } = null!;
}
}