[
  {
    "name": "Just a Sample Form Group",
    "entity_name": "sample_form_group",
    "entity_type": "form_builder_module",
    "primary_table": "users",
    "form_information": {
      "model": {
        "users": {
          "role": "admin",
          "email": null,
          "user_id": null,
          "username": null,
          "status_id": 1
        },
        "user_details": null
      },
      "fields": [
        {
          "key": "users",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "username",
              "type": "input",
              "props": {
                "label": "form_label_username",
                "required": true,
                "placeholder": "form_label_username_placeholder"
              }
            },
            {
              "key": "email",
              "type": "input",
              "props": {
                "type": "email",
                "label": "form_label_email",
                "required": true,
                "placeholder": "email_placeholder"
              }
            },
            {
              "key": "user_id",
              "type": "repeat",
              "props": {
                "label": "TODO LIST"
              },
              "fieldArray": {
                "type": "select",
                "hooks": {
                  "onInit": true
                },
                "props": {
                  "label": "user",
                  "required": true,
                  "placeholder": "please_select"
                }
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-2 gap-4 md:grid-cols-2"
        },
        {
          "key": "user_details",
          "type": "repeat",
          "props": {
            "label": "user_detail",
            "limit": 5,
            "addText": "Add",
            "removeText": "Remove"
          },
          "wrappers": ["form-field"],
          "fieldArray": {
            "fieldGroup": [
              {
                "key": "user_id",
                "type": "select",
                "hooks": {
                  "onInit": true
                },
                "props": {
                  "label": "user",
                  "required": true,
                  "placeholder": "please_select"
                }
              },
              {
                "key": "name",
                "type": "input",
                "props": {
                  "label": "name",
                  "required": true,
                  "placeholder": "name"
                }
              },
              {
                "key": "code",
                "type": "input",
                "props": {
                  "label": "code",
                  "required": true,
                  "placeholder": "enter_code_placeholder"
                }
              },
              {
                "key": "profile_pic",
                "type": "input",
                "props": {
                  "type": "hidden"
                },
                "className": "hidden"
              },
              {
                "key": "profile_pic_file",
                "type": "image",
                "props": {
                  "label": "profile_picture"
                }
              }
            ]
          },
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ],
      "options": {}
    },
    "query_information": {
      "user_id": {
        "company_id": 1,
        "print_query": false,
        "primary_table": "users",
        "start_index": 0,
        "limit_range": 1000,
        "sort_columns": [["users.id", "asc"]],
        "select_columns": [
          ["id", "value"],
          ["email", "label"]
        ],
        "search_all": [
          {
            "column_name": "users.status_id",
            "operator": "!=",
            "value": "3"
          }
        ]
      }
    },
    "add_query_information": {
      "table": ["users", "user_details"],
      "action": ["insert", "insert"],
      "table_mapping": ["table1", "table2"],
      "data": {
        "table1": [
          {
            "email": "$users.email",
            "username": "$users.username",
            "role": "$users.role",
            "created_at": true,
            "created_by": true,
            "updated_at": true,
            "updated_by": true,
            "status_id": "$users.status_id"
          }
        ],
        "table2": [
          {
            "code": "$user_details.code",
            "first_name": "$user_details.name",
            "profile_pic": "$user_details.profile_pic",
            "created_at": true,
            "created_by": true,
            "updated_at": true,
            "updated_by": true,
            "user_id": "@table1.id"
          }
        ]
      }
    },
    "edit_query_information": {
      "table": ["users", "user_details"],
      "action": ["update", "update"],
      "table_mapping": ["table1", "table2"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ],
        "table2": [
          {
            "user_id": "@table1.id"
          }
        ]
      },
      "data": {
        "table1": [
          {
            "email": "$users.email",
            "username": "$users.username",
            "updated_at": true,
            "updated_by": true,
            "status_id": "$users.status_id"
          }
        ],
        "table2": [
          {
            "code": "$user_details.code",
            "first_name": "$user_details.name",
            "profile_pic": "$user_details.profile_pic",
            "updated_at": true,
            "updated_by": true
          }
        ]
      }
    },
    "preset_query_information": {
      "users": {
        "company_id": 1,
        "print_query": false,
        "primary_table": "users",
        "start_index": 0,
        "limit_range": 1,
        "sort_columns": [["users.id", "asc"]],
        "select_columns": [
          ["id", "user_id"],
          ["email"],
          ["username"],
          ["role"],
          ["status_id"]
        ],
        "search_all": [
          {
            "column_name": "users.uuid",
            "operator": "=",
            "value": "$unique_id"
          },
          {
            "column_name": "users.status_id",
            "operator": "!=",
            "value": "3"
          }
        ]
      },
      "user_details": {
        "company_id": 1,
        "print_query": false,
        "primary_table": "users",
        "start_index": 0,
        "limit_range": 1000,
        "sort_columns": [["users.id", "asc"]],
        "select_columns": [
          ["user_details.code"],
          ["user_details.user_id"],
          ["user_details.first_name", "name"],
          ["user_details.profile_pic"]
        ],
        "search_all": [
          {
            "column_name": "users.uuid",
            "operator": "=",
            "value": "$unique_id"
          },
          {
            "column_name": "users.status_id",
            "operator": "!=",
            "value": "3"
          }
        ],
        "includes": [
          {
            "table_name": "user_details",
            "join_type": "INNER",
            "join_condition": "users.id = user_details.user_id"
          }
        ]
      }
    }
  },
  {
    "name": "Update Role",
    "entity_name": "role_form",
    "entity_type": "form_builder_module",
    "primary_table": "roles",
    "form_information": {
      "model": {
        "roles": {
          "name": "",
          "status_id": 1,
          "description": ""
        }
      },
      "fields": [
        {
          "key": "roles",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "hooks": {
                "uniqueKey": "unique_role_name"
              },
              "props": {
                "label": "form_label_name",
                "required": true,
                "placeholder": "enter_role_name_placeholder"
              }
            },
            {
              "key": "description",
              "type": "textarea",
              "props": {
                "rows": 2,
                "label": "form_label_description",
                "required": false,
                "placeholder": "form_label_description_placeholder"
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ],
      "options": {}
    },
    "query_information": {
      "unique_role_name": {
        "company_id": 1,
        "search_all": [
          {
            "value": "3",
            "operator": "!=",
            "column_name": "roles.status_id"
          },
          {
            "value": "this.label",
            "operator": "=",
            "column_name": "roles.name"
          },
          {
            "value": "$unique_id",
            "operator": "!=",
            "column_name": "roles.uuid"
          }
        ],
        "limit_range": 1000,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["roles.name", "asc"]],
        "primary_table": "roles",
        "select_columns": [
          ["id", "value"],
          ["name", "label"]
        ]
      }
    },
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$roles.name",
            "status_id": "$roles.status_id",
            "created_at": true,
            "created_by": true,
            "updated_at": true,
            "updated_by": true,
            "description": "$roles.description"
          }
        ]
      },
      "table": ["roles"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$roles.name",
            "status_id": "$roles.status_id",
            "updated_at": true,
            "updated_by": true,
            "description": "$roles.description"
          }
        ]
      },
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table": ["roles"],
      "action": ["update"],
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "roles": {
        "company_id": 1,
        "print_query": false,
        "primary_table": "roles",
        "start_index": 0,
        "limit_range": 1,
        "sort_columns": [["roles.id", "asc"]],
        "select_columns": [["name"], ["status_id"], ["description"]],
        "search_all": [
          {
            "column_name": "roles.uuid",
            "operator": "=",
            "value": "$unique_id"
          },
          {
            "column_name": "roles.status_id",
            "operator": "!=",
            "value": "3"
          }
        ]
      }
    }
  },
  {
    "name": "Update User",
    "entity_name": "user_form",
    "entity_type": "form_builder_module",
    "primary_table": "users",
    "form_information": {
      "model": {
        "users": {
          "role": "admin",
          "email": null,
          "role_id": null,
          "username": null,
          "status_id": 1,
          "allow_login_web": 0,
          "allow_login_mobile": 0
        },
        "user_roles": {
          "role_id": []
        },
        "user_details": {
          "dob": null,
          "code": null,
          "gender": "male",
          "address": null,
          "last_name": null,
          "first_name": null,
          "profile_pic": null,
          "country_code": null,
          "phone_number": null,
          "department_id": null,
          "designation_id": null
        }
      },
      "fields": [
        {
          "key": "users",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "username",
              "type": "input",
              "props": {
                "label": "form_label_username",
                "required": true,
                "placeholder": "form_label_username_placeholder"
              }
            },
            {
              "key": "email",
              "type": "input",
              "props": {
                "type": "email",
                "label": "email",
                "required": true,
                "placeholder": "email_placeholder"
              }
            },
            {
              "type": "#status"
            },
            {
              "key": "allow_login_web",
              "type": "radio",
              "props": {
                "label": "allow_login_web",
                "options": [
                  {
                    "label": "Yes",
                    "value": 1
                  },
                  {
                    "label": "No",
                    "value": 0
                  }
                ],
                "required": true
              }
            },
            {
              "key": "allow_login_mobile",
              "type": "radio",
              "props": {
                "label": "allow_login_mobile",
                "options": [
                  {
                    "label": "Yes",
                    "value": 1
                  },
                  {
                    "label": "No",
                    "value": 0
                  }
                ],
                "required": true
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-3"
        },
        {
          "key": "user_details",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "code",
              "type": "input",
              "props": {
                "label": "code",
                "required": true,
                "placeholder": "code_placeholder"
              }
            },
            {
              "key": "first_name",
              "type": "input",
              "props": {
                "label": "profile_form_first_name",
                "required": true,
                "placeholder": "profile_form_first_name_placeholder"
              }
            },
            {
              "key": "last_name",
              "type": "input",
              "props": {
                "label": "profile_form_last_name",
                "placeholder": "profile_form_last_name_placeholder"
              }
            },
            {
              "key": "department_id",
              "type": "select-from-db",
              "templateOptions": {
                "label": "department",
                "table": "departments",
                "search_all": [
                  {
                    "value": "1",
                    "operator": "=",
                    "column_name": "departments.status_id"
                  }
                ],
                "labelColumn": "name",
                "placeholder": "please_select",
                "valueColumn": "id",
                "sort_columns": [["departments.name", "asc"]]
              }
            },
            {
              "key": "designation_id",
              "type": "select-from-db",
              "templateOptions": {
                "label": "designation",
                "table": "designations",
                "search_all": [
                  {
                    "value": "1",
                    "operator": "=",
                    "column_name": "designations.status_id"
                  }
                ],
                "labelColumn": "name",
                "placeholder": "please_select",
                "valueColumn": "id",
                "sort_columns": [["designations.name", "asc"]]
              }
            },
            {
              "key": "dob",
              "type": "input",
              "props": {
                "type": "date",
                "label": "profile_form_dob",
                "placeholder": "profile_form_dob_placeholder"
              }
            },
            {
              "key": "country_code",
              "type": "select-from-db",
              "templateOptions": {
                "label": "country_code",
                "table": "phone_country_codes",
                "search_all": [
                  {
                    "value": "1",
                    "operator": "=",
                    "column_name": "phone_country_codes.status_id"
                  }
                ],
                "labelColumn": "CONCAT(country_code, ' - ', country_name , '(', iso_code ,')')",
                "placeholder": "please_select",
                "print_query": true,
                "valueColumn": "country_code",
                "sort_columns": [["phone_country_codes.id", "asc"]]
              }
            },
            {
              "key": "phone_number",
              "type": "input",
              "props": {
                "label": "profile_form_phnum",
                "placeholder": "profile_form_phnum_placeholder"
              }
            },
            {
              "key": "gender",
              "type": "radio",
              "props": {
                "label": "profile_form_gender",
                "options": [
                  {
                    "label": "Male",
                    "value": "male"
                  },
                  {
                    "label": "Female",
                    "value": "female"
                  },
                  {
                    "label": "Others",
                    "value": "others"
                  }
                ],
                "required": true
              }
            },
            {
              "key": "address",
              "type": "textarea",
              "props": {
                "rows": 3,
                "label": "profile_form_address",
                "placeholder": "profile_form_address_placeholder"
              }
            },
            {
              "key": "profile_pic",
              "type": "input",
              "props": {
                "type": "hidden"
              },
              "className": "hidden"
            },
            {
              "key": "profile_pic_file",
              "type": "file",
              "props": {
                "label": "profile_picture",
                "accept": "png",
                "max_size": "1mb"
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-3"
        },
        {
          "key": "user_roles",
          "modal": {
            "title": "",
            "width": "400px",
            "showClose": true,
            "entityName": "role_form"
          },
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "role_id",
              "type": "select-from-db",
              "enable_edit": true,
              "templateOptions": {
                "label": "role",
                "table": "roles",
                "multiple": true,
                "required": true,
                "enable_edit": true,
                "labelColumn": "CONCAT(name,'___',created_at)",
                "placeholder": "please_select",
                "valueColumn": "id",
                "additionalColumns": [["description", "description"]],
                "search_all": [
                  {
                    "value": "Customer",
                    "operator": "!=",
                    "column_name": "roles.name"
                  },
                  {
                    "value": "Driver",
                    "operator": "!=",
                    "column_name": "roles.name"
                  }
                ]
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-3"
        }
      ],
      "options": {}
    },
    "query_information": {},
    "add_query_information": {
      "data": {
        "table1": [
          {
            "role": "$users.role",
            "email": "$users.email",
            "username": "$users.username",
            "status_id": "$users.status_id",
            "created_at": true,
            "created_by": true,
            "updated_at": true,
            "updated_by": true,
            "allow_login_web": "$users.allow_login_web",
            "allow_login_mobile": "$users.allow_login_mobile"
          }
        ],
        "table2": [
          {
            "dob": "[#[CASE WHEN COALESCE($user_details.dob, '') <> '' THEN ($user_details.dob)::timestamptz ELSE NULL END]#]",
            "code": "$user_details.code",
            "gender": "$user_details.gender",
            "address": "$user_details.address",
            "user_id": "@table1.id",
            "last_name": "$user_details.last_name",
            "created_at": true,
            "created_by": true,
            "first_name": "$user_details.first_name",
            "updated_at": true,
            "updated_by": true,
            "profile_pic": "$user_details.profile_pic",
            "country_code": "$user_details.country_code",
            "phone_number": "$user_details.phone_number",
            "department_id": "$user_details.department_id",
            "designation_id": "$user_details.designation_id"
          }
        ],
        "table3": [
          {
            "role_id": "$user_roles.role_id",
            "user_id": "@table1.id"
          }
        ],
        "table4": [
          {
            "user_id": "@table1.id",
            "unique_id": "@table1.id",
            "created_at": true,
            "created_by": true,
            "prefill_data": "$model",
            "notification_template_process_slug": "user_created"
          }
        ]
      },
      "table": [
        "users",
        "user_details",
        "user_roles",
        "notification_process_jobs"
      ],
      "action": ["insert", "insert", "insert", "insert"],
      "table_mapping": ["table1", "table2", "table3", "table4"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "email": "$users.email",
            "username": "$users.username",
            "status_id": "$users.status_id",
            "updated_at": true,
            "updated_by": true,
            "allow_login_web": "$users.allow_login_web",
            "allow_login_mobile": "$users.allow_login_mobile"
          }
        ],
        "table2": [
          {
            "dob": "[#[CASE WHEN COALESCE($user_details.dob, '') <> '' THEN ($user_details.dob)::timestamptz ELSE NULL END]#]",
            "code": "$user_details.code",
            "gender": "$user_details.gender",
            "address": "$user_details.address",
            "last_name": "$user_details.last_name",
            "first_name": "$user_details.first_name",
            "updated_at": true,
            "updated_by": true,
            "profile_pic": "$user_details.profile_pic",
            "country_code": "$user_details.country_code",
            "phone_number": "$user_details.phone_number",
            "department_id": "$user_details.department_id",
            "designation_id": "$user_details.designation_id"
          }
        ],
        "table4": [
          {
            "role_id": "$user_roles.role_id",
            "user_id": "@table1.id"
          }
        ]
      },
      "table": ["users", "user_details", "user_roles", "user_roles"],
      "action": ["update", "update", "hard_delete", "insert"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ],
        "table2": [
          {
            "user_id": "@table1.id"
          }
        ],
        "table3": [
          {
            "user_id": "@table1.id"
          }
        ]
      },
      "table_mapping": ["table1", "table2", "table3", "table4"]
    },
    "preset_query_information": {
      "users": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "users.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "users.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": true,
        "start_index": 0,
        "sort_columns": [["users.id", "asc"]],
        "primary_table": "users",
        "select_columns": [
          ["email"],
          ["username"],
          ["role"],
          ["status_id"],
          ["users.allow_login_mobile"],
          ["users.allow_login_web"]
        ]
      },
      "user_roles": {
        "group_by": ["user_roles.user_id"],
        "includes": [
          {
            "join_type": "INNER",
            "table_name": "users",
            "join_condition": "users.id = user_roles.user_id"
          }
        ],
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "users.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "users.status_id"
          }
        ],
        "limit_range": 15,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["user_roles.user_id", "desc"]],
        "primary_table": "user_roles",
        "select_columns": [["json_agg(user_roles.role_id::int)", "role_id"]]
      },
      "user_details": {
        "includes": [
          {
            "join_type": "INNER",
            "table_name": "user_details",
            "join_condition": "users.id = user_details.user_id"
          }
        ],
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "users.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "users.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": true,
        "start_index": 0,
        "sort_columns": [["users.id", "asc"]],
        "primary_table": "users",
        "select_columns": [
          ["user_details.code"],
          ["user_details.first_name"],
          ["user_details.last_name"],
          ["user_details.designation_id"],
          ["user_details.department_id"],
          ["user_details.dob"],
          ["user_details.phone_number"],
          ["user_details.country_code"],
          ["user_details.gender"],
          ["user_details.user_time_zone"],
          ["user_details.address"],
          ["user_details.profile_pic"]
        ]
      }
    }
  },
  {
    "name": "Notification Template Recipient Tag Form",
    "entity_name": "notification_template_recipient_tag_form",
    "entity_type": "form_builder_module",
    "primary_table": "notification_template_recipient_tags",
    "form_information": {
      "options": {},
      "model": {
        "notification_template_recipient_tags": {
          "name": "",
          "slug": "",
          "notification_type": "email",
          "description": "",
          "query_information": "",
          "status_id": 1
        }
      },
      "fields": [
        {
          "key": "notification_template_recipient_tags",
          "wrappers": ["form-field"],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2",
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "form_label_name",
                "placeholder": "form_label_name_placeholder",
                "required": true
              }
            },
            {
              "key": "slug",
              "type": "input",
              "props": {
                "label": "form_label_slug",
                "placeholder": "form_label_slug_placeholder",
                "required": true
              }
            },
            {
              "key": "description",
              "type": "textarea",
              "props": {
                "rows": 2,
                "label": "form_label_description",
                "required": false,
                "placeholder": "form_label_description_placeholder"
              }
            },
            {
              "key": "notification_type",
              "type": "select",
              "props": {
                "label": "notification_type",
                "options": [
                  {
                    "label": "Email",
                    "value": "email"
                  },
                  {
                    "label": "SMS",
                    "value": "sms"
                  },
                  {
                    "label": "Whatsapp",
                    "value": "whatsapp"
                  }
                ]
              }
            },
            {
              "type": "#status"
            },
            {
              "key": "notification_type",
              "type": "select",
              "props": {
                "label": "notification_type",
                "options": [
                  {
                    "label": "Email",
                    "value": "email"
                  },
                  {
                    "label": "SMS",
                    "value": "sms"
                  },
                  {
                    "label": "Whatsapp",
                    "value": "whatsapp"
                  }
                ]
              }
            },
            {
              "key": "query_information",
              "type": "vs-code",
              "props": {
                "rows": 6,
                "label": "form_label_query_information",
                "language": "json",
                "required": false,
                "placeholder": "form_label_query_information_placeholder"
              }
            }
          ]
        }
      ]
    },
    "query_information": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$notification_template_recipient_tags.name",
            "notification_type": "$notification_template_recipient_tags.notification_type",
            "status_id": "$notification_template_recipient_tags.status_id",
            "description": "$notification_template_recipient_tags.description",
            "slug": "$notification_template_recipient_tags.slug",
            "query_information": "$notification_template_recipient_tags.query_information"
          }
        ]
      },
      "table": ["notification_template_recipient_tags"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$notification_template_recipient_tags.name",
            "notification_type": "$notification_template_recipient_tags.notification_type",
            "status_id": "$notification_template_recipient_tags.status_id",
            "description": "$notification_template_recipient_tags.description",
            "slug": "$notification_template_recipient_tags.slug",
            "query_information": "$notification_template_recipient_tags.query_information"
          }
        ]
      },
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table": ["notification_template_recipient_tags"],
      "action": ["update"],
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "notification_template_recipient_tags": {
        "company_id": 1,
        "print_query": false,
        "primary_table": "notification_template_recipient_tags",
        "start_index": 0,
        "limit_range": 1,
        "sort_columns": [["notification_template_recipient_tags.id", "asc"]],
        "select_columns": [
          ["name"],
          ["description"],
          ["status_id"],
          ["slug"],
          ["query_information"],
          ["notification_type"]
        ],
        "search_all": [
          {
            "column_name": "notification_template_recipient_tags.uuid",
            "operator": "=",
            "value": "$unique_id"
          },
          {
            "column_name": "notification_template_recipient_tags.status_id",
            "operator": "!=",
            "value": "3"
          }
        ]
      }
    }
  },
  {
    "name": "Notification Template Tag Form",
    "entity_name": "notification_template_tag_form",
    "entity_type": "form_builder_module",
    "primary_table": "notification_template_tags",
    "form_information": {
      "model": {
        "notification_template_tags": {
          "name": "",
          "slug": "",
          "status_id": 1,
          "description": ""
        }
      },
      "fields": [
        {
          "key": "notification_template_tags",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "form_label_name",
                "required": true,
                "placeholder": "form_label_name_placeholder"
              }
            },
            {
              "key": "slug",
              "type": "input",
              "props": {
                "label": "form_label_slug",
                "required": true,
                "placeholder": "form_label_slug_placeholder"
              }
            },
            {
              "key": "description",
              "type": "textarea",
              "props": {
                "rows": 2,
                "label": "form_label_description",
                "required": false,
                "placeholder": "form_label_description_placeholder"
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ],
      "options": {}
    },
    "query_information": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$notification_template_tags.name",
            "status_id": "$notification_template_tags.status_id",
            "description": "$notification_template_tags.description",
            "slug": "$notification_template_tags.slug"
          }
        ]
      },
      "table": ["notification_template_tags"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$notification_template_tags.name",
            "status_id": "$notification_template_tags.status_id",
            "description": "$notification_template_tags.description",
            "slug": "$notification_template_tags.slug"
          }
        ]
      },
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table": ["notification_template_tags"],
      "action": ["update"],
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "notification_template_tags": {
        "company_id": 1,
        "print_query": false,
        "primary_table": "notification_template_tags",
        "start_index": 0,
        "limit_range": 1,
        "sort_columns": [["notification_template_tags.id", "asc"]],
        "select_columns": [["name"], ["description"], ["status_id"], ["slug"]],
        "search_all": [
          {
            "column_name": "notification_template_tags.uuid",
            "operator": "=",
            "value": "$unique_id"
          },
          {
            "column_name": "notification_template_tags.status_id",
            "operator": "!=",
            "value": "3"
          }
        ]
      }
    }
  },
  {
    "name": "Notification Template Process Form",
    "entity_name": "email_template_process_form",
    "entity_type": "form_builder_module",
    "primary_table": "notification_template_process",
    "form_information": {
      "model": {
        "notification_template_process": {
          "name": "",
          "slug": "",
          "query_information": ""
        },
        "notification_template_process_tags_mapping": {
          "notification_template_tag_id": []
        }
      },
      "fields": [
        {
          "key": "notification_template_process",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "form_label_name",
                "required": true,
                "placeholder": "form_label_name_placeholder"
              }
            },
            {
              "key": "slug",
              "type": "input",
              "props": {
                "label": "form_label_slug",
                "required": true,
                "placeholder": "form_label_slug_placeholder"
              }
            },
            {
              "key": "query_information",
              "type": "vs-code",
              "props": {
                "rows": 6,
                "label": "form_label_query_information",
                "language": "json",
                "required": false,
                "placeholder": "form_label_query_information_placeholder"
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        },
        {
          "key": "notification_template_process_tags_mapping",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "notification_template_tag_id",
              "type": "select-from-db",
              "templateOptions": {
                "label": "notification_template_tag",
                "table": "notification_template_tags",
                "multiple": true,
                "required": true,
                "labelColumn": "name",
                "placeholder": "please_select",
                "valueColumn": "id"
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-3"
        }
      ],
      "options": {}
    },
    "query_information": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$notification_template_process.name",
            "slug": "$notification_template_process.slug",
            "query_information": "$notification_template_process.query_information"
          }
        ],
        "table2": [
          {
            "notification_template_tag_id": "$notification_template_process_tags_mapping.notification_template_tag_id",
            "notification_template_process_id": "@table1.id"
          }
        ]
      },
      "table": [
        "notification_template_process",
        "notification_template_process_tags_mapping"
      ],
      "action": ["insert", "insert"],
      "table_mapping": ["table1", "table2"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$notification_template_process.name",
            "slug": "$notification_template_process.slug",
            "query_information": "$notification_template_process.query_information"
          }
        ],
        "table3": [
          {
            "notification_template_tag_id": "$notification_template_process_tags_mapping.notification_template_tag_id",
            "notification_template_process_id": "@table1.id"
          }
        ]
      },
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ],
        "table2": [
          {
            "notification_template_process_id": "@table1.id"
          }
        ]
      },
      "table": [
        "notification_template_process",
        "notification_template_process_tags_mapping",
        "notification_template_process_tags_mapping"
      ],
      "action": ["update", "hard_delete", "insert"],
      "table_mapping": ["table1", "table2", "table3"]
    },
    "preset_query_information": {
      "notification_template_process": {
        "company_id": 1,
        "print_query": false,
        "primary_table": "notification_template_process",
        "start_index": 0,
        "limit_range": 1,
        "sort_columns": [["notification_template_process.id", "asc"]],
        "select_columns": [
          ["name"],
          ["status_id"],
          ["slug"],
          ["query_information"]
        ],
        "search_all": [
          {
            "column_name": "notification_template_process.uuid",
            "operator": "=",
            "value": "$unique_id"
          },
          {
            "column_name": "notification_template_process.status_id",
            "operator": "!=",
            "value": "3"
          }
        ]
      },
      "notification_template_process_tags_mapping": {
        "group_by": [
          "notification_template_process_tags_mapping.notification_template_process_id"
        ],
        "includes": [
          {
            "join_type": "INNER",
            "table_name": "notification_template_process",
            "join_condition": "notification_template_process.id = notification_template_process_tags_mapping.notification_template_process_id"
          }
        ],
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "notification_template_process.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "notification_template_process.status_id"
          }
        ],
        "limit_range": 15,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [
          [
            "notification_template_process_tags_mapping.notification_template_process_id",
            "desc"
          ]
        ],
        "primary_table": "notification_template_process_tags_mapping",
        "select_columns": [
          [
            "json_agg(notification_template_process_tags_mapping.notification_template_tag_id::int)",
            "notification_template_tag_id"
          ]
        ]
      }
    }
  },
  {
    "name": "Notification Template Form",
    "entity_name": "email_template_form",
    "entity_type": "form_builder_module",
    "primary_table": "notification_templates",
    "form_information": {
      "model": {
        "notification_templates": {
          "name": "",
          "slug": "",
          "notification_type": "email",
          "email_subject": "",
          "email_body": "",
          "notification_template_process_id": null
        }
      },
      "fields": [
        {
          "key": "notification_templates",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "form_label_name",
                "required": true,
                "placeholder": "form_label_name_placeholder"
              }
            },
            {
              "key": "slug",
              "type": "input",
              "props": {
                "label": "form_label_slug",
                "required": true,
                "placeholder": "form_label_slug_placeholder"
              }
            },
            {
              "key": "notification_type",
              "type": "select",
              "props": {
                "label": "notification_type",
                "options": [
                  {
                    "label": "Email",
                    "value": "email"
                  },
                  {
                    "label": "SMS",
                    "value": "sms"
                  },
                  {
                    "label": "Whatsapp",
                    "value": "whatsapp"
                  }
                ]
              }
            },
            {
              "key": "email_subject",
              "type": "input",
              "props": {
                "label": "subject",
                "required": true,
                "placeholder": "subject_placeholder"
              }
            },
            {
              "key": "notification_template_process_id",
              "type": "select-from-db",
              "templateOptions": {
                "label": "notification_template_process",
                "table": "notification_template_process",
                "required": true,
                "labelColumn": "name",
                "placeholder": "please_select",
                "valueColumn": "id"
              }
            },
            {
              "key": "email_body",
              "type": "rich-editor",
              "props": {
                "rows": 10,
                "label": "template",
                "required": true,
                "html-editor": true,
                "placeholder": "template_body_placeholder"
              }
            },
            {
              "key": "tags",
              "type": "notification-tags",
              "props": {
                "label": "Tags"
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ],
      "options": {}
    },
    "query_information": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$notification_templates.name",
            "slug": "$notification_templates.slug",
            "notification_type": "$notification_templates.notification_type",
            "email_subject": "$notification_templates.email_subject",
            "email_body": "$notification_templates.email_body",
            "notification_template_process_id": "$notification_templates.notification_template_process_id",
            "created_at": true,
            "created_by": true,
            "updated_at": true,
            "updated_by": true
          }
        ]
      },
      "table": ["notification_templates"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$notification_templates.name",
            "slug": "$notification_templates.slug",
            "notification_type": "$notification_templates.notification_type",
            "email_subject": "$notification_templates.email_subject",
            "email_body": "$notification_templates.email_body",
            "notification_template_process_id": "$notification_templates.notification_template_process_id",
            "updated_at": true,
            "updated_by": true
          }
        ]
      },
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table": ["notification_templates"],
      "action": ["update"],
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "notification_templates": {
        "company_id": 1,
        "print_query": false,
        "primary_table": "notification_templates",
        "start_index": 0,
        "limit_range": 1,
        "sort_columns": [["notification_templates.id", "asc"]],
        "select_columns": [
          ["name"],
          ["slug"],
          ["email_subject"],
          ["email_body"],
          ["notification_type"],
          ["notification_template_process_id"]
        ],
        "search_all": [
          {
            "column_name": "notification_templates.uuid",
            "operator": "=",
            "value": "$unique_id"
          },
          {
            "column_name": "notification_templates.status_id",
            "operator": "!=",
            "value": "3"
          }
        ]
      }
    }
  },
  {
    "name": "Notication Template Assignment Form",
    "entity_name": "email_template_assignment_form",
    "entity_type": "email_template_assignment_module",
    "primary_table": "notification_template_assignments",
    "form_information": null,
    "query_information": null,
    "add_query_information": null,
    "edit_query_information": null,
    "preset_query_information": null
  },
  {
    "name": "AI Playground",
    "entity_name": "ai_playground",
    "entity_type": "ai_playground_module",
    "primary_table": null,
    "form_information": null,
    "query_information": null,
    "add_query_information": null,
    "edit_query_information": null,
    "preset_query_information": null
  },
  {
    "name": "Query Builder",
    "entity_name": "query_builder",
    "entity_type": "query_builder_module",
    "primary_table": null,
    "form_information": null,
    "query_information": null,
    "add_query_information": null,
    "edit_query_information": null,
    "preset_query_information": null
  },
  {
    "name": "wizard_group_form",
    "entity_name": "wizard_group_form",
    "entity_type": "form_builder_module",
    "primary_table": "wizard_group",
    "form_information": {
      "model": {
        "wizard_group": {
          "name": null,
          "slug": null,
          "status_id": 1,
          "description": null
        }
      },
      "fields": [
        {
          "key": "wizard_group",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "wizard_group_name",
                "required": true,
                "placeholder": "enter_wizard_group_name_placeholder"
              }
            },
            {
              "key": "slug",
              "type": "input",
              "props": {
                "label": "wizard_group_slug",
                "required": true,
                "placeholder": "enter_wizard_group_slug_placeholder"
              }
            },
            {
              "key": "description",
              "type": "textarea",
              "props": {
                "rows": 3,
                "label": "form_label_description",
                "placeholder": "form_label_description_placeholder"
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-3"
        }
      ],
      "options": {}
    },
    "query_information": null,
    "static_page_content": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$wizard_group.name",
            "slug": "$wizard_group.slug",
            "description": "$wizard_group.description",
            "status_id": "$wizard_group.status_id",
            "created_at": true
          }
        ]
      },
      "table": ["wizard_group"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$wizard_group.name",
            "slug": "$wizard_group.slug",
            "description": "$wizard_group.description",
            "status_id": "$wizard_group.status_id"
          }
        ]
      },
      "table": ["wizard_group"],
      "action": ["update"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "wizard_group": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "wizard_group.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "wizard_group.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["wizard_group.id", "asc"]],
        "primary_table": "wizard_group",
        "select_columns": [["name"], ["slug"], ["description"], ["status_id"]]
      }
    }
  },
  {
    "name": "Whatsapp Template Process Form",
    "entity_name": "whatsapp_template_process_form",
    "entity_type": "form_builder_module",
    "primary_table": "notification_template_process",
    "form_information": {
      "model": {
        "notification_template_process": {
          "name": "",
          "slug": "",
          "query_information": ""
        },
        "notification_template_process_tags_mapping": {
          "notification_template_tag_id": []
        }
      },
      "fields": [
        {
          "key": "notification_template_process",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "form_label_name",
                "required": true,
                "placeholder": "form_label_name_placeholder"
              }
            },
            {
              "key": "slug",
              "type": "input",
              "props": {
                "label": "form_label_slug",
                "required": true,
                "placeholder": "form_label_slug_placeholder"
              }
            },
            {
              "key": "query_information",
              "type": "vs-code",
              "props": {
                "rows": 6,
                "label": "form_label_query_information",
                "language": "json",
                "required": false,
                "placeholder": "form_label_query_information_placeholder"
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        },
        {
          "key": "notification_template_process_tags_mapping",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "notification_template_tag_id",
              "type": "select-from-db",
              "templateOptions": {
                "label": "notification_template_tag",
                "table": "notification_template_tags",
                "multiple": true,
                "required": true,
                "labelColumn": "name",
                "placeholder": "please_select",
                "valueColumn": "id"
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-3"
        }
      ],
      "options": {}
    },
    "query_information": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$notification_template_process.name",
            "slug": "$notification_template_process.slug",
            "query_information": "$notification_template_process.query_information"
          }
        ],
        "table2": [
          {
            "notification_template_tag_id": "$notification_template_process_tags_mapping.notification_template_tag_id",
            "notification_template_process_id": "@table1.id"
          }
        ]
      },
      "table": [
        "notification_template_process",
        "notification_template_process_tags_mapping"
      ],
      "action": ["insert", "insert"],
      "table_mapping": ["table1", "table2"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$notification_template_process.name",
            "slug": "$notification_template_process.slug",
            "query_information": "$notification_template_process.query_information"
          }
        ],
        "table3": [
          {
            "notification_template_tag_id": "$notification_template_process_tags_mapping.notification_template_tag_id",
            "notification_template_process_id": "@table1.id"
          }
        ]
      },
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ],
        "table2": [
          {
            "notification_template_process_id": "@table1.id"
          }
        ]
      },
      "table": [
        "notification_template_process",
        "notification_template_process_tags_mapping",
        "notification_template_process_tags_mapping"
      ],
      "action": ["update", "hard_delete", "insert"],
      "table_mapping": ["table1", "table2", "table3"]
    },
    "preset_query_information": {
      "notification_template_process": {
        "company_id": 1,
        "print_query": false,
        "primary_table": "notification_template_process",
        "start_index": 0,
        "limit_range": 1,
        "sort_columns": [["notification_template_process.id", "asc"]],
        "select_columns": [
          ["name"],
          ["status_id"],
          ["slug"],
          ["query_information"]
        ],
        "search_all": [
          {
            "column_name": "notification_template_process.uuid",
            "operator": "=",
            "value": "$unique_id"
          },
          {
            "column_name": "notification_template_process.status_id",
            "operator": "!=",
            "value": "3"
          }
        ]
      },
      "notification_template_process_tags_mapping": {
        "group_by": [
          "notification_template_process_tags_mapping.notification_template_process_id"
        ],
        "includes": [
          {
            "join_type": "INNER",
            "table_name": "notification_template_process",
            "join_condition": "notification_template_process.id = notification_template_process_tags_mapping.notification_template_process_id"
          }
        ],
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "notification_template_process.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "notification_template_process.status_id"
          }
        ],
        "limit_range": 15,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [
          [
            "notification_template_process_tags_mapping.notification_template_process_id",
            "desc"
          ]
        ],
        "primary_table": "notification_template_process_tags_mapping",
        "select_columns": [
          [
            "json_agg(notification_template_process_tags_mapping.notification_template_tag_id::int)",
            "notification_template_tag_id"
          ]
        ]
      }
    }
  },
  {
    "name": "Whatsapp Template Form",
    "entity_name": "whatsapp_template_form",
    "entity_type": "form_builder_module",
    "primary_table": "notification_templates",
    "form_information": {
      "model": {
        "notification_templates": {
          "name": "",
          "category": "",
          "components": null,
          "parameter_format": ""
        }
      },
      "fields": [
        {
          "key": "notification_templates",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "form_label_name",
                "readonly": true,
                "required": true,
                "placeholder": "form_label_name_placeholder"
              }
            },
            {
              "key": "parameter_format",
              "type": "input",
              "props": {
                "label": "parameter_format",
                "readonly": true,
                "required": true,
                "placeholder": "parameter_format_placeholder"
              }
            },
            {
              "key": "notification_template_process_id",
              "type": "select-from-db",
              "templateOptions": {
                "label": "notification_template_process",
                "table": "notification_template_process",
                "required": true,
                "labelColumn": "name",
                "placeholder": "please_select",
                "valueColumn": "id"
              }
            },
            {
              "key": "components",
              "type": "textarea",
              "props": {
                "rows": 5,
                "label": "components",
                "readonly": true,
                "required": true,
                "placeholder": "enter_component_placeholder"
              }
            },
            {
              "key": "category",
              "type": "input",
              "props": {
                "label": "form_label_name",
                "readonly": true,
                "required": true,
                "placeholder": "form_label_name_placeholder"
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ],
      "options": {}
    },
    "query_information": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$notification_templates.name",
            "parameter_format": "$notification_templates.parameter_format",
            "category": "$notification_templates.category",
            "components": "$notification_templates.components",
            "notification_template_process_id": "$notification_templates.notification_template_process_id",
            "created_at": true,
            "created_by": true,
            "updated_at": true,
            "updated_by": true,
            "notification_type": "whatsapp"
          }
        ]
      },
      "table": ["notification_templates"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$notification_templates.name",
            "parameter_format": "$notification_templates.parameter_format",
            "category": "$notification_templates.category",
            "components": "$notification_templates.components",
            "notification_template_process_id": "$notification_templates.notification_template_process_id",
            "updated_at": true,
            "updated_by": true,
            "notification_type": "whatsapp"
          }
        ]
      },
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table": ["notification_templates"],
      "action": ["update"],
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "notification_templates": {
        "company_id": 1,
        "print_query": false,
        "primary_table": "notification_templates",
        "start_index": 0,
        "limit_range": 1,
        "sort_columns": [["notification_templates.id", "asc"]],
        "select_columns": [
          ["name"],
          ["parameter_format"],
          ["category"],
          ["components::text"],
          ["notification_template_process_id"]
        ],
        "search_all": [
          {
            "column_name": "notification_templates.uuid",
            "operator": "=",
            "value": "$unique_id"
          },
          {
            "column_name": "notification_templates.status_id",
            "operator": "!=",
            "value": "3"
          }
        ]
      }
    }
  },
  {
    "name": "Whatsapp Template Assignment Form",
    "entity_name": "whatsapp_template_assignment_form",
    "entity_type": "whatsapp_template_assignment_module",
    "primary_table": "notification_template_assignments",
    "form_information": null,
    "query_information": null,
    "add_query_information": null,
    "edit_query_information": null,
    "preset_query_information": null
  },
  {
    "name": "data_transfer_queries_form",
    "entity_name": "data_transfer_queries_form",
    "entity_type": "form_builder_module",
    "primary_table": "wizard_group",
    "form_information": {
      "model": {
        "data_transfer_queries": {
          "slug": null,
          "job_name": null,
          "status_id": 1,
          "description": null,
          "command_type": null,
          "insert_query": null,
          "select_query": null,
          "transfer_type": null,
          "execution_order": null,
          "destination_table": null,
          "clear_destination_table": 0
        }
      },
      "fields": [
        {
          "key": "data_transfer_queries",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "select_query",
              "type": "textarea",
              "props": {
                "rows": 3,
                "label": "select_query",
                "required": true,
                "placeholder": "enter_select_query_placeholder"
              }
            },
            {
              "key": "insert_query",
              "type": "textarea",
              "props": {
                "rows": 3,
                "label": "insert_query",
                "required": true,
                "placeholder": "enter_insert_query_placeholder"
              }
            },
            {
              "key": "transfer_type",
              "type": "select",
              "props": {
                "label": "transfer_type",
                "options": [
                  {
                    "label": "Push",
                    "value": "Push"
                  },
                  {
                    "label": "Pull",
                    "value": "Pull"
                  }
                ],
                "required": true,
                "placeholder": "please_select"
              }
            },
            {
              "key": "job_name",
              "type": "input",
              "props": {
                "label": "job_name",
                "required": true,
                "placeholder": "enter_job_name_placeholder"
              }
            },
            {
              "key": "destination_table",
              "type": "input",
              "props": {
                "label": "destination_table",
                "required": true,
                "placeholder": "enter_destination_table_placeholder"
              }
            },
            {
              "key": "clear_destination_table",
              "type": "checkbox",
              "props": {
                "label": "clear_destination_table",
                "required": false
              }
            },
            {
              "key": "execution_order",
              "type": "input",
              "props": {
                "type": "number",
                "label": "execution_order",
                "required": true,
                "placeholder": "enter_execution_order_placeholder"
              }
            },
            {
              "key": "command_type",
              "type": "input",
              "props": {
                "label": "command_type",
                "required": true,
                "placeholder": "enter_command_type_placeholder"
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-3"
        }
      ],
      "options": {}
    },
    "query_information": null,
    "static_page_content": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "select_query": "$data_transfer_queries.select_query",
            "insert_query": "$data_transfer_queries.insert_query",
            "transfer_type": "$data_transfer_queries.transfer_type",
            "job_name": "$data_transfer_queries.job_name",
            "destination_table": "$data_transfer_queries.destination_table",
            "clear_destination_table": "$data_transfer_queries.clear_destination_table",
            "execution_order": "$data_transfer_queries.execution_order",
            "command_type": "$data_transfer_queries.command_type",
            "status_id": "$data_transfer_queries.status_id"
          }
        ]
      },
      "table": ["data_transfer_queries"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "select_query": "$data_transfer_queries.select_query",
            "insert_query": "$data_transfer_queries.insert_query",
            "transfer_type": "$data_transfer_queries.transfer_type",
            "job_name": "$data_transfer_queries.job_name",
            "destination_table": "$data_transfer_queries.destination_table",
            "clear_destination_table": "$data_transfer_queries.clear_destination_table",
            "execution_order": "$data_transfer_queries.execution_order",
            "command_type": "$data_transfer_queries.command_type",
            "status_id": "$data_transfer_queries.status_id"
          }
        ]
      },
      "table": ["data_transfer_queries"],
      "action": ["update"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "data_transfer_queries": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "data_transfer_queries.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "data_transfer_queries.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["data_transfer_queries.id", "asc"]],
        "primary_table": "data_transfer_queries",
        "select_columns": [
          ["select_query"],
          ["insert_query"],
          ["transfer_type"],
          ["job_name"],
          ["destination_table"],
          ["clear_destination_table"],
          ["execution_order"],
          ["command_type"],
          ["status_id"]
        ]
      }
    }
  },
  {
    "name": "menu_mangement_form",
    "entity_name": "menu_mangement_form",
    "entity_type": "form_builder_module",
    "primary_table": "menu",
    "form_information": {
      "model": {
        "menu": {
          "name": null,
          "slug": null,
          "status_id": 1,
          "description": null,
          "menu_type_id": null
        }
      },
      "fields": [
        {
          "key": "menu",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "menu_name",
                "required": true,
                "placeholder": "menu_name_placeholder"
              }
            },
            {
              "key": "slug",
              "type": "input",
              "props": {
                "label": "form_label_menu_type_slug",
                "required": true,
                "placeholder": "menu_slug_placeholder"
              }
            },
            {
              "key": "menu_type_id",
              "type": "select",
              "hooks": {
                "onInit": true
              },
              "props": {
                "label": "form_label_menu_type"
              }
            },
            {
              "key": "description",
              "type": "textarea",
              "props": {
                "rows": 3,
                "label": "form_label_description",
                "placeholder": "form_label_description_placeholder"
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-3"
        }
      ],
      "options": {}
    },
    "query_information": {
      "menu_type_id": {
        "company_id": 1,
        "search_all": [
          {
            "value": "1",
            "operator": "=",
            "column_name": "menu_types.status_id"
          }
        ],
        "limit_range": 1000,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["menu_types.name", "asc"]],
        "primary_table": "menu_types",
        "select_columns": [
          ["id", "value"],
          ["name", "label"]
        ]
      }
    },
    "static_page_content": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$menu.name",
            "slug": "$menu.slug",
            "menu_type": "$menu.menu_type_id",
            "description": "$menu.description",
            "status_id": "$menu.status_id",
            "created_at": true,
            "created_by": true,
            "updated_at": true,
            "updated_by": true
          }
        ]
      },
      "table": ["menu"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$menu.name",
            "slug": "$menu.slug",
            "menu_type": "$menu.menu_type_id",
            "description": "$menu.description",
            "status_id": "$menu.status_id",
            "updated_at": true,
            "updated_by": true
          }
        ]
      },
      "table": ["menu"],
      "action": ["update"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "menu": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "menu.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "menu.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["menu.id", "asc"]],
        "primary_table": "menu",
        "select_columns": [
          ["name"],
          ["slug"],
          ["description"],
          ["menu_type", "menu_type_id"],
          ["status_id"]
        ]
      }
    }
  },
  {
    "name": "document_sequences_form",
    "entity_name": "document_sequences_form",
    "entity_type": "form_builder_module",
    "primary_table": "document_sequences",
    "form_information": {
      "model": {
        "document_sequences": {
          "status_id": 1,
          "code_format": "TEST{{current_sequence}}",
          "module_name": "",
          "end_sequence_no": "",
          "sequence_length": "",
          "financial_year_id": null,
          "start_sequence_no": "",
          "current_sequence_no": ""
        }
      },
      "fields": [
        {
          "key": "document_sequences",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "module_name",
              "type": "input",
              "props": {
                "label": "module_name",
                "required": true,
                "placeholder": "module_name_placeholder"
              }
            },
            {
              "key": "financial_year_id",
              "type": "select-from-db",
              "templateOptions": {
                "label": "financial_years",
                "table": "financial_years",
                "required": false,
                "placeholder": "please_select",
                "search_all": [
                  {
                    "value": "3",
                    "operator": "!=",
                    "column_name": "status_id"
                  }
                ],
                "labelColumn": "code",
                "valueColumn": "id"
              }
            },
            {
              "key": "current_sequence_no",
              "type": "input",
              "props": {
                "min": 0,
                "type": "number",
                "label": "current_sequence_no",
                "required": true,
                "placeholder": "enter_current_sequence_no_placeholder"
              }
            },
            {
              "key": "start_sequence_no",
              "type": "input",
              "props": {
                "min": 0,
                "type": "number",
                "label": "start_sequence_no",
                "required": true,
                "placeholder": "enter_start_sequence_no_placeholder"
              }
            },
            {
              "key": "end_sequence_no",
              "type": "input",
              "props": {
                "min": 0,
                "type": "number",
                "label": "end_sequence_no",
                "required": true,
                "placeholder": "enter_end_sequence_no_placeholder"
              }
            },
            {
              "key": "sequence_length",
              "type": "input",
              "props": {
                "min": 7,
                "type": "number",
                "label": "sequence_length",
                "required": true,
                "placeholder": "enter_sequence_length_placeholder"
              }
            },
            {
              "key": "code_format",
              "type": "input",
              "props": {
                "label": "code_format",
                "required": true,
                "placeholder": "enter_code_format_placeholder"
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ],
      "options": {}
    },
    "query_information": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "module_name": "$document_sequences.module_name",
            "current_sequence_no": "$document_sequences.current_sequence_no",
            "end_sequence_no": "$document_sequences.end_sequence_no",
            "sequence_length": "$document_sequences.sequence_length",
            "code_format": "$document_sequences.code_format",
            "financial_year_id": "$document_sequences.financial_year_id",
            "start_sequence_no": "$document_sequences.start_sequence_no",
            "status_id": "$document_sequences.status_id",
            "created_at": true,
            "created_by": true,
            "updated_at": true,
            "updated_by": true
          }
        ]
      },
      "table": ["document_sequences"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "module_name": "$document_sequences.module_name",
            "current_sequence_no": "$document_sequences.current_sequence_no",
            "end_sequence_no": "$document_sequences.end_sequence_no",
            "sequence_length": "$document_sequences.sequence_length",
            "code_format": "$document_sequences.code_format",
            "financial_year_id": "$document_sequences.financial_year_id",
            "start_sequence_no": "$document_sequences.start_sequence_no",
            "status_id": "$document_sequences.status_id",
            "updated_at": true,
            "updated_by": true
          }
        ]
      },
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table": ["document_sequences"],
      "action": ["update"],
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "document_sequences": {
        "company_id": 1,
        "print_query": false,
        "primary_table": "document_sequences",
        "start_index": 0,
        "limit_range": 1,
        "sort_columns": [["document_sequences.id", "asc"]],
        "select_columns": [
          ["module_name"],
          ["current_sequence_no"],
          ["end_sequence_no"],
          ["sequence_length"],
          ["code_format"],
          ["financial_year_id"],
          ["start_sequence_no"],
          ["status_id"]
        ],
        "search_all": [
          {
            "column_name": "document_sequences.uuid",
            "operator": "=",
            "value": "$unique_id"
          },
          {
            "column_name": "document_sequences.status_id",
            "operator": "!=",
            "value": "3"
          }
        ]
      }
    }
  },
  {
    "name": "financial_years_form",
    "entity_name": "financial_years_form",
    "entity_type": "form_builder_module",
    "primary_table": "financial_years",
    "form_information": {
      "model": {
        "financial_years": {
          "code": "",
          "name": "",
          "end_date": "",
          "status_id": 1,
          "is_freezed": false,
          "start_date": ""
        }
      },
      "fields": [
        {
          "key": "financial_years",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "form_label_name",
                "required": true,
                "placeholder": "form_label_name_placeholder"
              }
            },
            {
              "key": "code",
              "type": "input",
              "props": {
                "label": "code",
                "required": true,
                "placeholder": "enter_code_placeholder"
              }
            },
            {
              "key": "start_date",
              "type": "input",
              "props": {
                "type": "datetime-local",
                "label": "start_date",
                "required": true,
                "placeholder": "enter_start_date_placeholder"
              }
            },
            {
              "key": "end_date",
              "type": "input",
              "props": {
                "type": "datetime-local",
                "label": "end_date",
                "required": true,
                "placeholder": "enter_end_date_placeholder"
              }
            },
            {
              "key": "is_freezed",
              "type": "checkbox",
              "props": {
                "label": "is_freezed",
                "required": false
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ],
      "options": {}
    },
    "query_information": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$financial_years.name",
            "code": "$financial_years.code",
            "is_freezed": "$financial_years.is_freezed",
            "start_date": "$financial_years.start_date",
            "end_date": "$financial_years.end_date",
            "status_id": "$financial_years.status_id",
            "created_at": true,
            "created_by": true,
            "updated_at": true,
            "updated_by": true
          }
        ]
      },
      "table": ["financial_years"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$financial_years.name",
            "code": "$financial_years.code",
            "is_freezed": "$financial_years.is_freezed",
            "start_date": "$financial_years.start_date",
            "end_date": "$financial_years.end_date",
            "status_id": "$financial_years.status_id",
            "updated_at": true,
            "updated_by": true
          }
        ]
      },
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table": ["financial_years"],
      "action": ["update"],
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "financial_years": {
        "company_id": 1,
        "print_query": false,
        "primary_table": "financial_years",
        "start_index": 0,
        "limit_range": 1,
        "sort_columns": [["financial_years.id", "asc"]],
        "select_columns": [
          ["name"],
          ["status_id"],
          ["code"],
          ["is_freezed"],
          ["TO_CHAR(start_date, 'YYYY-MM-DD\"T\"HH24:MI')", "start_date"],
          ["TO_CHAR(end_date, 'YYYY-MM-DD\"T\"HH24:MI')", "end_date"]
        ],
        "search_all": [
          {
            "column_name": "financial_years.uuid",
            "operator": "=",
            "value": "$unique_id"
          },
          {
            "column_name": "financial_years.status_id",
            "operator": "!=",
            "value": "3"
          }
        ]
      }
    }
  },
  {
    "name": "app version form",
    "entity_name": "app_version_form",
    "entity_type": "form_builder_module",
    "primary_table": null,
    "is_admin_module": false,
    "associated_tables": null,
    "query_information": null,
    "static_page_content": null,
    "form_information": {
      "model": {
        "app_versions": {
          "type": "",
          "version": "",
          "status_id": 1,
          "description": "",
          "developed_by": "",
          "version_type": "",
          "is_backend_changed": "",
          "is_database_changed": "",
          "is_frontend_changed": ""
        }
      },
      "fields": [
        {
          "key": "app_versions",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "type",
              "type": "select",
              "props": {
                "label": "select_project_type",
                "options": [
                  {
                    "label": "Select any one",
                    "value": "",
                    "disabled": true,
                    "selected": true
                  },
                  {
                    "label": "App",
                    "value": "app"
                  },
                  {
                    "label": "LCP",
                    "value": "lcp"
                  }
                ],
                "required": true
              }
            },
            {
              "key": "version_type",
              "type": "select",
              "props": {
                "label": "select_version_type",
                "options": [
                  {
                    "label": "Select any one",
                    "value": "",
                    "disabled": true,
                    "selected": true
                  },
                  {
                    "label": "Major",
                    "value": "major"
                  },
                  {
                    "label": "Minor",
                    "value": "minor"
                  },
                  {
                    "label": "Patch",
                    "value": "patch"
                  }
                ],
                "required": true
              }
            },
            {
              "key": "version",
              "type": "input",
              "props": {
                "label": "version",
                "required": true,
                "placeholder": "enter_version_placeholder"
              }
            },
            {
              "key": "is_frontend_changed",
              "type": "select",
              "props": {
                "label": "frontend_changed",
                "options": [
                  {
                    "label": "Yes",
                    "value": true
                  },
                  {
                    "label": "No",
                    "value": false
                  }
                ],
                "required": false
              }
            },
            {
              "key": "is_backend_changed",
              "type": "select",
              "props": {
                "label": "backend_change",
                "options": [
                  {
                    "label": "Yes",
                    "value": true
                  },
                  {
                    "label": "No",
                    "value": false
                  }
                ],
                "required": false
              }
            },
            {
              "key": "is_database_changed",
              "type": "select",
              "props": {
                "label": "database_change",
                "options": [
                  {
                    "label": "Yes",
                    "value": true
                  },
                  {
                    "label": "No",
                    "value": false
                  }
                ],
                "required": false
              }
            },
            {
              "key": "description",
              "type": "rich-editor",
              "props": {
                "rows": 5,
                "label": "form_label_description",
                "required": true,
                "html-editor": true,
                "placeholder": "form_label_description_placeholder"
              },
              "className": "col-span-1 md:col-span-3"
            },
            {
              "key": "developed_by",
              "type": "input",
              "props": {
                "label": "developed_by",
                "required": true,
                "placeholder": "enter_developed_by_placeholder"
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ],
      "options": {}
    },
    "add_query_information": {
      "data": {
        "table1": [
          {
            "type": "$app_versions.type",
            "version": "$app_versions.version",
            "version_type": "$app_versions.version_type",
            "status_id": "$app_versions.status_id",
            "created_at": true,
            "created_by": true,
            "description": "$app_versions.description",
            "is_backend_changed": "$app_versions.is_backend_changed",
            "is_database_changed": "$app_versions.is_database_changed",
            "is_frontend_changed": "$app_versions.is_frontend_changed",
            "developed_by": "$app_versions.developed_by"
          }
        ]
      },
      "table": ["app_versions"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "type": "$app_versions.type",
            "version": "$app_versions.version",
            "version_type": "$app_versions.version_type",
            "status_id": "$app_versions.status_id",
            "updated_at": true,
            "updated_by": true,
            "description": "$app_versions.description",
            "is_backend_changed": "$app_versions.is_backend_changed",
            "is_database_changed": "$app_versions.is_database_changed",
            "is_frontend_changed": "$app_versions.is_frontend_changed",
            "developed_by": "$app_versions.developed_by"
          }
        ]
      },
      "table": ["app_versions"],
      "action": ["update"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "app_versions": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "app_versions.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "app_versions.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": true,
        "start_index": 0,
        "sort_columns": [["app_versions.id", "asc"]],
        "primary_table": "app_versions",
        "select_columns": [
          ["type"],
          ["version_type"],
          ["version"],
          ["description"],
          ["is_frontend_changed"],
          ["is_backend_changed"],
          ["is_database_changed"],
          ["status_id"],
          ["developed_by"]
        ]
      }
    }
  },
  {
    "name": "Approver Tag Form",
    "entity_name": "approver_tag_form",
    "entity_type": "form_builder_module",
    "primary_table": "approval_workflow_approver_tags",
    "form_information": {
      "model": {
        "approval_workflow_approver_tags": {
          "name": "",
          "slug": "",
          "status_id": 1,
          "description": "",
          "query_information": ""
        }
      },
      "fields": [
        {
          "key": "approval_workflow_approver_tags",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "form_label_name",
                "required": true,
                "placeholder": "form_label_name_placeholder"
              }
            },
            {
              "key": "slug",
              "type": "input",
              "props": {
                "label": "form_label_slug",
                "required": true,
                "placeholder": "form_label_slug_placeholder"
              }
            },
            {
              "key": "query_information",
              "type": "vs-code",
              "props": {
                "rows": 6,
                "label": "form_label_query_information",
                "language": "sql",
                "required": true,
                "placeholder": "form_label_query_information_placeholder"
              }
            },
            {
              "key": "description",
              "type": "textarea",
              "props": {
                "rows": 2,
                "label": "form_label_description",
                "required": false,
                "placeholder": "form_label_description_placeholder"
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ],
      "options": {}
    },
    "query_information": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$approval_workflow_approver_tags.name",
            "slug": "$approval_workflow_approver_tags.slug",
            "status_id": "$approval_workflow_approver_tags.status_id",
            "description": "$approval_workflow_approver_tags.description",
            "query_information": "$approval_workflow_approver_tags.query_information",
            "created_at": true,
            "created_by": true
          }
        ]
      },
      "table": ["approval_workflow_approver_tags"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$approval_workflow_approver_tags.name",
            "slug": "$approval_workflow_approver_tags.slug",
            "status_id": "$approval_workflow_approver_tags.status_id",
            "description": "$approval_workflow_approver_tags.description",
            "query_information": "$approval_workflow_approver_tags.query_information",
            "updated_at": true,
            "updated_by": true
          }
        ]
      },
      "table": ["approval_workflow_approver_tags"],
      "action": ["update"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "approval_workflow_approver_tags": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "approval_workflow_approver_tags.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "approval_workflow_approver_tags.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["approval_workflow_approver_tags.id", "asc"]],
        "primary_table": "approval_workflow_approver_tags",
        "select_columns": [
          ["name"],
          ["description"],
          ["status_id"],
          ["slug"],
          ["query_information"]
        ]
      }
    }
  },
  {
    "name": "Approval Workflow Form",
    "entity_name": "approval_workflow_form",
    "entity_type": "form_builder_module",
    "primary_table": "approval_workflows",
    "form_information": {
      "model": {
        "approval_workflows": {
          "url": "",
          "name": "",
          "slug": "",
          "status_id": 1,
          "query_information": ""
        }
      },
      "fields": [
        {
          "key": "approval_workflows",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "form_label_name",
                "required": true,
                "placeholder": "form_label_name_placeholder"
              }
            },
            {
              "key": "slug",
              "type": "input",
              "props": {
                "label": "form_label_slug",
                "required": true,
                "placeholder": "form_label_slug_placeholder"
              }
            },
            {
              "key": "url",
              "type": "textarea",
              "props": {
                "rows": 2,
                "label": "page_url",
                "required": true,
                "placeholder": "enter_page_url_placeholder"
              }
            },
            {
              "key": "description",
              "type": "textarea",
              "props": {
                "rows": 2,
                "label": "form_label_description",
                "required": true,
                "placeholder": "form_label_description_placeholder"
              }
            },
            {
              "key": "query_information",
              "type": "vs-code",
              "props": {
                "rows": 6,
                "label": "form_label_query_information",
                "language": "sql",
                "required": true,
                "placeholder": "form_label_query_information_placeholder"
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ],
      "options": {}
    },
    "query_information": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "url": "$approval_workflows.url",
            "name": "$approval_workflows.name",
            "slug": "$approval_workflows.slug",
            "status_id": "$approval_workflows.status_id",
            "created_at": true,
            "created_by": true,
            "description": "$approval_workflows.description",
            "query_information": "$approval_workflows.query_information"
          }
        ]
      },
      "table": ["approval_workflows"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "url": "$approval_workflows.url",
            "name": "$approval_workflows.name",
            "slug": "$approval_workflows.slug",
            "status_id": "$approval_workflows.status_id",
            "updated_at": true,
            "updated_by": true,
            "description": "$approval_workflows.description",
            "query_information": "$approval_workflows.query_information"
          }
        ]
      },
      "table": ["approval_workflows"],
      "action": ["update"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "approval_workflows": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "approval_workflows.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "approval_workflows.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["approval_workflows.id", "asc"]],
        "primary_table": "approval_workflows",
        "select_columns": [
          ["name"],
          ["description"],
          ["status_id"],
          ["url"],
          ["slug"],
          ["query_information"]
        ]
      }
    }
  },
  {
    "name": "Approval Workflow Assignment Form",
    "entity_name": "approval_workflow_assignment_form",
    "entity_type": "approval_workflow_assignment_module",
    "primary_table": "approval_workflow_assignments",
    "form_information": null,
    "query_information": null,
    "add_query_information": null,
    "edit_query_information": null,
    "preset_query_information": null
  },
  {
    "name": "Delegation Form",
    "entity_name": "delegation_form",
    "entity_type": "form_builder_module",
    "primary_table": "delegations",
    "form_information": {
      "model": {
        "delegations": {
          "reason": "",
          "user_id": null,
          "end_date": "",
          "status_id": 1,
          "start_date": "",
          "delegated_user_id": null
        }
      },
      "fields": [
        {
          "key": "delegations",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "user_id",
              "type": "async-select-from-db",
              "templateOptions": {
                "label": "user",
                "table": "users",
                "multiple": false,
                "required": true,
                "labelColumn": "email",
                "placeholder": "select_the_user_placeholder",
                "valueColumn": "id",
                "additionalColumns": [["users.username", "username"]]
              }
            },
            {
              "key": "delegated_user_id",
              "type": "async-select-from-db",
              "hooks": {
                "onInitFunc": "(field) => { const user_id = field.parent.get('user_id'); user_id.formControl.valueChanges.subscribe(value => field.formControl.setValue(null) ) }"
              },
              "props": {
                "label": "delegated_user",
                "table": "users",
                "refresh": "this.field?.parent?.get('user_id')?.formControl",
                "required": true,
                "search_all": [
                  {
                    "value": "1",
                    "operator": "=",
                    "column_name": "users.status_id"
                  },
                  {
                    "value": "this.field?.parent?.get('user_id').formControl.value || 0",
                    "operator": "!=",
                    "column_name": "users.id"
                  }
                ],
                "labelColumn": "users.email",
                "placeholder": "select_delegated_user_placeholder",
                "print_query": true,
                "valueColumn": "users.id",
                "additionalColumns": [["users.username", "username"]]
              }
            },
            {
              "key": "start_date",
              "type": "input",
              "props": {
                "type": "datetime-local",
                "label": "start_date",
                "required": true,
                "placeholder": "enter_start_date_placeholder"
              },
              "expressionProperties": {
                "props.min": "new Date().toISOString().split('T')[0] + 'T00:00'",
                "formControl.value": "field.formControl.value || new Date().toISOString().split('T')[0]"
              }
            },
            {
              "key": "end_date",
              "type": "input",
              "props": {
                "type": "datetime-local",
                "label": "end_date",
                "placeholder": "enter_end_date_placeholder"
              },
              "expressionProperties": {
                "props.min": "new Date().toISOString().split('T')[0] + 'T00:00'",
                "formControl.value": "field.formControl.value || new Date().toISOString().split('T')[0]"
              }
            },
            {
              "key": "reason",
              "type": "textarea",
              "props": {
                "rows": 2,
                "label": "reason",
                "required": true,
                "placeholder": "enter_reason_placeholder"
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ],
      "options": {}
    },
    "query_information": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "reason": "$delegations.reason",
            "user_id": "$delegations.user_id",
            "end_date": "$delegations.end_date",
            "status_id": "$delegations.status_id",
            "created_at": true,
            "created_by": true,
            "start_date": "$delegations.start_date",
            "delegated_user_id": "$delegations.delegated_user_id"
          }
        ]
      },
      "table": ["delegations"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "reason": "$delegations.reason",
            "user_id": "$delegations.user_id",
            "end_date": "$delegations.end_date",
            "status_id": "$delegations.status_id",
            "start_date": "$delegations.start_date",
            "updated_at": true,
            "updated_by": true,
            "delegated_user_id": "$delegations.delegated_user_id"
          }
        ]
      },
      "table": ["delegations"],
      "action": ["update"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "delegations": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "delegations.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "delegations.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["delegations.id", "asc"]],
        "primary_table": "delegations",
        "select_columns": [
          ["user_id"],
          ["delegated_user_id"],
          ["status_id"],
          ["reason"],
          ["TO_CHAR(start_date, 'YYYY-MM-DD\"T\"HH24:MI')", "start_date"],
          ["TO_CHAR(end_date, 'YYYY-MM-DD\"T\"HH24:MI')", "end_date"]
        ]
      }
    }
  },
  {
    "name": "schema_chunk_edit_form",
    "entity_name": "schema_chunk_edit_form",
    "entity_type": "form_builder_module",
    "primary_table": "schema_chunks",
    "form_information": {
      "model": {
        "schema_chunks": {
          "chunk": null,
          "table_name": null
        }
      },
      "fields": [
        {
          "key": "schema_chunks",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "table_name",
              "type": "input",
              "props": {
                "label": "form_label_table_name",
                "disabled": true,
                "required": true,
                "placeholder": "form_label_table_name_placeholder"
              }
            },
            {
              "key": "chunk",
              "type": "textarea",
              "props": {
                "label": "chunk",
                "required": true,
                "placeholder": "enter_chunk_placeholder"
              },
              "className": "textarea-lg"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2"
        }
      ]
    },
    "query_information": null,
    "static_page_content": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "chunk": "$schema_chunks.chunk",
            "created_at": true,
            "created_by": true,
            "table_name": "$schema_chunks.table_name"
          }
        ]
      },
      "table": ["schema_chunks"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "chunk": "$schema_chunks.chunk",
            "updated_at": true,
            "updated_by": true,
            "table_name": "$schema_chunks.table_name"
          }
        ]
      },
      "table": ["schema_chunks"],
      "action": ["update"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "schema_chunks": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "schema_chunks.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "schema_chunks.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["schema_chunks.id", "asc"]],
        "primary_table": "schema_chunks",
        "select_columns": [
          ["schema_chunks.table_name"],
          ["schema_chunks.chunk"]
        ]
      }
    }
  },
  {
    "name": "Background Process Form",
    "entity_name": "child_process_form",
    "entity_type": "form_builder_module",
    "primary_table": "child_processes",
    "form_information": {
      "model": {
        "child_process": {
          "name": "",
          "slug": "",
          "command": "",
          "status_id": 1,
          "description": ""
        }
      },
      "fields": [
        {
          "key": "child_process",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "form_label_name",
                "required": true,
                "placeholder": "form_label_name_placeholder"
              }
            },
            {
              "key": "slug",
              "type": "input",
              "props": {
                "label": "form_label_slug",
                "required": true,
                "placeholder": "form_label_slug_placeholder"
              }
            },
            {
              "key": "description",
              "type": "textarea",
              "props": {
                "rows": 2,
                "label": "form_label_description",
                "required": true,
                "placeholder": "form_label_description_placeholder"
              }
            },
            {
              "key": "command",
              "type": "textarea",
              "props": {
                "rows": 2,
                "label": "command",
                "required": true,
                "placeholder": "enter_command_placeholder"
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ],
      "options": {}
    },
    "query_information": null,
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$child_process.name",
            "slug": "$child_process.slug",
            "status_id": "$child_process.status_id",
            "created_at": true,
            "created_by": true,
            "description": "$child_process.description",
            "command": "$child_process.command"
          }
        ]
      },
      "table": ["child_processes"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$child_process.name",
            "slug": "$child_process.slug",
            "status_id": "$child_process.status_id",
            "updated_at": true,
            "updated_by": true,
            "description": "$child_process.description",
            "command": "$child_process.command"
          }
        ]
      },
      "table": ["child_processes"],
      "action": ["update"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "child_process": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "child_processes.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "child_processes.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["child_processes.id", "asc"]],
        "primary_table": "child_processes",
        "select_columns": [
          ["name"],
          ["description"],
          ["status_id"],
          ["slug"],
          ["command"]
        ]
      }
    }
  },
  {
    "name": "Update theme",
    "entity_name": "theme_add_edit_form",
    "entity_type": "form_builder_module",
    "primary_table": "themes",
    "form_information": {
      "model": {
        "themes": {
          "name": "",
          "status_id": "",
          "description": "",
          "reference_images": ""
        },
        "theme_line_items": []
      },
      "fields": [
        {
          "key": "themes",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "hooks": {
                "uniqueKey": "unique_theme_name"
              },
              "props": {
                "label": "name",
                "required": true,
                "placeholder": "enter_theme_name_placeholder"
              }
            },
            {
              "key": "description",
              "type": "textarea",
              "props": {
                "rows": 2,
                "label": "form_label_description",
                "placeholder": "form_label_description_placeholder"
              }
            },
            {
              "key": "reference_images",
              "type": "textarea",
              "props": {
                "rows": 2,
                "label": "reference_images",
                "placeholder": "enter_reference_images_placeholder"
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        },
        {
          "template": "<h2 class='text-lg font-bold text-gray-800 border-b pb-2 mb-4'>Theme Attributes</h2>"
        },
        {
          "key": "theme_line_items",
          "type": "repeat-table",
          "props": {
            "limit": 10
          },
          "wrappers": ["form-field"],
          "fieldArray": {
            "fieldGroup": [
              {
                "key": "attribute",
                "type": "select-from-db",
                "props": {
                  "label": "attribute",
                  "table": "theme_attributes",
                  "required": true,
                  "hideColumn": true,
                  "labelColumn": "attribute",
                  "placeholder": "select_attribute_placeholder",
                  "print_query": true,
                  "valueColumn": "attribute"
                }
              },
              {
                "key": "attribute_label",
                "type": "input",
                "props": {
                  "label": "Attribute",
                  "readonly": true
                },
                "className": "hidden"
              },
              {
                "key": "value",
                "type": "select-from-db",
                "hooks": {
                  "onInitFunc": "(field) => { const attribute = field.parent.get('attribute'); if(attribute){ attribute.formControl.valueChanges.subscribe(() => field.formControl.setValue(null)) } }"
                },
                "props": {
                  "label": "value",
                  "table": "theme_attributes",
                  "refresh": "this.field?.parent?.get('attribute')?.formControl",
                  "required": true,
                  "hideColumn": true,
                  "search_all": [
                    {
                      "value": "1",
                      "operator": "=",
                      "column_name": "status_id"
                    },
                    {
                      "value": "this.field?.parent?.get('attribute')?.formControl?.value || 0",
                      "operator": "=",
                      "column_name": "attribute"
                    }
                  ],
                  "uuidColumn": "uuid",
                  "labelColumn": "value",
                  "placeholder": "Select a value",
                  "print_query": true,
                  "selectFirst": true,
                  "valueColumn": "value",
                  "sort_columns": [["value", "ASC"]]
                },
                "className": "hidden"
              },
              {
                "key": "fieldvalue",
                "type": "color-picker",
                "hooks": {
                  "onInitFunc": "(field) => { const value = field.parent.get('value'); if(value){ value.formControl.valueChanges.subscribe((fieldvalue) => field.formControl.setValue(fieldvalue)) } }"
                },
                "props": {
                  "label": "value",
                  "required": true,
                  "placeholder": "enter_theme_value_placeholder"
                }
              },
              {
                "key": "value_label",
                "type": "input",
                "props": {
                  "label": "value",
                  "readonly": true,
                  "hideColumn": true
                },
                "className": "hidden"
              },
              {
                "key": "description",
                "type": "select-from-db",
                "props": {
                  "label": "form_label_description",
                  "table": "theme_attributes",
                  "refresh": "this.field?.parent?.get('attribute')?.formControl",
                  "required": false,
                  "hideColumn": true,
                  "search_all": [
                    {
                      "value": "1",
                      "operator": "=",
                      "column_name": "status_id"
                    },
                    {
                      "value": "this.field?.parent?.get('attribute')?.formControl?.value || 0",
                      "operator": "=",
                      "column_name": "attribute"
                    }
                  ],
                  "uuidColumn": "uuid",
                  "labelColumn": "description",
                  "placeholder": "Select a description",
                  "print_query": true,
                  "selectFirst": true,
                  "valueColumn": "description",
                  "sort_columns": [["description", "ASC"]]
                },
                "className": "hidden"
              },
              {
                "key": "fielddescription",
                "type": "input",
                "hooks": {
                  "onInitFunc": "(field) => { const desc = field.parent.get('description'); if(desc){ desc.formControl.valueChanges.subscribe((val) => field.formControl.setValue(val)) } }"
                },
                "props": {
                  "label": "form_label_description",
                  "placeholder": "enter_theme_description_placeholder"
                }
              },
              {
                "key": "description_label",
                "type": "input",
                "props": {
                  "label": "description",
                  "readonly": true,
                  "hideColumn": true
                },
                "className": "hidden"
              }
            ],
            "fieldGroupClassName": "grid grid-cols-1 gap-3 md:grid-cols-2"
          }
        }
      ]
    },
    "query_information": {
      "unique_theme_name": {
        "company_id": 1,
        "search_all": [
          {
            "value": "3",
            "operator": "!=",
            "column_name": "themes.status_id"
          },
          {
            "value": "this.label",
            "operator": "=",
            "column_name": "themes.name"
          },
          {
            "value": "$unique_id",
            "operator": "!=",
            "column_name": "themes.uuid"
          }
        ],
        "limit_range": 1000,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["themes.name", "asc"]],
        "primary_table": "themes",
        "select_columns": [
          ["id", "value"],
          ["name", "label"]
        ]
      }
    },
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$themes.name",
            "status_id": "$themes.status_id",
            "created_at": true,
            "created_by": true,
            "updated_at": true,
            "updated_by": true,
            "reference_images": "$themes.reference_images",
            "description": "$themes.description"
          }
        ],
        "table2": [
          {
            "value": "$theme_line_items.fieldvalue",
            "theme_id": "@table1.id",
            "attribute": "$theme_line_items.attribute",
            "created_at": true,
            "created_by": true,
            "updated_at": true,
            "updated_by": true,
            "description": "$theme_line_items.fielddescription"
          }
        ]
      },
      "table": ["themes", "theme_line_items"],
      "action": ["insert", "insert"],
      "print_query": true,
      "table_mapping": ["table1", "table2"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$themes.name",
            "status_id": "$themes.status_id",
            "updated_at": true,
            "updated_by": true,
            "reference_images": "$themes.reference_images",
            "description": "$themes.description"
          }
        ],
        "table3": [
          {
            "value": "$theme_line_items.fieldvalue",
            "theme_id": "@table1.id",
            "attribute": "$theme_line_items.attribute",
            "created_at": true,
            "created_by": true,
            "updated_at": true,
            "updated_by": true,
            "description": "$theme_line_items.fielddescription"
          }
        ]
      },
      "table": ["themes", "theme_line_items", "theme_line_items"],
      "action": ["update", "hard_delete", "insert"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ],
        "table2": [
          {
            "theme_id": "@table1.id"
          }
        ]
      },
      "print_query": true,
      "table_mapping": ["table1", "table2", "table3"]
    },
    "preset_query_information": {
      "themes": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "themes.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "themes.status_id"
          }
        ],
        "print_query": true,
        "sort_columns": [["themes.id", "asc"]],
        "primary_table": "themes",
        "select_columns": [
          ["name"],
          ["reference_images"],
          ["description"],
          ["status_id"]
        ]
      },
      "theme_line_items": {
        "includes": [
          {
            "join_type": "INNER",
            "table_name": "themes",
            "join_condition": "theme_line_items.theme_id = themes.id"
          }
        ],
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "themes.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "theme_line_items.status_id"
          }
        ],
        "limit_range": 15,
        "sort_columns": [["theme_line_items.id", "asc"]],
        "primary_table": "theme_line_items",
        "select_columns": [
          ["theme_line_items.attribute", "attribute"],
          ["theme_line_items.attribute", "attribute_label"],
          ["theme_line_items.value", "value_label"],
          ["theme_line_items.value", "value"],
          ["theme_line_items.value", "fieldvalue"],
          ["theme_line_items.description", "description_label"],
          ["theme_line_items.description", "description"],
          ["theme_line_items.description", "fielddescription"]
        ]
      }
    }
  },
  {
    "name": "Update theme attributes",
    "entity_name": "theme_attributes_add_edit_form",
    "entity_type": "form_builder_module",
    "primary_table": "theme_attributes",
    "form_information": {
      "model": {
        "theme_attributes": {
          "value": "",
          "attribute": "",
          "status_id": 1
        }
      },
      "fields": [
        {
          "key": "theme_attributes",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "attribute",
              "type": "input",
              "hooks": {
                "uniqueKey": "unique_theme_attribute_name"
              },
              "props": {
                "label": "attribute",
                "required": true,
                "placeholder": "enter_attribute"
              }
            },
            {
              "key": "value",
              "type": "color-picker",
              "props": {
                "label": "value",
                "required": true
              }
            },
            {
              "key": "description",
              "type": "textarea",
              "props": {
                "label": "form_label_description",
                "placeholder": "form_label_description_placeholder"
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ]
    },
    "query_information": {
      "unique_theme_attribute_name": {
        "company_id": 1,
        "search_all": [
          {
            "value": "3",
            "operator": "!=",
            "column_name": "theme_attributes.status_id"
          },
          {
            "value": "this.label",
            "operator": "=",
            "column_name": "theme_attributes.attribute"
          },
          {
            "value": "$unique_id",
            "operator": "!=",
            "column_name": "theme_attributes.uuid"
          }
        ],
        "limit_range": 1000,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["theme_attributes.attribute", "asc"]],
        "primary_table": "theme_attributes",
        "select_columns": [
          ["id", "value"],
          ["attribute", "label"]
        ]
      }
    },
    "add_query_information": {
      "data": {
        "table1": [
          {
            "value": "$theme_attributes.value",
            "attribute": "$theme_attributes.attribute",
            "status_id": "$theme_attributes.status_id",
            "created_at": true,
            "created_by": true,
            "updated_at": true,
            "updated_by": true,
            "description": "$theme_attributes.description"
          }
        ]
      },
      "table": ["theme_attributes"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "value": "$theme_attributes.value",
            "attribute": "$theme_attributes.attribute",
            "status_id": "$theme_attributes.status_id",
            "updated_at": true,
            "updated_by": true,
            "description": "$theme_attributes.description"
          }
        ]
      },
      "table": ["theme_attributes"],
      "action": ["update"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "theme_attributes": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "theme_attributes.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "theme_attributes.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["theme_attributes.id", "asc"]],
        "primary_table": "theme_attributes",
        "select_columns": [
          ["attribute"],
          ["status_id"],
          ["value"],
          ["description"]
        ]
      }
    }
  },
  {
    "name": "barcode_template_add_edit",
    "entity_name": "barcode_templates_add_edit_form",
    "entity_type": "form_builder_module",
    "primary_table": "barcode_templates",
    "is_admin_module": false,
    "associated_tables": null,
    "status_id": 1,
    "company_id": 1,
    "query_information": null,
    "form_information": {
      "model": {
        "barcode_templates": {
          "prefix": "",
          "zpl_code": "",
          "label_end": "",
          "status_id": 1,
          "page_width": 2,
          "label_start": "",
          "page_height": 1,
          "template_name": ""
        }
      },
      "fields": [
        {
          "key": "barcode_templates",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "form_label_template_name",
                "required": true,
                "placeholder": "barcode_template_name"
              }
            },
            {
              "key": "prefix",
              "type": "input",
              "props": {
                "label": "form_label_prefix",
                "required": true,
                "placeholder": "form_label_prefix_placeholder"
              }
            },
            {
              "key": "label_start",
              "type": "input",
              "props": {
                "label": "form_label_asset_from",
                "required": true,
                "placeholder": "enter_label_start_placeholder"
              }
            },
            {
              "key": "label_end",
              "type": "input",
              "props": {
                "label": "form_label_asset_to",
                "required": true,
                "placeholder": "enter_label_end_placeholder"
              }
            },
            {
              "key": "page_width",
              "type": "input",
              "props": {
                "type": "number",
                "label": "form_label_page_width_inch",
                "required": true,
                "placeholder": "enter_page_width_placeholder"
              }
            },
            {
              "key": "page_height",
              "type": "input",
              "props": {
                "type": "number",
                "label": "form_label_page_height_inch",
                "required": true,
                "placeholder": "enter_page_height_placeholder"
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-3"
        },
        {
          "key": "barcode_templates",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "type": "#status"
            },
            {
              "key": "zpl_code",
              "type": "textarea",
              "props": {
                "rows": 15,
                "label": "form_label_zpl_code",
                "required": true,
                "placeholder": "enter_zpl_code_placeholder"
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2"
        }
      ],
      "options": {}
    },
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$barcode_templates.name",
            "prefix": "$barcode_templates.prefix",
            "zpl_code": "$barcode_templates.zpl_code",
            "label_end": "$barcode_templates.label_end",
            "status_id": "$barcode_templates.status_id",
            "created_by": true,
            "page_width": "$barcode_templates.page_width",
            "label_start": "$barcode_templates.label_start",
            "page_height": "$barcode_templates.page_height"
          }
        ]
      },
      "table": ["barcode_templates"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$barcode_templates.name",
            "prefix": "$barcode_templates.prefix",
            "zpl_code": "$barcode_templates.zpl_code",
            "label_end": "$barcode_templates.label_end",
            "status_id": "$barcode_templates.status_id",
            "page_width": "$barcode_templates.page_width",
            "updated_by": true,
            "label_start": "$barcode_templates.label_start",
            "page_height": "$barcode_templates.page_height"
          }
        ]
      },
      "table": ["barcode_templates"],
      "action": ["update"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "barcode_templates": {
        "includes": [
          {
            "join_type": "INNER",
            "table_name": "statuses",
            "join_condition": "barcode_templates.status_id = statuses.id"
          }
        ],
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "barcode_templates.uuid"
          }
        ],
        "limit_range": 1,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["barcode_templates.id", "asc"]],
        "primary_table": "barcode_templates",
        "select_columns": [
          ["barcode_templates.prefix", "prefix"],
          ["barcode_templates.label_start", "label_start"],
          ["barcode_templates.label_end", "label_end"],
          ["barcode_templates.name", "name"],
          ["barcode_templates.zpl_code", "zpl_code"],
          ["barcode_templates.page_width", "page_width"],
          ["barcode_templates.page_height", "page_height"],
          ["statuses.name", "status_name"],
          ["barcode_templates.status_id", "status_id"]
        ]
      }
    },
    "static_page_content": null
  },
  {
    "name": "barcode_template_details",
    "entity_name": "barcode_templates_details_form",
    "entity_type": "static_page_builder_module",
    "primary_table": "barcode_templates",
    "query_information": {
      "includes": [
        {
          "join_type": "INNER",
          "table_name": "statuses",
          "join_condition": "barcode_templates.status_id = statuses.id"
        }
      ],
      "company_id": 1,
      "search_all": [
        {
          "value": "$unique_id",
          "operator": "=",
          "column_name": "barcode_templates.uuid"
        },
        {
          "value": "3",
          "operator": "!=",
          "column_name": "barcode_templates.status_id"
        }
      ],
      "limit_range": 1,
      "print_query": true,
      "start_index": 0,
      "sort_columns": [["barcode_templates.id", "asc"]],
      "primary_table": "barcode_templates",
      "select_columns": [
        ["barcode_templates.prefix", "prefix"],
        ["barcode_templates.label_start", "label_start"],
        ["barcode_templates.label_end", "label_end"],
        ["barcode_templates.name", "template_name"],
        ["barcode_templates.zpl_code", "zpl_code"],
        ["statuses.name", "status"]
      ]
    },
    "form_information": null,
    "add_query_information": null,
    "edit_query_information": null,
    "preset_query_information": null,
    "static_page_content": "<table>\n  <tbody>\n    <tr>\n      <td><strong>Barcode Template Name:</strong> {{ result_data.template_name }}</td>\n      <td><strong>Prefix:</strong> {{ result_data.prefix }}</td>\n      <td><strong>Label Start:</strong> {{ result_data.label_start }}</td>\n    </tr>\n    <tr>\n      <td><strong>Label End:</strong> {{ result_data.label_end }}</td>\n      <td><strong>ZPL Code:</strong> {{ result_data.zpl_code }}</td>\n      <td><strong>Status:</strong> {{ result_data.status }}</td>\n    </tr>\n  </tbody>\n</table>"
  },
  {
    "name": "Cron Setting Add Edit Form",
    "entity_name": "cron_setting_form",
    "entity_type": "form_builder_module",
    "form_information": {
      "model": {
        "scheduled_jobs": {
          "timing": "",
          "cron_url": "",
          "description": "",
          "concat_base_url": ""
        }
      },
      "fields": [
        {
          "key": "scheduled_jobs",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "timing",
              "type": "input",
              "props": {
                "label": "form_label_timing",
                "required": true,
                "placeholder": "form_label_timing_placeholder"
              }
            },
            {
              "key": "cron_url",
              "type": "input",
              "props": {
                "label": "form_label_cron_url",
                "required": true,
                "placeholder": "form_label_cron_url_placeholder"
              }
            },
            {
              "key": "concat_base_url",
              "type": "checkbox",
              "props": {
                "rows": 2,
                "label": "form_label_concat_base_url",
                "required": false,
                "placeholder": "form_label_concat_base_url_placeholder"
              }
            },
            {
              "key": "description",
              "type": "textarea",
              "props": {
                "rows": 2,
                "label": "form_label_description",
                "required": true,
                "placeholder": "form_label_description_placeholder"
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-1"
        }
      ],
      "options": {}
    },
    "query_information": {},
    "add_query_information": {
      "data": {
        "table1": [
          {
            "timing": "$scheduled_jobs.timing",
            "cron_url": "$scheduled_jobs.cron_url",
            "description": "$scheduled_jobs.description",
            "concat_base_url": "$scheduled_jobs.concat_base_url"
          }
        ]
      },
      "table": ["scheduled_jobs"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "timing": "$scheduled_jobs.timing",
            "cron_url": "$scheduled_jobs.cron_url",
            "description": "$scheduled_jobs.description",
            "concat_base_url": "$scheduled_jobs.concat_base_url"
          }
        ]
      },
      "table": ["scheduled_jobs"],
      "action": ["update"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "scheduled_jobs": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "scheduled_jobs.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "scheduled_jobs.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["scheduled_jobs.id", "asc"]],
        "primary_table": "scheduled_jobs",
        "select_columns": [
          ["timing"],
          ["cron_url"],
          ["concat_base_url"],
          ["description"]
        ]
      }
    }
  },
  {
    "name": "Form Notification Process",
    "entity_name": "form_notification_process",
    "entity_type": "form_builder_module",
    "primary_table": "notification_template_process",
    "form_information": {
      "model": {
        "notification_template_process": {
          "name": "",
          "slug": "",
          "notification_type": "email",
          "query_information": ""
        },
        "notification_template_process_tags_mapping": {
          "notification_template_tag_id": []
        }
      },
      "fields": [
        {
          "key": "notification_template_process",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "form_label_name",
                "required": true,
                "placeholder": "form_label_name_placeholder"
              }
            },
            {
              "key": "slug",
              "type": "input",
              "props": {
                "label": "form_label_slug",
                "required": true,
                "placeholder": "form_label_slug_placeholder"
              }
            },
            {
              "key": "notification_type",
              "type": "select",
              "props": {
                "label": "notification_type",
                "options": [
                  {
                    "label": "Email",
                    "value": "email"
                  },
                  {
                    "label": "SMS",
                    "value": "sms"
                  },
                  {
                    "label": "Whatsapp",
                    "value": "whatsapp"
                  }
                ]
              }
            },
            {
              "key": "query_information",
              "type": "vs-code",
              "props": {
                "rows": 6,
                "label": "form_label_query_information",
                "language": "json",
                "required": false,
                "placeholder": "form_label_query_information_placeholder"
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-3"
        },
        {
          "key": "notification_template_process_tags_mapping",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "notification_template_tag_id",
              "type": "select-from-db",
              "templateOptions": {
                "label": "notification_template_tag",
                "table": "notification_template_tags",
                "multiple": true,
                "required": true,
                "labelColumn": "name",
                "placeholder": "please_select",
                "valueColumn": "id"
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ],
      "options": {}
    },
    "query_information": {},
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$notification_template_process.name",
            "slug": "$notification_template_process.slug",
            "notification_type": "$notification_template_process.notification_type",
            "query_information": "$notification_template_process.query_information"
          }
        ],
        "table2": [
          {
            "notification_template_tag_id": "$notification_template_process_tags_mapping.notification_template_tag_id",
            "notification_template_process_id": "@table1.id"
          }
        ]
      },
      "table": [
        "notification_template_process",
        "notification_template_process_tags_mapping"
      ],
      "action": ["insert", "insert"],
      "table_mapping": ["table1", "table2"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$notification_template_process.name",
            "slug": "$notification_template_process.slug",
            "notification_type": "$notification_template_process.notification_type",
            "query_information": "$notification_template_process.query_information"
          }
        ],
        "table3": [
          {
            "notification_template_tag_id": "$notification_template_process_tags_mapping.notification_template_tag_id",
            "notification_template_process_id": "@table1.id"
          }
        ]
      },
      "table": [
        "notification_template_process",
        "notification_template_process_tags_mapping",
        "notification_template_process_tags_mapping"
      ],
      "action": ["update", "hard_delete", "insert"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ],
        "table2": [
          {
            "notification_template_process_id": "@table1.id"
          }
        ]
      },
      "table_mapping": ["table1", "table2", "table3"]
    },
    "preset_query_information": {
      "notification_template_process": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "notification_template_process.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "notification_template_process.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["notification_template_process.id", "asc"]],
        "primary_table": "notification_template_process",
        "select_columns": [
          ["name"],
          ["status_id"],
          ["slug"],
          ["query_information"],
          ["notification_type"]
        ]
      },
      "notification_template_process_tags_mapping": {
        "group_by": [
          "notification_template_process_tags_mapping.notification_template_process_id"
        ],
        "includes": [
          {
            "join_type": "INNER",
            "table_name": "notification_template_process",
            "join_condition": "notification_template_process.id = notification_template_process_tags_mapping.notification_template_process_id"
          }
        ],
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "notification_template_process.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "notification_template_process.status_id"
          }
        ],
        "limit_range": 15,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [
          [
            "notification_template_process_tags_mapping.notification_template_process_id",
            "desc"
          ]
        ],
        "primary_table": "notification_template_process_tags_mapping",
        "select_columns": [
          [
            "json_agg(notification_template_process_tags_mapping.notification_template_tag_id::int)",
            "notification_template_tag_id"
          ]
        ]
      }
    }
  },
  {
    "name": "User Add/Edit Example Form",
    "entity_name": "user_example_form",
    "entity_type": "form_builder_module",
    "primary_table": "users",
    "form_information": {
      "model": {
        "users": {
          "role": "admin",
          "email": null,
          "role_id": null,
          "username": null,
          "status_id": 1,
          "is_drafted": false,
          "process_status": "submitted",
          "allow_login_web": 0,
          "allow_login_mobile": 0
        },
        "user_roles": {
          "role_id": []
        },
        "user_details": {
          "dob": null,
          "code": null,
          "gender": "male",
          "address": null,
          "last_name": null,
          "first_name": null,
          "profile_pic": null,
          "country_code": null,
          "phone_number": null,
          "department_id": null,
          "designation_id": null
        }
      },
      "fields": [
        {
          "key": "users",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "username",
              "type": "input",
              "props": {
                "label": "form_label_name",
                "required": true,
                "placeholder": "form_label_name_placeholder"
              }
            },
            {
              "key": "email",
              "type": "input",
              "props": {
                "type": "email",
                "label": "email",
                "required": true,
                "placeholder": "email_placeholder"
              }
            },
            {
              "type": "#status"
            },
            {
              "key": "is_drafted",
              "type": "input",
              "props": {
                "type": "hidden"
              },
              "className": "hidden"
            },
            {
              "key": "process_status",
              "type": "input",
              "props": {
                "type": "hidden"
              },
              "className": "hidden"
            },
            {
              "key": "allow_login_web",
              "type": "radio",
              "props": {
                "label": "allow_login_web",
                "options": [
                  {
                    "label": "Yes",
                    "value": 1
                  },
                  {
                    "label": "No",
                    "value": 0
                  }
                ],
                "required": true
              }
            },
            {
              "key": "allow_login_mobile",
              "type": "radio",
              "props": {
                "label": "allow_login_mobile",
                "options": [
                  {
                    "label": "Yes",
                    "value": 1
                  },
                  {
                    "label": "No",
                    "value": 0
                  }
                ],
                "required": true
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-3"
        },
        {
          "key": "user_details",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "code",
              "type": "input",
              "props": {
                "label": "code",
                "required": true,
                "placeholder": "code_placeholder"
              }
            },
            {
              "key": "first_name",
              "type": "input",
              "props": {
                "label": "profile_form_first_name",
                "required": true,
                "placeholder": "profile_form_first_name_placeholder"
              }
            },
            {
              "key": "last_name",
              "type": "input",
              "props": {
                "label": "profile_form_last_name",
                "placeholder": "profile_form_last_name_placeholder"
              }
            },
            {
              "key": "department_id",
              "type": "select-from-db",
              "templateOptions": {
                "label": "department",
                "table": "departments",
                "search_all": [
                  {
                    "value": "1",
                    "operator": "=",
                    "column_name": "departments.status_id"
                  }
                ],
                "labelColumn": "name",
                "placeholder": "please_select",
                "valueColumn": "id",
                "sort_columns": [["departments.name", "asc"]]
              },
              "attached_policies": ["filterdepartmentstartswithe"]
            },
            {
              "key": "designation_id",
              "type": "select-from-db",
              "templateOptions": {
                "label": "designation",
                "table": "designations",
                "search_all": [
                  {
                    "value": "1",
                    "operator": "=",
                    "column_name": "designations.status_id"
                  }
                ],
                "labelColumn": "name",
                "placeholder": "please_select",
                "valueColumn": "id",
                "sort_columns": [["designations.name", "asc"]]
              }
            },
            {
              "key": "dob",
              "type": "input",
              "props": {
                "type": "date",
                "label": "profile_form_dob",
                "placeholder": "profile_form_dob_placeholder"
              }
            },
            {
              "key": "country_code",
              "type": "select-from-db",
              "templateOptions": {
                "label": "country_code",
                "table": "phone_country_codes",
                "search_all": [
                  {
                    "value": "1",
                    "operator": "=",
                    "column_name": "phone_country_codes.status_id"
                  }
                ],
                "labelColumn": "CONCAT(country_code, ' - ', country_name , '(', iso_code ,')')",
                "placeholder": "please_select",
                "print_query": true,
                "valueColumn": "country_code",
                "sort_columns": [["phone_country_codes.id", "asc"]]
              }
            },
            {
              "key": "phone_number",
              "type": "input",
              "props": {
                "label": "profile_form_phnum",
                "placeholder": "profile_form_phnum_placeholder"
              }
            },
            {
              "key": "gender",
              "type": "radio",
              "props": {
                "label": "profile_form_gender",
                "options": [
                  {
                    "label": "Male",
                    "value": "male"
                  },
                  {
                    "label": "Female",
                    "value": "female"
                  },
                  {
                    "label": "Others",
                    "value": "others"
                  }
                ],
                "required": true
              }
            },
            {
              "key": "address",
              "type": "textarea",
              "props": {
                "rows": 3,
                "label": "profile_form_address",
                "placeholder": "profile_form_address_placeholder"
              }
            },
            {
              "key": "profile_pic",
              "type": "input",
              "props": {
                "type": "hidden"
              },
              "className": "hidden"
            },
            {
              "key": "profile_pic_file",
              "type": "file",
              "props": {
                "label": "profile_picture",
                "accept": "png",
                "max_size": "1mb"
              }
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-3"
        },
        {
          "key": "user_roles",
          "modal": {
            "title": "",
            "width": "400px",
            "showClose": true,
            "entityName": "role_form"
          },
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "role_id",
              "type": "select-from-db",
              "enable_edit": true,
              "templateOptions": {
                "label": "role",
                "table": "roles",
                "multiple": true,
                "required": true,
                "enable_edit": true,
                "labelColumn": "CONCAT(name,'___',created_at)",
                "placeholder": "please_select",
                "valueColumn": "id",
                "additionalColumns": [["description", "description"]]
              },
              "attached_policies": ["filterrolesstartswiths"]
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-3"
        }
      ],
      "options": {}
    },
    "query_information": {},
    "add_query_information": {
      "data": {
        "table1": [
          {
            "role": "$users.role",
            "email": "$users.email",
            "username": "$users.username",
            "status_id": "$users.status_id",
            "created_at": true,
            "created_by": true,
            "is_drafted": "$users.is_drafted",
            "updated_at": true,
            "updated_by": true,
            "allow_login_web": "$users.allow_login_web",
            "allow_login_mobile": "$users.allow_login_mobile"
          }
        ],
        "table2": [
          {
            "dob": "[#[CASE WHEN COALESCE($user_details.dob, '') <> '' THEN ($user_details.dob)::timestamptz ELSE NULL END]#]",
            "code": "$user_details.code",
            "gender": "$user_details.gender",
            "address": "$user_details.address",
            "user_id": "@table1.id",
            "last_name": "$user_details.last_name",
            "created_at": true,
            "created_by": true,
            "first_name": "$user_details.first_name",
            "updated_at": true,
            "updated_by": true,
            "profile_pic": "$user_details.profile_pic",
            "country_code": "$user_details.country_code",
            "phone_number": "$user_details.phone_number",
            "department_id": "$user_details.department_id",
            "designation_id": "$user_details.designation_id"
          }
        ],
        "table3": [
          {
            "role_id": "$user_roles.role_id",
            "user_id": "@table1.id"
          }
        ],
        "table4": [
          {
            "user_id": "@table1.id",
            "unique_id": "@table1.id",
            "created_at": true,
            "created_by": true,
            "prefill_data": "$model",
            "notification_template_process_slug": "user_created"
          }
        ],
        "table5": [
          {
            "details": "name_starts_with_mukesh",
            "user_id": "$user_id",
            "screen_id": "@table1.uuid",
            "unique_id": "@table1.id",
            "sequence_no": "{{{ get_sequence_no('approval_sequence', true, false) }}}",
            "prefill_data": "$model",
            "primary_table": "users",
            "approval_workflow_slug": "name_starts_with_mukesh"
          }
        ]
      },
      "table": [
        "users",
        "user_details",
        "user_roles",
        "notification_process_jobs",
        "approval_process_jobs"
      ],
      "action": ["insert", "insert", "insert", "insert", "insert"],
      "table_mapping": ["table1", "table2", "table3", "table4", "table5"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "email": "$users.email",
            "username": "$users.username",
            "status_id": "$users.status_id",
            "is_drafted": "$users.is_drafted",
            "updated_at": true,
            "updated_by": true,
            "allow_login_web": "$users.allow_login_web",
            "allow_login_mobile": "$users.allow_login_mobile"
          }
        ],
        "table2": [
          {
            "dob": "[#[CASE WHEN COALESCE($user_details.dob, '') <> '' THEN ($user_details.dob)::timestamptz ELSE NULL END]#]",
            "code": "$user_details.code",
            "gender": "$user_details.gender",
            "address": "$user_details.address",
            "last_name": "$user_details.last_name",
            "first_name": "$user_details.first_name",
            "updated_at": true,
            "updated_by": true,
            "profile_pic": "$user_details.profile_pic",
            "country_code": "$user_details.country_code",
            "phone_number": "$user_details.phone_number",
            "department_id": "$user_details.department_id",
            "designation_id": "$user_details.designation_id"
          }
        ],
        "table4": [
          {
            "role_id": "$user_roles.role_id",
            "user_id": "@table1.id"
          }
        ],
        "table5": [
          {
            "details": "name_starts_with_mukesh",
            "user_id": "$user_id",
            "screen_id": "@table1.uuid",
            "unique_id": "@table1.id",
            "sequence_no": "{{{ get_sequence_no('approval_sequence', true, false) }}}",
            "prefill_data": "$model",
            "primary_table": "users",
            "approval_workflow_slug": "name_starts_with_mukesh"
          }
        ]
      },
      "table": [
        "users",
        "user_details",
        "user_roles",
        "user_roles",
        "approval_process_jobs"
      ],
      "action": ["update", "update", "hard_delete", "insert", "insert"],
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ],
        "table2": [
          {
            "user_id": "@table1.id"
          }
        ],
        "table3": [
          {
            "user_id": "@table1.id"
          }
        ]
      },
      "table_mapping": ["table1", "table2", "table3", "table4", "table5"]
    },
    "preset_query_information": {
      "users": {
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "users.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "users.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": true,
        "start_index": 0,
        "sort_columns": [["users.id", "asc"]],
        "primary_table": "users",
        "select_columns": [
          ["email"],
          ["username"],
          ["role"],
          ["status_id"],
          ["process_status"],
          ["is_drafted"],
          ["users.allow_login_mobile"],
          ["users.allow_login_web"]
        ]
      },
      "user_roles": {
        "group_by": ["user_roles.user_id"],
        "includes": [
          {
            "join_type": "INNER",
            "table_name": "users",
            "join_condition": "users.id = user_roles.user_id"
          }
        ],
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "users.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "users.status_id"
          }
        ],
        "limit_range": 15,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["user_roles.user_id", "desc"]],
        "primary_table": "user_roles",
        "select_columns": [["json_agg(user_roles.role_id::int)", "role_id"]]
      },
      "user_details": {
        "includes": [
          {
            "join_type": "INNER",
            "table_name": "user_details",
            "join_condition": "users.id = user_details.user_id"
          }
        ],
        "company_id": 1,
        "search_all": [
          {
            "value": "$unique_id",
            "operator": "=",
            "column_name": "users.uuid"
          },
          {
            "value": "3",
            "operator": "!=",
            "column_name": "users.status_id"
          }
        ],
        "limit_range": 1,
        "print_query": true,
        "start_index": 0,
        "sort_columns": [["users.id", "asc"]],
        "primary_table": "users",
        "select_columns": [
          ["user_details.code"],
          ["user_details.first_name"],
          ["user_details.last_name"],
          ["user_details.designation_id"],
          ["user_details.department_id"],
          ["user_details.dob"],
          ["user_details.phone_number"],
          ["user_details.country_code"],
          ["user_details.gender"],
          ["user_details.user_time_zone"],
          ["user_details.address"],
          ["user_details.profile_pic"]
        ]
      }
    }
  },
  {
    "name": "Tree builder example ADD / EDIT form",
    "entity_name": "tree_builder_example_form",
    "entity_type": "form_builder_module",
    "primary_table": "tree_builder_example",
    "form_information": {
      "model": {
        "tree_builder_example": {
          "name": "",
          "code": "",
          "status_id": 1,
          "parent_id": null
        }
      },
      "fields": [
        {
          "key": "tree_builder_example",
          "wrappers": ["form-field"],
          "fieldGroup": [
            {
              "key": "name",
              "type": "input",
              "props": {
                "label": "form_label_name",
                "required": true,
                "placeholder": "enter_name_placeholder"
              }
            },
            {
              "key": "code",
              "type": "input",
              "hooks": {
                "uniqueKey": "unique_code"
              },
              "props": {
                "label": "form_label_code",
                "required": true,
                "placeholder": "enter_code_placeholder"
              }
            },
            {
              "key": "parent_id",
              "type": "select-from-db",
              "templateOptions": {
                "label": "parent",
                "table": "tree_builder_example",
                "search_all": [
                  {
                    "value": "1",
                    "operator": "=",
                    "column_name": "tree_builder_example.status_id"
                  }
                ],
                "labelColumn": "code",
                "placeholder": "please_select",
                "valueColumn": "id",
                "sort_columns": [["tree_builder_example.code", "asc"]]
              }
            },
            {
              "type": "#status"
            }
          ],
          "fieldGroupClassName": "grid grid-cols-1 gap-2 md:grid-cols-2"
        }
      ],
      "options": {}
    },
    "query_information": {
      "unique_code": {
        "company_id": 1,
        "search_all": [
          {
            "value": "3",
            "operator": "!=",
            "column_name": "tree_builder_example.status_id"
          },
          {
            "value": "this.label",
            "operator": "=",
            "column_name": "tree_builder_example.code"
          },
          {
            "value": "$unique_id",
            "operator": "!=",
            "column_name": "tree_builder_example.uuid"
          }
        ],
        "limit_range": 1000,
        "print_query": false,
        "start_index": 0,
        "sort_columns": [["tree_builder_example.code", "asc"]],
        "primary_table": "tree_builder_example",
        "select_columns": [
          ["id", "value"],
          ["code", "label"]
        ]
      }
    },
    "add_query_information": {
      "data": {
        "table1": [
          {
            "name": "$tree_builder_example.name",
            "code": "$tree_builder_example.code",
            "status_id": "$tree_builder_example.status_id",
            "parent_id": "$tree_builder_example.parent_id",
            "created_at": true,
            "created_by": true
          }
        ]
      },
      "table": ["tree_builder_example"],
      "action": ["insert"],
      "table_mapping": ["table1"]
    },
    "edit_query_information": {
      "data": {
        "table1": [
          {
            "name": "$tree_builder_example.name",
            "code": "$tree_builder_example.code",
            "status_id": "$tree_builder_example.status_id",
            "parent_id": "$tree_builder_example.parent_id",
            "updated_at": true,
            "updated_by": true
          }
        ]
      },
      "conditions": {
        "table1": [
          {
            "uuid": "$unique_id"
          }
        ]
      },
      "table": ["tree_builder_example"],
      "action": ["update"],
      "table_mapping": ["table1"]
    },
    "preset_query_information": {
      "tree_builder_example": {
        "company_id": 1,
        "print_query": true,
        "primary_table": "tree_builder_example",
        "start_index": 0,
        "limit_range": 1,
        "sort_columns": [["tree_builder_example.id", "asc"]],
        "select_columns": [["name"], ["code"], ["status_id"], ["parent_id"]],
        "search_all": [
          {
            "column_name": "tree_builder_example.uuid",
            "operator": "=",
            "value": "$unique_id"
          },
          {
            "column_name": "tree_builder_example.status_id",
            "operator": "!=",
            "value": "3"
          }
        ]
      }
    }
  }
]
