CREATE TABLE product (id INTEGER, name TEXT);
INSERT INTO product (id, name)
VALUES
(1, 'Beer'),
(2, 'Bread'),
(3, 'Chease'),
(4, 'Water');
CREATE TABLE labels (id INTEGER, name TEXT);
INSERT INTO labels (id, name)
VALUES
(1, 'Nice'),
(2, 'Bad'),
(3, 'Normal'),
(4, 'Lol');
CREATE TABLE labels_products (label_id INTEGER, product_id INTEGER, UNIQUE (label_id, product_id));
INSERT INTO labels_products (label_id, product_id)
VALUES
(1, 1),
(2, 1),
(3, 1),
(4, 1),
(1, 3),
(2, 2),
(3, 3);