belongsTo(User::class, 'created_by'); } /** * Get the nodes for the vault. */ public function nodes(): HasMany { return $this->hasMany(VaultNode::class); } /** * Get the associated templates node. */ public function templatesNode(): HasOne { return $this->hasOne(VaultNode::class, 'id', 'templates_node_id'); } }