Fase 2: Gestión de Atributos Dinámicos (Back & Front EAV Definition)

This commit is contained in:
2025-12-17 13:25:35 -03:00
parent fae9101c63
commit b3b553495b
9 changed files with 184 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
namespace SIGCM.Domain.Entities;
public class AttributeDefinition
{
public int Id { get; set; }
public int CategoryId { get; set; }
public required string Name { get; set; }
public required string DataType { get; set; } // text, number, boolean, date
public bool Required { get; set; }
}

View File

@@ -0,0 +1,9 @@
namespace SIGCM.Domain.Interfaces;
using SIGCM.Domain.Entities;
public interface IAttributeDefinitionRepository
{
Task<IEnumerable<AttributeDefinition>> GetByCategoryIdAsync(int categoryId);
Task<int> AddAsync(AttributeDefinition attribute);
Task DeleteAsync(int id);
}