'name VARCHAR(20)', 'guarded TINYINT(1) DEFAULT 1', ); MeshTools::CommitNodeType('locations', $attributes); // Treasures $attributes = array( 'name VARCHAR(20)', ); MeshTools::CommitNodeType('treasures', $attributes); // Next, define the link types (ie., how each node types links to any other // node type) // Hobbits can link to Locations MeshTools::CommitLinkType('hobbits', 'locations'); // Hobbits can link to Treasures MeshTools::CommitLinkType('hobbits', 'treasures'); // Hobbits can link to Hobbits (with named relationships) // NOTE: We will be using the built-in 'label' attribute to identify friendship (ie. 'eq:label:friendship') MeshTools::CommitLinkType('hobbits', 'hobbits'); // Locations can link to Locations (with direction) // NOTE: We will be using the built-in 'direction' attribute to identify direction (ie. 'dir:forward') MeshTools::CommitLinkType('locations', 'locations');