# Type alias Collections

Collections: {
bytecodes: {
idFields: ["bytes", "linkReferences"];
input: BytecodeInput;
names: {
Resource: "Bytecode";
Resources: "Bytecodes";
ResourcesMutate: "BytecodesAdd";
resource: "bytecode";
resources: "bytecodes";
resourcesMutate: "bytecodesAdd";
};
resource: Bytecode;
};
compilations: {
idFields: ["compiler", "sources"];
input: CompilationInput;
names: {
Resource: "Compilation";
Resources: "Compilations";
ResourcesMutate: "CompilationsAdd";
resource: "compilation";
resources: "compilations";
resourcesMutate: "compilationsAdd";
};
resource: DataModel.Compilation;
};
contractInstances: {
idFields: ["contract", "address", "creation"];
input: ContractInstanceInput;
names: {
Resource: "ContractInstance";
Resources: "ContractInstances";
ResourcesMutate: "ContractInstancesAdd";
resource: "contractInstance";
resources: "contractInstances";
resourcesMutate: "contractInstancesAdd";
};
resource: ContractInstance;
};
contracts: {
idFields: ["name", "abi", "processedSource", "compilation"];
input: ContractInput;
named: true;
names: {
Resource: "Contract";
Resources: "Contracts";
ResourcesMutate: "ContractsAdd";
resource: "contract";
resources: "contracts";
resourcesMutate: "contractsAdd";
};
resource: DataModel.Contract;
};
nameRecords: {
idFields: ["resource", "previous"];
input: NameRecordInput;
names: {
Resource: "NameRecord";
Resources: "NameRecords";
ResourcesMutate: "NameRecordsAdd";
resource: "nameRecord";
resources: "nameRecords";
resourcesMutate: "nameRecordsAdd";
};
resource: NameRecord;
};
networkGenealogies: {
idFields: ["ancestor", "descendant"];
input: NetworkGenealogyInput;
names: {
Resource: "NetworkGenealogy";
Resources: "NetworkGenealogies";
ResourcesMutate: "NetworkGenealogiesAdd";
resource: "networkGenealogy";
resources: "networkGenealogies";
resourcesMutate: "networkGenealogiesAdd";
};
resource: NetworkGenealogy;
};
networks: {
idFields: ["networkId", "historicBlock"];
input: NetworkInput;
named: true;
names: {
Resource: "Network";
Resources: "Networks";
ResourcesMutate: "NetworksAdd";
resource: "network";
resources: "networks";
resourcesMutate: "networksAdd";
};
resource: DataModel.Network;
};
projectNames: {
idFields: ["project", "key"];
input: ProjectNameInput;
mutable: true;
names: {
Resource: "ProjectName";
Resources: "ProjectNames";
ResourcesMutate: "ProjectNamesAssign";
resource: "projectName";
resources: "projectNames";
resourcesMutate: "projectNamesAssign";
};
resource: ProjectName;
};
projects: {
idFields: ["directory"];
input: ProjectInput;
names: {
Resource: "Project";
Resources: "Projects";
ResourcesMutate: "ProjectsAdd";
resource: "project";
resources: "projects";
resourcesMutate: "projectsAdd";
};
resource: DataModel.Project;
};
sources: {
idFields: ["contents", "sourcePath"];
input: SourceInput;
names: {
Resource: "Source";
Resources: "Sources";
ResourcesMutate: "SourcesAdd";
resource: "source";
resources: "sources";
resourcesMutate: "sourcesAdd";
};
resource: DataModel.Source;
};
}

#### Type declaration

- ##### bytecodes: {
  idFields: ["bytes", "linkReferences"];
  input: BytecodeInput;
  names: {
  Resource: "Bytecode";
  Resources: "Bytecodes";
  ResourcesMutate: "BytecodesAdd";
  resource: "bytecode";
  resources: "bytecodes";
  resourcesMutate: "bytecodesAdd";
  };
  resource: Bytecode;
  }

  - ##### idFields: ["bytes", "linkReferences"]

  - ##### input: BytecodeInput

  - ##### names: {
    Resource: "Bytecode";
    Resources: "Bytecodes";
    ResourcesMutate: "BytecodesAdd";
    resource: "bytecode";
    resources: "bytecodes";
    resourcesMutate: "bytecodesAdd";
    }

    - ##### Resource: "Bytecode"

    - ##### Resources: "Bytecodes"

    - ##### ResourcesMutate: "BytecodesAdd"

    - ##### resource: "bytecode"

    - ##### resources: "bytecodes"

    - ##### resourcesMutate: "bytecodesAdd"

  - ##### resource: Bytecode

