@hed-hog/catalog 0.0.299 → 0.0.301

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,40 +1,40 @@
1
- columns:
2
- - type: pk
3
- - name: attribute_id
4
- type: fk
5
- references:
6
- table: catalog_attribute
7
- column: id
8
- onDelete: CASCADE
9
- - name: slug
10
- type: varchar
11
- length: 255
12
- - name: label
13
- type: varchar
14
- length: 255
15
- - name: option_value
16
- type: varchar
17
- length: 255
18
- - name: normalized_value
19
- type: varchar
20
- length: 255
21
- isNullable: true
22
- - name: sort_order
23
- type: int
24
- default: 0
25
- - name: status
26
- type: enum
27
- values: [active, inactive]
28
- default: active
29
- - name: is_default
30
- type: boolean
31
- default: false
32
- - type: created_at
33
- - type: updated_at
34
- indices:
35
- - columns: [attribute_id, slug]
36
- isUnique: true
37
- - columns: [attribute_id, option_value]
38
- isUnique: true
39
- - columns: [attribute_id, sort_order]
40
- - columns: [status]
1
+ columns:
2
+ - type: pk
3
+ - name: attribute_id
4
+ type: fk
5
+ references:
6
+ table: catalog_attribute
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: slug
10
+ type: varchar
11
+ length: 255
12
+ - name: label
13
+ type: varchar
14
+ length: 255
15
+ - name: option_value
16
+ type: varchar
17
+ length: 255
18
+ - name: normalized_value
19
+ type: varchar
20
+ length: 255
21
+ isNullable: true
22
+ - name: sort_order
23
+ type: int
24
+ default: 0
25
+ - name: status
26
+ type: enum
27
+ values: [active, inactive]
28
+ default: active
29
+ - name: is_default
30
+ type: boolean
31
+ default: false
32
+ - type: created_at
33
+ - type: updated_at
34
+ indices:
35
+ - columns: [attribute_id, slug]
36
+ isUnique: true
37
+ - columns: [attribute_id, option_value]
38
+ isUnique: true
39
+ - columns: [attribute_id, sort_order]
40
+ - columns: [status]
@@ -1,40 +1,40 @@
1
- columns:
2
- - type: pk
3
- - name: parent_category_id
4
- type: fk
5
- isNullable: true
6
- references:
7
- table: catalog_category
8
- column: id
9
- onDelete: SET NULL
10
- - name: slug
11
- type: varchar
12
- length: 255
13
- - name: name
14
- type: varchar
15
- length: 255
16
- - name: normalized_name
17
- type: varchar
18
- length: 255
19
- isNullable: true
20
- - name: description
21
- type: text
22
- isNullable: true
23
- - name: comparison_enabled
24
- type: boolean
25
- default: true
26
- - name: status
27
- type: enum
28
- values: [active, inactive]
29
- default: active
30
- - name: sort_order
31
- type: int
32
- default: 0
33
- - type: created_at
34
- - type: updated_at
35
- indices:
36
- - columns: [slug]
37
- isUnique: true
38
- - columns: [parent_category_id, sort_order]
39
- - columns: [status]
40
- - columns: [comparison_enabled]
1
+ columns:
2
+ - type: pk
3
+ - name: parent_category_id
4
+ type: fk
5
+ isNullable: true
6
+ references:
7
+ table: catalog_category
8
+ column: id
9
+ onDelete: SET NULL
10
+ - name: slug
11
+ type: varchar
12
+ length: 255
13
+ - name: name
14
+ type: varchar
15
+ length: 255
16
+ - name: normalized_name
17
+ type: varchar
18
+ length: 255
19
+ isNullable: true
20
+ - name: description
21
+ type: text
22
+ isNullable: true
23
+ - name: comparison_enabled
24
+ type: boolean
25
+ default: true
26
+ - name: status
27
+ type: enum
28
+ values: [active, inactive]
29
+ default: active
30
+ - name: sort_order
31
+ type: int
32
+ default: 0
33
+ - type: created_at
34
+ - type: updated_at
35
+ indices:
36
+ - columns: [slug]
37
+ isUnique: true
38
+ - columns: [parent_category_id, sort_order]
39
+ - columns: [status]
40
+ - columns: [comparison_enabled]
@@ -1,42 +1,42 @@
1
- columns:
2
- - type: pk
3
- - name: catalog_category_id
4
- type: fk
5
- references:
6
- table: catalog_category
7
- column: id
8
- onDelete: CASCADE
9
- - name: attribute_id
1
+ columns:
2
+ - type: pk
3
+ - name: catalog_category_id
4
+ type: fk
5
+ references:
6
+ table: catalog_category
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: attribute_id
10
10
  type: fk
