Entity product

Something for sale.

Subject areas: Catalog

Attributes

#NameTypeNullDefaultKeyTermsDescription
1idbigintnoPK
2category_idbigintnoFK
3skutext(40)noUQ
4nametext(200)no
5pricedomain money (decimal(12, 2))no0
6attributesjsonyes
7activebooleannotrue

Keys

KindNameAttributes
primarypk_productid
uniqueuq_product_skusku

Relationships

NameRoleOther entityCardinalityAttributesIdentifyingOn deleteOn update
order_line_productparentorder_lineone to manyorder_line.product_id -> product.idnono_actionno_action
product_categorychildcategoryone to manyproduct.category_id -> category.idnono_actionno_action

Physical

lite (sqlite): main.product

#NameTypeNullDefaultIdentityCollationAttributeComment
1idintegernoby_defaultid
2category_idintegernocategory_id
3skutextnosku
4nametextnoname
5pricenumericno0price
6attributestextyesattributes
7activeintegerno1active

pg (postgresql): public.product

Something for sale.

#NameTypeNullDefaultIdentityCollationAttributeComment
1idbigintnoalwaysid
2category_idbigintnocategory_id
3skuvarchar(40)nosku
4namevarchar(200)noname
5pricenumeric(12, 2)no0price
6attributesjsonbyesattributes
7activebooleannotrueactive