- ##### compilations: {
  idFields: ["compiler", "sources"];
  input: CompilationInput;
  names: {
  Resource: "Compilation";
  Resources: "Compilations";
  ResourcesMutate: "CompilationsAdd";
  resource: "compilation";
  resources: "compilations";
  resourcesMutate: "compilationsAdd";
  };
  resource: DataModel.Compilation;
  }

  - ##### idFields: ["compiler", "sources"]

  - ##### input: CompilationInput

  - ##### names: {
    Resource: "Compilation";
    Resources: "Compilations";
    ResourcesMutate: "CompilationsAdd";
    resource: "compilation";
    resources: "compilations";
    resourcesMutate: "compilationsAdd";
    }

    - ##### Resource: "Compilation"

    - ##### Resources: "Compilations"

    - ##### ResourcesMutate: "CompilationsAdd"

    - ##### resource: "compilation"

    - ##### resources: "compilations"

    - ##### resourcesMutate: "compilationsAdd"

  - ##### resource: DataModel.Compilation

- ##### contractInstances: {
  idFields: ["contract", "address", "creation"];
  input: ContractInstanceInput;
  names: {
  Resource: "ContractInstance";
  Resources: "ContractInstances";
  ResourcesMutate: "ContractInstancesAdd";
  resource: "contractInstance";
  resources: "contractInstances";
  resourcesMutate: "contractInstancesAdd";
  };
  resource: ContractInstance;
  }

  - ##### idFields: ["contract", "address", "creation"]

  - ##### input: ContractInstanceInput

  - ##### names: {
    Resource: "ContractInstance";
    Resources: "ContractInstances";
    ResourcesMutate: "ContractInstancesAdd";
    resource: "contractInstance";
    resources: "contractInstances";
    resourcesMutate: "contractInstancesAdd";
    }

    - ##### Resource: "ContractInstance"

    - ##### Resources: "ContractInstances"

    - ##### ResourcesMutate: "ContractInstancesAdd"

    - ##### resource: "contractInstance"

    - ##### resources: "contractInstances"

    - ##### resourcesMutate: "contractInstancesAdd"

  - ##### resource: ContractInstance

- ##### contracts: {
  idFields: ["name", "abi", "processedSource", "compilation"];
  input: ContractInput;
  named: true;
  names: {
  Resource: "Contract";
  Resources: "Contracts";
  ResourcesMutate: "ContractsAdd";
  resource: "contract";
  resources: "contracts";
  resourcesMutate: "contractsAdd";
  };
  resource: DataModel.Contract;
  }

  - ##### idFields: ["name", "abi", "processedSource", "compilation"]

  - ##### input: ContractInput

  - ##### named: true

  - ##### names: {
    Resource: "Contract";
    Resources: "Contracts";
    ResourcesMutate: "ContractsAdd";
    resource: "contract";
    resources: "contracts";
    resourcesMutate: "contractsAdd";
    }

    - ##### Resource: "Contract"

    - ##### Resources: "Contracts"

    - ##### ResourcesMutate: "ContractsAdd"

    - ##### resource: "contract"

    - ##### resources: "contracts"

    - ##### resourcesMutate: "contractsAdd"

  - ##### resource: DataModel.Contract

- ##### nameRecords: {
  idFields: ["resource", "previous"];
  input: NameRecordInput;
  names: {
  Resource: "NameRecord";
  Resources: "NameRecords";
  ResourcesMutate: "NameRecordsAdd";
  resource: "nameRecord";
  resources: "nameRecords";
  resourcesMutate: "nameRecordsAdd";
  };
  resource: NameRecord;
  }

  - ##### idFields: ["resource", "previous"]

  - ##### input: NameRecordInput

  - ##### names: {
    Resource: "NameRecord";
    Resources: "NameRecords";
    ResourcesMutate: "NameRecordsAdd";
    resource: "nameRecord";
    resources: "nameRecords";
    resourcesMutate: "nameRecordsAdd";
    }

    - ##### Resource: "NameRecord"

    - ##### Resources: "NameRecords"

    - ##### ResourcesMutate: "NameRecordsAdd"

    - ##### resource: "nameRecord"

    - ##### resources: "nameRecords"

    - ##### resourcesMutate: "nameRecordsAdd"

  - ##### resource: NameRecord

