adding schema required by tagging feature
* add tag schema
* add tagging endpoint
* Revert "add tagging endpoint"
This reverts commit
* fix schema comments
* fix formating issue
add tagging endpoint
Revert "add tagging endpoint"
This reverts commit
fix schema comments
fix formating issue
fix formatting and importing
@@ -5,12 +5,14 @@ CREATE TABLE tags (
name VARCHAR(255) NOT NULL UNIQUE,
description TEXT
);
+
CREATE TABLE dataset_tag_mapping (
dataset_uuid UUID REFERENCES datasets(uuid),
tag_uuid UUID REFERENCES tags(uuid),
tagged_at TIMESTAMP NOT NULL,
PRIMARY KEY (tag_uuid, dataset_uuid)
);
+
CREATE TABLE dataset_fields_tag_mapping (
dataset_field_uuid UUID REFERENCES dataset_fields(uuid),
tag_uuid UUID REFERENCES tags(uuid),
