{

"6.0.0":
{
    "structure":
    {
        "contact":
        {
            "create":
            {
                "id":          "default",
                "owner_id":    {"type": "int"},
                "project_id":  {"type": "int", "notNull": "true"},
                "name":        {"type": "varchar", "notNull": "true"},
                "email":       {"type": "varchar", "notNull": "true"},
                "company":     {"type": "varchar", "notNull": "true"},
                "firstphone":  {"type": "varchar", "notNull": "true"},
                "secondphone": {"type": "varchar", "notNull": "true"},
                "mobilephone": {"type": "varchar", "notNull": "true"},
                "street":      {"type": "varchar", "notNull": "true"},
                "city":        {"type": "varchar", "notNull": "true"},
                "zipcode":     {"type": "varchar", "length": "50", "notNull": "true"},
                "country":     {"type": "varchar", "notNull": "true"},
                "comment":     {"type": "text", "notNull": "true"},
                "private":     {"type": "int", "length": "1", "default": "0"}
            }
        }
    },

    "initialData":
    {
        "database_manager":
        {
            "insert":
            [
                {
                    "table_name":      "Contact",
                    "table_field":     "name",
                    "form_tab":        "1",
                    "form_label":      "Name",
                    "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":    "0",
                    "status":          "1",
                    "is_integer":      "0",
                    "is_required":     "1",
                    "is_unique":       "0"
                },

                {
                    "table_name":      "Contact",
                    "table_field":     "email",
                    "form_tab":        "1",
                    "form_label":      "E-Mail",
                    "form_type":       "text",
                    "form_position":   "2",
                    "form_columns":    "1",
                    "form_regexp":     "NULL",
                    "form_range":      "NULL",
                    "default_value":   "NULL",
                    "list_position":   "2",
                    "list_align":      "left",
                    "list_use_filter": "1",
                    "alt_position":    "0",
                    "status":          "1",
                    "is_integer":      "0",
                    "is_required":     "0",
                    "is_unique":       "0"
                },

                {
                    "table_name":      "Contact",
                    "table_field":     "company",
                    "form_tab":        "1",
                    "form_label":      "Company",
                    "form_type":       "text",
                    "form_position":   "3",
                    "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"
                },

                {
                    "table_name":      "Contact",
                    "table_field":     "firstphone",
                    "form_tab":        "1",
                    "form_label":      "First phone",
                    "form_type":       "text",
                    "form_position":   "4",
                    "form_columns":    "1",
                    "form_regexp":     "NULL",
                    "form_range":      "NULL",
                    "default_value":   "NULL",
                    "list_position":   "3",
                    "list_align":      "left",
                    "list_use_filter": "1",
                    "alt_position":    "0",
                    "status":          "1",
                    "is_integer":      "0",
                    "is_required":     "0",
                    "is_unique":       "0"
                },

                {
                    "table_name":      "Contact",
                    "table_field":     "secondphone",
                    "form_tab":        "1",
                    "form_label":      "Second phone",
                    "form_type":       "text",
                    "form_position":   "5",
                    "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"
                },

                {
                    "table_name":      "Contact",
                    "table_field":     "mobilephone",
                    "form_tab":        "1",
                    "form_label":      "Mobile phone",
                    "form_type":       "text",
                    "form_position":   "6",
                    "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"
                },

                {
                    "table_name":      "Contact",
                    "table_field":     "street",
                    "form_tab":        "1",
                    "form_label":      "Street",
                    "form_type":       "text",
                    "form_position":   "7",
                    "form_columns":    "1",
                    "form_regexp":     "NULL",
                    "form_range":      "NULL",
                    "default_value":   "NULL",
                    "list_position":   "4",
                    "list_align":      "left",
                    "list_use_filter": "1",
                    "alt_position":    "0",
                    "status":          "1",
                    "is_integer":      "0",
                    "is_required":     "0",
                    "is_unique":       "0"
                },

                {
                    "table_name":      "Contact",
                    "table_field":     "city",
                    "form_tab":        "1",
                    "form_label":      "City",
                    "form_type":       "text",
                    "form_position":   "8",
                    "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"
                },

                {
                    "table_name":      "Contact",
                    "table_field":     "zipcode",
                    "form_tab":        "1",
                    "form_label":      "Zip code",
                    "form_type":       "text",
                    "form_position":   "9",
                    "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"
                },

                {
                    "table_name":      "Contact",
                    "table_field":     "country",
                    "form_tab":        "1",
                    "form_label":      "Country",
                    "form_type":       "text",
                    "form_position":   "10",
                    "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"
                },

                {
                    "table_name":      "Contact",
                    "table_field":     "comment",
                    "form_tab":        "1",
                    "form_label":      "Comment",
                    "form_type":       "textarea",
                    "form_position":   "11",
                    "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"
                },

                {
                    "table_name":      "Contact",
                    "table_field":     "private",
                    "form_tab":        "1",
                    "form_label":      "Private",
                    "form_type":       "selectValues",
                    "form_position":   "12",
                    "form_columns":    "1",
                    "form_regexp":     "NULL",
                    "form_range":      "0#No|1#Yes",
                    "default_value":   "0",
                    "list_position":   "5",
                    "list_align":      "center",
                    "list_use_filter": "1",
                    "alt_position":    "0",
                    "status":          "1",
                    "is_integer":      "1",
                    "is_required":     "0",
                    "is_unique":       "0"
                }
            ]
        },

        "module":
        {
            "insert":
            [
                {
                    "name":      "Contact",
                    "label":     "Contact",
                    "save_type": "1",
                    "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"
                                }
                            ]
                        }
                    }
                }
            ]
        }
    }
}

}
