diff --git a/builder.js b/builder.js index aedc077..984d40a 100644 --- a/builder.js +++ b/builder.js @@ -80,13 +80,6 @@ class Collection extends DBType { name: this.description.name + '/value', fields: this.schema.fields.filter(f => !primaryKeySet.has(f.name)).map(f => f.toJSON()) }) - this.builder.schema.register({ - ...this.schema.toJSON(), - flagsPosition: -1, - namespace: this.namespace, - name: this.description.name + '/key', - fields: this.schema.fields.filter(f => primaryKeySet.has(f.name)).map(f => f.toJSON()) - }) } toJSON () {