- ##### networkGenealogies: {
  idFields: ["ancestor", "descendant"];
  input: NetworkGenealogyInput;
  names: {
  Resource: "NetworkGenealogy";
  Resources: "NetworkGenealogies";
  ResourcesMutate: "NetworkGenealogiesAdd";
  resource: "networkGenealogy";
  resources: "networkGenealogies";
  resourcesMutate: "networkGenealogiesAdd";
  };
  resource: NetworkGenealogy;
  }

  - ##### idFields: ["ancestor", "descendant"]

  - ##### input: NetworkGenealogyInput

  - ##### names: {
    Resource: "NetworkGenealogy";
    Resources: "NetworkGenealogies";
    ResourcesMutate: "NetworkGenealogiesAdd";
    resource: "networkGenealogy";
    resources: "networkGenealogies";
    resourcesMutate: "networkGenealogiesAdd";
    }

    - ##### Resource: "NetworkGenealogy"

    - ##### Resources: "NetworkGenealogies"

    - ##### ResourcesMutate: "NetworkGenealogiesAdd"

    - ##### resource: "networkGenealogy"

    - ##### resources: "networkGenealogies"

    - ##### resourcesMutate: "networkGenealogiesAdd"

  - ##### resource: NetworkGenealogy

- ##### networks: {
  idFields: ["networkId", "historicBlock"];
  input: NetworkInput;
  named: true;
  names: {
  Resource: "Network";
  Resources: "Networks";
  ResourcesMutate: "NetworksAdd";
  resource: "network";
  resources: "networks";
  resourcesMutate: "networksAdd";
  };
  resource: DataModel.Network;
  }

  - ##### idFields: ["networkId", "historicBlock"]

  - ##### input: NetworkInput

  - ##### named: true

  - ##### names: {
    Resource: "Network";
    Resources: "Networks";
    ResourcesMutate: "NetworksAdd";
    resource: "network";
    resources: "networks";
    resourcesMutate: "networksAdd";
    }

    - ##### Resource: "Network"

    - ##### Resources: "Networks"

    - ##### ResourcesMutate: "NetworksAdd"

    - ##### resource: "network"

    - ##### resources: "networks"

    - ##### resourcesMutate: "networksAdd"

  - ##### resource: DataModel.Network

- ##### projectNames: {
  idFields: ["project", "key"];
  input: ProjectNameInput;
  mutable: true;
  names: {
  Resource: "ProjectName";
  Resources: "ProjectNames";
  ResourcesMutate: "ProjectNamesAssign";
  resource: "projectName";
  resources: "projectNames";
  resourcesMutate: "projectNamesAssign";
  };
  resource: ProjectName;
  }

  - ##### idFields: ["project", "key"]

  - ##### input: ProjectNameInput

  - ##### mutable: true

  - ##### names: {
    Resource: "ProjectName";
    Resources: "ProjectNames";
    ResourcesMutate: "ProjectNamesAssign";
    resource: "projectName";
    resources: "projectNames";
    resourcesMutate: "projectNamesAssign";
    }

    - ##### Resource: "ProjectName"

    - ##### Resources: "ProjectNames"

    - ##### ResourcesMutate: "ProjectNamesAssign"

    - ##### resource: "projectName"

    - ##### resources: "projectNames"

    - ##### resourcesMutate: "projectNamesAssign"

  - ##### resource: ProjectName

- ##### projects: {
  idFields: ["directory"];
  input: ProjectInput;
  names: {
  Resource: "Project";
  Resources: "Projects";
  ResourcesMutate: "ProjectsAdd";
  resource: "project";
  resources: "projects";
  resourcesMutate: "projectsAdd";
  };
  resource: DataModel.Project;
  }

  - ##### idFields: ["directory"]

  - ##### input: ProjectInput

  - ##### names: {
    Resource: "Project";
    Resources: "Projects";
    ResourcesMutate: "ProjectsAdd";
    resource: "project";
    resources: "projects";
    resourcesMutate: "projectsAdd";
    }

    - ##### Resource: "Project"

    - ##### Resources: "Projects"

    - ##### ResourcesMutate: "ProjectsAdd"

    - ##### resource: "project"

    - ##### resources: "projects"

    - ##### resourcesMutate: "projectsAdd"

  - ##### resource: DataModel.Project

- ##### sources: {
  idFields: ["contents", "sourcePath"];
  input: SourceInput;
  names: {
  Resource: "Source";
  Resources: "Sources";
  ResourcesMutate: "SourcesAdd";
  resource: "source";
  resources: "sources";
  resourcesMutate: "sourcesAdd";
  };
  resource: DataModel.Source;
  }

  - ##### idFields: ["contents", "sourcePath"]

  - ##### input: SourceInput

  - ##### names: {
    Resource: "Source";
    Resources: "Sources";
    ResourcesMutate: "SourcesAdd";
    resource: "source";
    resources: "sources";
    resourcesMutate: "sourcesAdd";
    }

    - ##### Resource: "Source"

    - ##### Resources: "Sources"

    - ##### ResourcesMutate: "SourcesAdd"

    - ##### resource: "source"

    - ##### resources: "sources"

    - ##### resourcesMutate: "sourcesAdd"

  - ##### resource: DataModel.Source

- Defined in packages/db/src/resources/types.ts:12

Generated using TypeDoc