Skip to main content

Material Class

Overview

The MaterialClass entity represents categories or classifications of materials, allowing hierarchical grouping and organization. This structure is useful for grouping similar materials under a common class, such as "Raw Material" or " Packaging," and it enables properties or attributes to be shared across materials within the same class.

Table Structure

The following table outlines the SQL columns for the material_classes table, providing a brief description of each, along with sample data where applicable.

ColumnTypeDescriptionExample
idString (ULID)Unique identifier for the entity.01JAP8RJBN-8ZTPXSGY-J9GSDPE1
enabledBooleanIf the entity is enabled or not.true
created_dateDateTimeDate the entity was created.2024-12-31T19:48:44Z
created_byStringPerson who created the entity.TamakiMES
modified_dateDateTimeDate the entity was modified. Value is null upon creation, and gets initially populated upon the first edit.2024-12-31T19:48:44Z
modified_byStringLast person to modify the entity. Value is null upon creation, and gets initially populated upon the first edit.TamakiMES
notesStringNotes about the entity.This entity has these extra notes
spare1StringThe first spare column that can be used for additional context on the entity.some extra context 1
spare2StringThe second spare column that can be used for additional context on the entity.some extra context 2
spare3StringThe third spare column that can be used for additional context on the entity.some extra context 3
parent_idString (ULID)References the parent material class, creating a hierarchical structure. See material_classes.01JAP8R5RT-3FPXQABY-7KQZT6VF
nameStringName of the material class. Required for each class and unique within the parent class.Raw Material
descriptionStringOptional description providing more details about the material class.Base materials for production
pathString (unique)Unique path for the material class, automatically generated based on the hierarchy./Materials/Raw Materials

Field Details

parent_id

References the MaterialClass entity that serves as this class's parent, allowing for hierarchical grouping of classes. See material_classes for details.

name

The name field provides a descriptive identifier for the material class, such as "Raw Material" or "Packaging." This name must be unique within its parent class.

description

An optional field that allows for a longer description of the material class, with a character limit of 2048. This can include additional context or details about the types of materials grouped under this class.

path

The path is a unique identifier that represents the hierarchical location of the material class within the overall classification structure. This path is automatically computed based on the name and parent hierarchy, providing easy navigation and traceability.