Simple script that connected to any Appwrite API SDK through NodeSDK
At the beginning of the file enter the appropriate values into the variables:
ENDPOINT
PROJECT
API_KEY
To copy scheme run the function
copy(ORIGIN_DB_ID, ORIGIN_COLLECTION_ID, DEST_DB_ID, DEST_COLLECTION_ID);