using Extrudex.Domain.Base;
namespace Extrudex.Domain.Entities;
///
/// Base polymer/material type. This is a lookup table enforcing consistent
/// material naming across all spools. Free-text material names are not allowed.
///
public class MaterialBase : AuditableEntity
{
///
/// Human-readable name of the base material (e.g., "PLA", "PETG", "ABS").
///
public string Name { get; set; } = string.Empty;
///
/// Density of the material in g/cm³ (g/mL). Used for deriving grams consumed
/// from mm extruded: grams = mm × cross_section_area × density.
///
public decimal DensityGperCm3 { get; set; }
///
/// Navigation collection of finishes available for this material base.
///
public ICollection Finishes { get; set; } = new List();
///
/// Navigation collection of modifiers applicable to this material base.
///
public ICollection Modifiers { get; set; } = new List();
///
/// Navigation collection of spools made from this material base.
///
public ICollection Spools { get; set; } = new List();
}