DROP TABLE IF EXISTS taxonomy_item__field_value;

-- DROP SEQUENCE IF EXISTS taxonomy_item__field_value_field_value_id_seq;
-- CREATE SEQUENCE taxonomy_item__field_value_field_value_id_seq;


CREATE TABLE taxonomy_item__field_value (
  "taxonomy_item__id" int PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, -- SERIAL PRIMARY KEY,
  "field_id" int NOT NULL,
  "sort_order" int NOT NULL DEFAULT 0
  -- PRIMARY KEY("field_value_id")
);

-- SELECT setval('taxonomy_item__field_value_field_value_id_seq', 0, true); -- last inserted id by sample data
