fix(product): Add metadata to property to product category data model (#8766)
* fix: Add metadata to property to product category data model * chore: Add migration for adding metadata column to product category * chore: Added test for product category metadata
This commit is contained in:
@@ -112,6 +112,9 @@ class ProductCategory {
|
||||
@Property({ columnType: "timestamptz", nullable: true })
|
||||
deleted_at?: Date
|
||||
|
||||
@Property({ columnType: "jsonb", nullable: true })
|
||||
metadata?: Record<string, unknown> | null
|
||||
|
||||
@ManyToMany(() => Product, (product) => product.categories)
|
||||
products = new Collection<Product>(this)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user