انتقل إلى المحتوى الرئيسي

Product & Inventory Entities

Entities for products, variants, categories, types, options, warehouses, and merchants.

Product

ColumnTypeDescription
namestringProduct name
codestringSKU/product code
descriptionstring?Description
enabledbooleanAvailability status
imageUrlstring?Product image
featuredImageIdUUID?FK to featured image
productTypeIdUUID?FK to product type
productCategoryIdUUID?FK to category

Relations: variants (OneToMany), category (ManyToOne), type (ManyToOne), options (ManyToMany), tags (ManyToMany), translations (OneToMany)

ProductVariant

ColumnTypeDescription
taxesnumber?Tax rate
notesstring?Notes
quantitynumberStock quantity
billingInvoicingPolicyenum?Invoicing policy
internalReferencestring?Internal ref number
enabledbooleanIs available
productIdUUIDFK to product
imageIdUUID?FK to image asset

Relations: price (OneToOne ProductVariantPrice), settings (OneToMany ProductSetting)

ProductCategory

ColumnTypeDescription
imageUrlstring?Category image
translationsOneToManyLocalized names

ProductType

ColumnTypeDescription
iconstring?Type icon
translationsOneToManyLocalized names

ProductOption / ProductOptionGroup

Multi-level product options (e.g., Size → Small/Medium/Large).

ColumnTypeDescription
namestringOption name
codestringOption code
groupIdUUID?FK to option group

Warehouse

ColumnTypeDescription
namestringWarehouse name
codestringWarehouse code
emailstring?Contact email
descriptionstring?Description
activebooleanActive status
logostring?Logo image URL

Relations: products (OneToMany WarehouseProduct), contact (ManyToOne Contact), tags (ManyToMany Tag)

Merchant

ColumnTypeDescription
namestringMerchant name
codestringMerchant code
emailstring?Contact email
phonestring?Phone number
descriptionstring?Description
activebooleanActive status
currencystringDefault currency
logostring?Logo URL

Relations: contact (ManyToOne Contact), tags (ManyToMany Tag), warehouses (ManyToMany Warehouse)