import time


def initial_metadata(node_type, name, parent):
    """The .metadata for a newly-created node.

    node_type - value of 'type' field of .metadata file
    name - node name
    parent - parent id (not node object)"""

    return {
        "deleted": False,
        "lastModified": str(int(time.time()*1000)),
        "metadatamodified": True,
        "modified": True,
        "parent": parent,
        "pinned": False,
        "synced": False,
        "type": node_type,
        "version": 1,
        "visibleName": name
    }