DROP TABLE IF EXISTS product_related;
CREATE TABLE product_related (
  "product_id" int check ("product_id" > 0) NOT NULL,
  "product_related_id" int check ("product_related_id" > 0) NOT NULL,
  PRIMARY KEY("product_id","product_related_id")
);

CREATE INDEX IF NOT EXISTS "product_related_related" ON product_related ("product_related_id");
