I have to store the file hash of all the files stored on our server. Can I use single contract with fields like:
contract FileDetail {
string fileName;
string fileHash;
.................
}
Whenever I will call set method will it overwrite the field values of fileName and fileHash or it will create new values/copies of fileName or fileHash ? Or do I need to use a list/map if I use single contract approach.
Is it feasible to create new contract for each file. ? Can creation of a contract get automated ?