Temel düzeyde tablo yapısını iletiyorum buna ekleme yaparak meta açıklama vs. gibi bilgileri ekleyebilirsiniz.


JOIN kullanımı için örnek tablolar;
Products;
- id(int)
- code(varchar)
- price(decimal)

ProductLocalizations;
- id
- product_id
- language_id
- slug
- name
- description
JOIN kullanmadan json sorguları ile kullanılabilecek örnek tablolar;
Products;
- id(int)
- code(varchar)
- price(decimal)
- slug(json) => {"en": "test-product", "tr": "test-urunu"}
- name(json) => {"en": "Test Product", "tr": "test-product"}
- description(json) => {"en": "Test product description", "tr": "Test ürün açıklaması"}
JOIN kullanmadan json sorguları ile kullanılabilecek örnek tablolar v2 (burda tüm sorgular Products.localizations kolonu üzerinden yapılır, ProductLocalizations tablosu sadece adminde ki yönetimi kolaylaştırmak için. Ürün kaydedilince burda ki veriler toplanıp Products.localizations kolonuna json formatında basılır);
Products;
- id(int)
- code(varchar)
- price(decimal)
- localizations(json) => {"en": {"slug": "test-product", "title": "Test Product", "description": "Test product description"}, "tr": {"slug": "test-urunu", "title": "Test Ürün", "description": "Test ürün açıklaması"}}

ProductLocalizations;
- id
- product_id
- language_id
- slug
- name
- description