{

"6.0.0":
{
    "structure":
    {
        "note":
        {
            "create":
            {
                "id":         "default",
                "project_id": {"type": "int", "notNull": "true"},
                "title":      {"type": "varchar", "notNull": "true"},
                "comments":   {"type": "text"},
                "owner_id":   {"type": "int"}
            }
        }
    },

    "initialData":
    {
        "database_manager":
        {
            "insert":
            [
                {
                    "table_name":      "Note",
                    "table_field":     "project_id",
                    "form_tab":        "1",
                    "form_label":      "Project",
                    "form_type":       "selectValues",
                    "form_position":   "3",
                    "form_columns":    "1",
                    "form_regexp":     "NULL",
                    "form_range":      "Project#id#title",
                    "default_value":   "NULL",
                    "list_position":   "0",
                    "list_align":      "NULL",
                    "list_use_filter": "1",
                    "alt_position":    "0",
                    "status":          "1",
                    "is_integer":      "1",
                    "is_required":     "1",
                    "is_unique":       "0"
                },

                {
                    "table_name":      "Note",
                    "table_field":     "title",
                    "form_tab":        "1",
                    "form_label":      "Title",
                    "form_type":       "text",
                    "form_position":   "1",
                    "form_columns":    "1",
                    "form_regexp":     "NULL",
                    "form_range":      "NULL",
                    "default_value":   "NULL",
                    "list_position":   "1",
                    "list_align":      "left",
                    "list_use_filter": "1",
                    "alt_position":    "2",
                    "status":          "1",
                    "is_integer":      "0",
                    "is_required":     "1",
                    "is_unique":       "0"
                },

                {
                    "table_name":      "Note",
                    "table_field":     "comments",
                    "form_tab":        "1",
                    "form_label":      "Comments",
                    "form_type":       "textarea",
                    "form_position":   "2",
                    "form_columns":    "1",
                    "form_regexp":     "NULL",
                    "form_range":      "NULL",
                    "default_value":   "NULL",
                    "list_position":   "0",
                    "list_align":      "NULL",
                    "list_use_filter": "1",
                    "alt_position":    "0",
                    "status":          "1",
                    "is_integer":      "0",
                    "is_required":     "0",
                    "is_unique":       "0"
                }
            ]
        },

        "module":
        {
            "insert":
            [
                {
                    "name":      "Note",
                    "label":     "Note",
                    "save_type": "0",
                    "active":    "1",
                    "_relations":
                    {
                        "project_module_permissions":
                        {
                            "insert":
                            [
                                {
                                    "module_id":  "##id##",
                                    "project_id": "1"
                                }
                            ]
                        },

                        "role_module_permissions":
                        {
                            "insert":
                            [
                                {
                                    "module_id": "##id##",
                                    "role_id":   "1",
                                    "access":    "139"
                                }
                            ]
                        }
                    }
                }
            ]
        }
    },

    "extraData":
    {
        "role_module_permissions":
        {
            "insert":
            [
                {
                    "module_id": "##Note_moduleId##",
                    "role_id":   "2,3",
                    "access":    "0"
                },

                {
                    "module_id": "##Note_moduleId##",
                    "role_id":   "4",
                    "access":    "1"
                }
            ]
        },

        "project_module_permissions":
        {
            "insert":
            [
                {
                    "module_id":  "##Note_moduleId##",
                    "project_id": "2"
                }
            ]
        }
    }
}

}
