type decimal : Decimal(6, 3);

entity Products : cuid, managed {
    product       : String(8);
    productName   : String(80);
    description   : LargeString;
    category      : Association to Categories;
    subCategory   : Association to SubCategories;
    statu         : Association to Status;
    price         : Decimal(6, 2);
    rating        : Decimal(3, 2);
    currency      : String;
    detail        : Composition of ProductDetails;
    supplier      : Association to Suppliers;
};

entity ProductDetails : cuid {
    baseUnit   : String default 'EA';
    width      : decimal;
    height     : decimal;
    depth      : decimal;
    weight     : decimal;
    unitVolume : String default 'CM';
    unitWeight : String default 'KG';
};