Spalte | default | Typ | Null | Beschreibung |
---|---|---|---|---|
products_id | int(11) | Nein | Produkt ID: siehe: "_products"."products_id" | |
categories_id | int(11) | Nein | Produkt ID: siehe: "_categories"."categories_id" | |
master_link | Null | tinyint(1) | Ja | 1 od. 0: 1: Hauptkategorie ( darf jeder Kategorie nur ein mal zugewiesen werden ) 2: "Weitere Kategorien / verlinkung" ( kann beliebig oft zugewiesen werden ) |
Beispiel:
Kategorie 5 wird dem Produkt 11 als Hauptkategorie zugewiesen und in Kategorie 2 und 5 verlinkt
Code Block | ||
---|---|---|
| ||
INSERT INTO `xt_products_to_categories` (
`products_id`,
`categories_id`,
`master_link`
) VALUES
(
11,
5,
1
),(
11,
2,
0
),(
11,
5,
0
); |