11
11
  references:
12
12
  table: catalog_attribute
13
13
  column: id
14
14
  onDelete: CASCADE
15
- - name: is_required
16
- type: boolean
17
- default: false
18
- - name: is_highlight
19
- type: boolean
20
- default: false
21
- - name: is_filter_visible
22
- type: boolean
23
- default: true
24
- - name: is_comparison_visible
25
- type: boolean
26
- default: true
27
- - name: sort_order
28
- type: int
29
- default: 0
30
- - name: weight
31
- type: int
32
- default: 1
33
- - name: facet_mode
34
- type: enum
35
- values: [default, range, select, hidden]
36
- default: default
37
- - type: created_at
38
- - type: updated_at
39
- indices:
40
- - columns: [catalog_category_id, attribute_id]
41
- isUnique: true
42
- - columns: [catalog_category_id, sort_order]
15
+ - name: is_required
16
+ type: boolean
17
+ default: false
18
+ - name: is_highlight
19
+ type: boolean
20
+ default: false
21
+ - name: is_filter_visible
22
+ type: boolean
23
+ default: true
24
+ - name: is_comparison_visible
25
+ type: boolean
26
+ default: true
27
+ - name: sort_order
28
+ type: int
29
+ default: 0
30
+ - name: weight
31
+ type: int
32
+ default: 1
33
+ - name: facet_mode
34
+ type: enum
35
+ values: [default, range, select, hidden]
36
+ default: default
37
+ - type: created_at
38
+ - type: updated_at
39
+ indices:
40
+ - columns: [catalog_category_id, attribute_id]
41
+ isUnique: true
42
+ - columns: [catalog_category_id, sort_order]
@@ -1,11 +1,11 @@
1
- columns:
2
- - type: pk
3
- - name: catalog_category_id
4
- type: fk
5
- references:
6
- table: catalog_category
7
- column: id
8
- onDelete: RESTRICT
1
+ columns:
2
+ - type: pk
3
+ - name: catalog_category_id
4
+ type: fk
5
+ references:
6
+ table: catalog_category
7
+ column: id
8
+ onDelete: RESTRICT
9
9
  - name: site_id
10
10
  type: fk
11
11
  references:
@@ -43,20 +43,20 @@ columns:
43
43
  - name: intro
44
44
  type: text
45
45
  isNullable: true
46
- - name: verdict
47
- type: text
48
- isNullable: true
49
- - name: eligibility_hash
50
- type: varchar
51
- length: 255
46
+ - name: verdict
47
+ type: text
48
+ isNullable: true
49
+ - name: eligibility_hash
50
+ type: varchar
51
+ length: 255
52
52
  isNullable: true
53
53
  - name: published_at
54
54
  type: datetime
55
55
  isNullable: true
56
56
  - type: created_at
57
57
  - type: updated_at
58
- indices:
59
- - columns: [site_id, slug]
60
- isUnique: true
61
- - columns: [catalog_category_id, status]
62
- - columns: [generation_mode, status]
58
+ indices:
59
+ - columns: [site_id, slug]
60
+ isUnique: true
61
+ - columns: [catalog_category_id, status]
62
+ - columns: [generation_mode, status]
@@ -1,18 +1,18 @@
1
- columns:
2
- - type: pk
3
- - name: brand_id
1
+ columns:
2
+ - type: pk
3
+ - name: brand_id
4
4
  type: fk
5
5
  isNullable: true
6
6
  references:
7
7
  table: catalog_brand
8
8
  column: id
9
9
  onDelete: SET NULL
10
- - name: catalog_category_id
11
- type: fk
12
- references:
13
- table: catalog_category
14
- column: id
15
- onDelete: RESTRICT
10
+ - name: catalog_category_id
11
+ type: fk
12
+ references:
13
+ table: catalog_category
14
+ column: id
15
+ onDelete: RESTRICT
16
16
  - name: primary_content_id
17
17
  type: fk
18
18
  isNullable: true
@@ -53,26 +53,26 @@ columns:
53
53
  type: enum
54
54
  values: [draft, ready, disabled]
55
55
  default: draft
