Difference between revisions of "Tag Table"

From truxwiki.com
Jump to navigation Jump to search
Line 16: Line 16:
 
The globally unique identifier of the tag.
 
The globally unique identifier of the tag.
  
==<code></code>==
+
==<code>Name</code>==
COMMENT ON COLUMN "Tag"."Name" IS 'The human-friendly name of this tag.
+
The human-friendly name of this tag.
  
 
==<code>Description</code>==
 
==<code>Description</code>==

Revision as of 06:01, 27 January 2024

These are the tags that can be used in Truxton. This reference table maps tag globally unique identifiers to human-friendly text.

SQL

CREATE TABLE "Tag" (
    "ID" uuid NOT NULL,
    "Name" text DEFAULT ''::text NOT NULL,
    "Description" text DEFAULT ''::text NOT NULL,
    "CategoryID" uuid NOT NULL
);

Columns

ID

The globally unique identifier of the tag.

Name

The human-friendly name of this tag.

Description

An explanation of this tag.

CategoryID

The identifier of the category this tag belongs to. It corresponds to the ID column of the [TagCategory] table. Useful when tagging is being restricted to a controlled taxonomy.