Relation Table

From truxwiki.com
Revision as of 08:53, 8 December 2020 by Sam (talk | contribs)
Jump to navigation Jump to search

This table stores the relationships between things in Truxton. This is how the graph of Truxton objects is stored.

CREATE TABLE "Relation"
(
  "A_ID" uuid NOT NULL,
  "B_ID" uuid NOT NULL,
  "A_ObjectTypeID" smallint NOT NULL,
  "B_ObjectTypeID" smallint NOT NULL,
  "RelationTypeID" integer NOT NULL,
  "SourceID" uuid NOT NULL,
  "SourceObjectTypeID" smallint NOT NULL
);