56
- - name: release_date
57
- type: datetime
58
- isNullable: true
59
- # Secondary cache/snapshot used for denormalized reads and legacy payload compatibility.
60
- - name: spec_snapshot_json
61
- type: json
62
- isNullable: true
63
- # Secondary cache/snapshot used for denormalized comparison payloads.
64
- - name: comparison_snapshot_json
65
- type: json
66
- isNullable: true
67
- - name: is_active
68
- type: boolean
69
- default: true
56
+ - name: release_date
57
+ type: datetime
58
+ isNullable: true
59
+ # Secondary cache/snapshot used for denormalized reads and legacy payload compatibility.
60
+ - name: spec_snapshot_json
61
+ type: json
62
+ isNullable: true
63
+ # Secondary cache/snapshot used for denormalized comparison payloads.
64
+ - name: comparison_snapshot_json
65
+ type: json
66
+ isNullable: true
67
+ - name: is_active
68
+ type: boolean
69
+ default: true
70
70
  - type: created_at
71
71
  - type: updated_at
72
- indices:
73
- - columns: [slug]
74
- isUnique: true
75
- - columns: [catalog_category_id, status]
76
- - columns: [brand_id, status]
77
- - columns: [primary_content_id]
78
- - columns: [is_active]
72
+ indices:
73
+ - columns: [slug]
74
+ isUnique: true
75
+ - columns: [catalog_category_id, status]
76
+ - columns: [brand_id, status]
77
+ - columns: [primary_content_id]
78
+ - columns: [is_active]
@@ -1,50 +1,50 @@
1
- columns:
2
- - type: pk
3
- - name: product_id
1
+ columns:
2
+ - type: pk
3
+ - name: product_id
4
4
  type: fk
5
5
  references:
6
6
  table: catalog_product
7
7
  column: id
8
8
  onDelete: CASCADE
9
- - name: attribute_id
10
- type: fk
11
- references:
12
- table: catalog_attribute
13
- column: id
14
- onDelete: CASCADE
15
- - name: attribute_option_id
16
- type: fk
17
- isNullable: true
18
- references:
19
- table: catalog_attribute_option
20
- column: id
21
- onDelete: SET NULL
22
- - name: value_text
23
- type: text
24
- isNullable: true
9
+ - name: attribute_id
10
+ type: fk
11
+ references:
12
+ table: catalog_attribute
13
+ column: id
14
+ onDelete: CASCADE
15
+ - name: attribute_option_id
16
+ type: fk
17
+ isNullable: true
18
+ references:
19
+ table: catalog_attribute_option
20
+ column: id
21
+ onDelete: SET NULL
22
+ - name: value_text
23
+ type: text
24
+ isNullable: true
25
25
  - name: value_number
26
26
  type: decimal
27
27
  precision: 14
28
28
  scale: 4
29
29
  isNullable: true
30
- - name: value_boolean
31
- type: boolean
32
- isNullable: true
33
- - name: raw_value
34
- type: text
35
- isNullable: true
36
- - name: value_unit
37
- type: varchar
38
- length: 63
39
- isNullable: true
40
- - name: normalized_value
41
- type: varchar
42
- length: 255
43
- isNullable: true
44
- - name: normalized_text
45
- type: varchar
46
- length: 255
47
- isNullable: true
30
+ - name: value_boolean
31
+ type: boolean
32
+ isNullable: true
33
+ - name: raw_value
34
+ type: text
35
+ isNullable: true
36
+ - name: value_unit
37
+ type: varchar
38
+ length: 63
39
+ isNullable: true
40
+ - name: normalized_value
41
+ type: varchar
42
+ length: 255
43
+ isNullable: true
44
+ - name: normalized_text
45
+ type: varchar
46
+ length: 255
47
+ isNullable: true
48
48
  - name: normalized_number
49
49
  type: decimal
50
50
  precision: 14
@@ -64,10 +64,10 @@ columns:
64
64
  default: false
65
65
  - type: created_at
66
66
  - type: updated_at
67
- indices:
68
- - columns: [product_id, attribute_id]
69
- isUnique: true
70
- - columns: [attribute_id, attribute_option_id]
71
- - columns: [attribute_id, normalized_value]
72
- - columns: [attribute_id, normalized_number]
73
- - columns: [attribute_id, normalized_text]
67
+ indices:
68
+ - columns: [product_id, attribute_id]
69
+ isUnique: true
70
+ - columns: [attribute_id, attribute_option_id]
71
+ - columns: [attribute_id, normalized_value]
72
+ - columns: [attribute_id, normalized_number]
73
+ - columns: [attribute_id, normalized_text]
@@ -1,17 +1,17 @@
1
- columns:
2
- - type: pk
3
- - name: product_id
1
+ columns:
2
+ - type: pk
3
+ - name: product_id
4
4
  type: fk
5
5
  references:
6
6
  table: catalog_product
7
7
  column: id
8
8
  onDelete: CASCADE
9
- - name: catalog_category_id
10
- type: fk
11
- references:
12
- table: catalog_category
13
- column: id
14
- onDelete: CASCADE
9
+ - name: catalog_category_id
10
+ type: fk
11
+ references:
12
+ table: catalog_category
13
+ column: id
14
+ onDelete: CASCADE
15
15
  - name: is_primary
16
16
  type: boolean
17
17
  default: false
@@ -20,7 +20,7 @@ columns:
20
20
  default: 0
21
21
  - type: created_at
22
22
  - type: updated_at
23
- indices:
24
- - columns: [product_id, catalog_category_id]
25
- isUnique: true
26
- - columns: [product_id, is_primary]
23
+ indices:
24
+ - columns: [product_id, catalog_category_id]
25
+ isUnique: true
26
+ - columns: [product_id, is_primary]
@@ -1,54 +1,54 @@
1
- columns:
2
- - type: pk
3
- - name: catalog_category_id
4
- type: fk
5
- references:
6
- table: catalog_category
7
- column: id
8
- onDelete: CASCADE
9
- - name: attribute_id
10
- type: fk
11
- isNullable: true
12
- references:
13
- table: catalog_attribute
14
- column: id
15
- onDelete: SET NULL
16
- - name: target_option_id
17
- type: fk
18
- isNullable: true
19
- references:
20
- table: catalog_attribute_option
21
- column: id
22
- onDelete: SET NULL
23
- - name: slug
24
- type: varchar
25
- length: 255
1
+ columns:
2
+ - type: pk
3
+ - name: catalog_category_id
4
+ type: fk
5
+ references:
6
+ table: catalog_category
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: attribute_id
10
+ type: fk
11
+ isNullable: true
12
+ references:
13
+ table: catalog_attribute
14
+ column: id
15
+ onDelete: SET NULL
16
+ - name: target_option_id
17
+ type: fk
18
+ isNullable: true
19
+ references:
20
+ table: catalog_attribute_option
21
+ column: id
22
+ onDelete: SET NULL
23
+ - name: slug
24
+ type: varchar
25
+ length: 255
26
26
  - name: name
27
27
  type: varchar
28
28
  length: 255
29
29
  - name: weight
30
30
  type: int
31
31
  default: 1
32
- - name: score_type
33
- type: enum
34
- values: [manual, attribute_value, option_match]
35
- default: manual
36
- - name: max_score
37
- type: decimal
38
- precision: 5
39
- scale: 2
40
- default: 10
41
- - name: display_order
42
- type: int
43
- default: 0
32
+ - name: score_type
33
+ type: enum
34
+ values: [manual, attribute_value, option_match]
35
+ default: manual
36
+ - name: max_score
37
+ type: decimal
38
+ precision: 5
39
+ scale: 2
40
+ default: 10
41
+ - name: display_order
42
+ type: int
43
+ default: 0
44
44
  - name: status
45
45
  type: enum
46
46
  values: [active, inactive]
47
47
  default: active
48
48
  - type: created_at
49
49
  - type: updated_at
50
- indices:
51
- - columns: [catalog_category_id, slug]
52
- isUnique: true
53
- - columns: [catalog_category_id, status]
54
- - columns: [attribute_id, status]
50
+ indices:
51
+ - columns: [catalog_category_id, slug]
52
+ isUnique: true
53
+ - columns: [catalog_category_id, status]
54
+ - columns: [attribute_id, status]
@@ -1,18 +1,18 @@
1
- columns:
2
- - type: pk
3
- - name: site_id
1
+ columns:
2
+ - type: pk
3
+ - name: site_id
4
4
  type: fk
5
5
  references:
6
6
  table: catalog_site
7
7
  column: id
8
8
  onDelete: CASCADE
9
- - name: catalog_category_id
10
- type: fk
11
- isNullable: true
12
- references:
13
- table: catalog_category
14
- column: id
15
- onDelete: SET NULL
9
+ - name: catalog_category_id
10
+ type: fk
11
+ isNullable: true
12
+ references:
13
+ table: catalog_category
14
+ column: id
15
+ onDelete: SET NULL
16
16
  - name: page_type
17
17
  type: enum
18
18
  values: [comparison, best_of, cost_benefit, attribute, price_range, brand, use_case]