[
  {
    "_id": "aaa000000000000000000001",
    "guid": "01MONGO_CATALOG_CATEGORIES",
    "instanceName": "mongodb",
    "databaseName": "catalog_db",
    "collectionName": "Categories",
    "properties": {
      "_id": "objectId",
      "name": {
        "__type": "string",
        "validations": {
          "required": true,
          "unique": true,
          "minLength": 2,
          "maxLength": 100
        }
      },
      "slug": {
        "__type": "string",
        "validations": {
          "required": true,
          "unique": true
        }
      },
      "parent_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Categories"
      },
      "description": {
        "__type": "string"
      },
      "image": {
        "url": {
          "__type": "string"
        },
        "alt": {
          "__type": "string"
        },
        "width": {
          "__type": "number"
        },
        "height": {
          "__type": "number"
        }
      },
      "seo": {
        "meta_title": {
          "__type": "string",
          "validations": {
            "maxLength": 70
          }
        },
        "meta_description": {
          "__type": "string",
          "validations": {
            "maxLength": 160
          }
        },
        "keywords": {
          "__type": "string"
        }
      },
      "is_active": {
        "__type": "boolean",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return true; }",
              "hash": "111111111"
            }
          }
        }
      },
      "sort_order": {
        "__type": "number"
      },
      "products": [
        {
          "__type": "objectId",
          "isVirtualField": true,
          "instance": "mongodb",
          "database": "catalog_db",
          "collection": "Products",
          "s_columnVirtualLinker": "_id",
          "t_columnVirtualLinker": "category_id"
        }
      ],
      "addressList": [
        {
          "url": {
            "__type": "string"
          },
          "alt": {
            "__type": "string"
          },
          "width": {
            "__type": "number"
          },
          "height": {
            "__type": "number"
          }
        }
      ],
      "createdAt": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "222222222"
            }
          }
        }
      },
      "updatedAt": {
        "__type": "date",
        "conversions": {
          "conversionFun": {
            "code": "(val, data)=>{ return new Date(); }",
            "hash": "333333333"
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "aaa000000000000000000002",
    "guid": "01MONGO_CATALOG_PRODUCTS",
    "instanceName": "mongodb",
    "databaseName": "catalog_db",
    "collectionName": "Products",
    "properties": {
      "_id": "objectId",
      "sku": {
        "__type": "string",
        "validations": {
          "required": true,
          "unique": true,
          "minLength": 3,
          "maxLength": 50
        }
      },
      "name": {
        "__type": "string",
        "validations": {
          "required": true,
          "minLength": 2,
          "maxLength": 200
        }
      },
      "category_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Categories"
      },
      "supplier_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Suppliers"
      },
      "description": {
        "__type": "string"
      },
      "pricing": {
        "unit_price": {
          "__type": "number",
          "validations": {
            "required": true,
            "min": 0
          }
        },
        "cost_price": {
          "__type": "number",
          "validations": {
            "min": 0
          }
        },
        "currency": {
          "__type": "string",
          "validations": {
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "INR"
            ]
          }
        },
        "discount_percent": {
          "__type": "number",
          "validations": {
            "min": 0,
            "max": 100
          }
        }
      },
      "physical": {
        "weight_kg": {
          "__type": "number"
        },
        "dimensions": {
          "length_cm": {
            "__type": "number"
          },
          "width_cm": {
            "__type": "number"
          },
          "height_cm": {
            "__type": "number"
          }
        }
      },
      "unit_of_measure": {
        "__type": "string",
        "validations": {
          "required": true,
          "enum": [
            "piece",
            "kg",
            "litre",
            "meter",
            "box",
            "pack"
          ]
        }
      },
      "tags": {
        "__type": "string"
      },
      "images": [
        {
          "url": {
            "__type": "string",
            "validations": { "required": true }
          },
          "alt": {
            "__type": "string"
          },
          "is_primary": {
            "__type": "boolean"
          },
          "sort_order": {
            "__type": "number"
          }
        }
      ],
      "is_active": {
        "__type": "boolean",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return true; }",
              "hash": "444444444"
            }
          }
        }
      },
      "category": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Categories",
        "s_columnVirtualLinker": "category_id"
      },
      "supplier": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Suppliers",
        "s_columnVirtualLinker": "supplier_id"
      },
      "createdAt": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "555555555"
            }
          }
        }
      },
      "updatedAt": {
        "__type": "date",
        "conversions": {
          "conversionFun": {
            "code": "(val, data)=>{ return new Date(); }",
            "hash": "666666666"
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "aaa000000000000000000003",
    "guid": "01MONGO_CATALOG_SUPPLIERS",
    "instanceName": "mongodb",
    "databaseName": "catalog_db",
    "collectionName": "Suppliers",
    "properties": {
      "_id": "objectId",
      "name": {
        "__type": "string",
        "validations": {
          "required": true,
          "minLength": 2,
          "maxLength": 150
        }
      },
      "code": {
        "__type": "string",
        "validations": {
          "required": true,
          "unique": true
        }
      },
      "contact": {
        "email": {
          "__type": "string",
          "validations": {
            "required": true,
            "email": true
          }
        },
        "phone": {
          "__type": "string"
        },
        "website": {
          "__type": "string"
        }
      },
      "address": {
        "street": {
          "__type": "string"
        },
        "city": {
          "__type": "string"
        },
        "state": {
          "__type": "string"
        },
        "zip": {
          "__type": "string"
        },
        "country": {
          "__type": "string"
        }
      },
      "currency": {
        "__type": "string",
        "validations": {
          "enum": [
            "USD",
            "EUR",
            "GBP",
            "INR",
            "JPY",
            "CAD",
            "AUD"
          ]
        }
      },
      "payment_terms_days": {
        "__type": "number"
      },
      "rating": {
        "__type": "number",
        "validations": {
          "min": 0,
          "max": 5
        }
      },
      "is_active": {
        "__type": "boolean",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return true; }",
              "hash": "777777771"
            }
          }
        }
      },
      "products": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Products",
        "s_columnVirtualLinker": "_id",
        "t_columnVirtualLinker": "supplier_id"
      },
      "createdAt": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "777777772"
            }
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "aaa000000000000000000004",
    "guid": "01MONGO_USERS_USERS",
    "instanceName": "mongodb",
    "databaseName": "users_db",
    "collectionName": "Users",
    "properties": {
      "_id": "objectId",
      "email": {
        "__type": "string",
        "validations": {
          "required": true,
          "unique": true,
          "email": true
        }
      },
      "password_hash": {
        "__type": "string",
        "validations": {
          "required": true
        },
        "conversions": {
          "hashing": true
        }
      },
      "profile": {
        "first_name": {
          "__type": "string",
          "validations": {
            "required": true
          }
        },
        "last_name": {
          "__type": "string",
          "validations": {
            "required": true
          }
        },
        "phone": {
          "__type": "string"
        },
        "avatar_url": {
          "__type": "string"
        },
        "date_of_birth": {
          "__type": "date"
        }
      },
      "addressList": [
        {
          "type": {
            "__type": "string",
            "validations": { "enum": ["home", "work", "billing", "shipping"] }
          },
          "line1": {
            "__type": "string"
          },
          "line2": {
            "__type": "string"
          },
          "city": {
            "__type": "string"
          },
          "state": {
            "__type": "string"
          },
          "zip": {
            "__type": "string"
          },
          "country": {
            "__type": "string"
          },
          "is_default": {
            "__type": "boolean"
          }
        }
      ],
      "role_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Roles"
      },
      "status": {
        "__type": "string",
        "validations": {
          "required": true,
          "enum": [
            "Active",
            "Inactive",
            "Suspended",
            "Pending"
          ]
        }
      },
      "last_login": {
        "__type": "date"
      },
      "role": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Roles",
        "s_columnVirtualLinker": "role_id"
      },
      "sessions": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Sessions",
        "s_columnVirtualLinker": "_id",
        "t_columnVirtualLinker": "user_id"
      },
      "createdAt": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "888888882"
            }
          }
        }
      },
      "updatedAt": {
        "__type": "date",
        "conversions": {
          "conversionFun": {
            "code": "(val, data)=>{ return new Date(); }",
            "hash": "888888883"
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "aaa000000000000000000005",
    "guid": "01MONGO_USERS_ROLES",
    "instanceName": "mongodb",
    "databaseName": "users_db",
    "collectionName": "Roles",
    "properties": {
      "_id": "objectId",
      "name": {
        "__type": "string",
        "validations": {
          "required": true,
          "unique": true
        }
      },
      "code": {
        "__type": "string",
        "validations": {
          "required": true,
          "unique": true
        }
      },
      "permissions": {
        "can_read": {
          "__type": "boolean"
        },
        "can_write": {
          "__type": "boolean"
        },
        "can_delete": {
          "__type": "boolean"
        },
        "can_export": {
          "__type": "boolean"
        },
        "can_manage_users": {
          "__type": "boolean"
        }
      },
      "description": {
        "__type": "string"
      },
      "is_system": {
        "__type": "boolean"
      },
      "users": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users",
        "s_columnVirtualLinker": "_id",
        "t_columnVirtualLinker": "role_id"
      },
      "createdAt": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "999999991"
            }
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "aaa000000000000000000006",
    "guid": "01MONGO_USERS_SESSIONS",
    "instanceName": "mongodb",
    "databaseName": "users_db",
    "collectionName": "Sessions",
    "properties": {
      "_id": "objectId",
      "user_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users"
      },
      "token": {
        "__type": "string",
        "validations": {
          "required": true,
          "unique": true
        }
      },
      "device": {
        "ip_address": {
          "__type": "string"
        },
        "user_agent": {
          "__type": "string"
        },
        "platform": {
          "__type": "string"
        }
      },
      "expires_at": {
        "__type": "date",
        "validations": {
          "required": true
        }
      },
      "is_revoked": {
        "__type": "boolean",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return false; }",
              "hash": "101010101"
            }
          }
        }
      },
      "user": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users",
        "s_columnVirtualLinker": "user_id"
      },
      "createdAt": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "101010102"
            }
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "bbb000000000000000000001",
    "guid": "01MYSQL_INVENTORY_WAREHOUSES",
    "instanceName": "mysql",
    "databaseName": "inventory_db",
    "collectionName": "Warehouses",
    "properties": {
      "_id": {
        "__type": "number",
        "isPrimaryKey": true,
        "isAutoIncrementByDB": true
      },
      "code": {
        "__type": "string",
        "validations": {
          "required": true,
          "unique": true,
          "maxLength": 20
        }
      },
      "name": {
        "__type": "string",
        "validations": {
          "required": true,
          "maxLength": 150
        }
      },
      "location": {
        "address": {
          "__type": "string"
        },
        "city": {
          "__type": "string"
        },
        "state": {
          "__type": "string"
        },
        "country": {
          "__type": "string",
          "validations": {
            "required": true
          }
        },
        "coordinates": {
          "lat": {
            "__type": "number"
          },
          "lng": {
            "__type": "number"
          }
        }
      },
      "manager_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users"
      },
      "capacity_sqm": {
        "__type": "number"
      },
      "is_active": {
        "__type": "boolean",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return true; }",
              "hash": "202020201"
            }
          }
        }
      },
      "manager": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users",
        "s_columnVirtualLinker": "manager_id"
      },
      "createdAt": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "202020202"
            }
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "bbb000000000000000000002",
    "guid": "01MYSQL_INVENTORY_ITEMS",
    "instanceName": "mysql",
    "databaseName": "inventory_db",
    "collectionName": "InventoryItems",
    "properties": {
      "_id": {
        "__type": "number",
        "isPrimaryKey": true,
        "isAutoIncrementByDB": true
      },
      "product_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Products"
      },
      "warehouse_id": {
        "__type": "objectId",
        "instance": "mysql",
        "database": "inventory_db",
        "collection": "Warehouses"
      },
      "quantity": {
        "on_hand": {
          "__type": "number",
          "validations": {
            "required": true,
            "min": 0
          }
        },
        "reserved": {
          "__type": "number",
          "validations": {
            "min": 0
          }
        },
        "available": {
          "__type": "number"
        }
      },
      "reorder": {
        "point": {
          "__type": "number"
        },
        "quantity": {
          "__type": "number"
        }
      },
      "bin_location": {
        "__type": "string"
      },
      "last_counted_at": {
        "__type": "date"
      },
      "product": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Products",
        "s_columnVirtualLinker": "product_id"
      },
      "warehouse": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mysql",
        "database": "inventory_db",
        "collection": "Warehouses",
        "s_columnVirtualLinker": "warehouse_id"
      },
      "updatedAt": {
        "__type": "date",
        "conversions": {
          "conversionFun": {
            "code": "(val, data)=>{ return new Date(); }",
            "hash": "303030301"
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "bbb000000000000000000003",
    "guid": "01MYSQL_INVENTORY_STOCKMOVEMENTS",
    "instanceName": "mysql",
    "databaseName": "inventory_db",
    "collectionName": "StockMovements",
    "properties": {
      "_id": {
        "__type": "number",
        "isPrimaryKey": true,
        "isAutoIncrementByDB": true
      },
      "product_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Products"
      },
      "warehouse_id": {
        "__type": "objectId",
        "instance": "mysql",
        "database": "inventory_db",
        "collection": "Warehouses"
      },
      "movement_type": {
        "__type": "string",
        "validations": {
          "required": true,
          "enum": [
            "IN",
            "OUT",
            "TRANSFER",
            "ADJUSTMENT",
            "RETURN"
          ]
        }
      },
      "quantity": {
        "__type": "number",
        "validations": {
          "required": true
        }
      },
      "reference": {
        "type": {
          "__type": "string",
          "validations": {
            "enum": [
              "ORDER",
              "PURCHASE",
              "ADJUSTMENT",
              "TRANSFER"
            ]
          }
        },
        "id": {
          "__type": "string"
        }
      },
      "performed_by": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users"
      },
      "notes": {
        "__type": "string"
      },
      "product": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Products",
        "s_columnVirtualLinker": "product_id"
      },
      "warehouse": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mysql",
        "database": "inventory_db",
        "collection": "Warehouses",
        "s_columnVirtualLinker": "warehouse_id"
      },
      "performer": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users",
        "s_columnVirtualLinker": "performed_by"
      },
      "createdAt": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "404040401"
            }
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "bbb000000000000000000004",
    "guid": "01MYSQL_INVENTORY_PURCHASEORDERS",
    "instanceName": "mysql",
    "databaseName": "inventory_db",
    "collectionName": "PurchaseOrders",
    "properties": {
      "_id": {
        "__type": "number",
        "isPrimaryKey": true,
        "isAutoIncrementByDB": true
      },
      "po_number": {
        "__type": "string",
        "validations": {
          "required": true,
          "unique": true
        }
      },
      "supplier_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Suppliers"
      },
      "warehouse_id": {
        "__type": "objectId",
        "instance": "mysql",
        "database": "inventory_db",
        "collection": "Warehouses"
      },
      "status": {
        "__type": "string",
        "validations": {
          "required": true,
          "enum": [
            "Draft",
            "Submitted",
            "Approved",
            "Received",
            "Cancelled"
          ]
        }
      },
      "financials": {
        "total_amount": {
          "__type": "number"
        },
        "currency": {
          "__type": "string",
          "validations": {
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "INR"
            ]
          }
        },
        "tax_amount": {
          "__type": "number"
        },
        "shipping_cost": {
          "__type": "number"
        }
      },
      "expected_delivery": {
        "__type": "date"
      },
      "approved_by": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users"
      },
      "supplier": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Suppliers",
        "s_columnVirtualLinker": "supplier_id"
      },
      "warehouse": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mysql",
        "database": "inventory_db",
        "collection": "Warehouses",
        "s_columnVirtualLinker": "warehouse_id"
      },
      "approver": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users",
        "s_columnVirtualLinker": "approved_by"
      },
      "createdAt": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "505050501"
            }
          }
        }
      },
      "updatedAt": {
        "__type": "date",
        "conversions": {
          "conversionFun": {
            "code": "(val, data)=>{ return new Date(); }",
            "hash": "505050502"
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "bbb000000000000000000005",
    "guid": "01MYSQL_ORDERS_ORDERS",
    "instanceName": "mysql",
    "databaseName": "orders_db",
    "collectionName": "Orders",
    "properties": {
      "_id": {
        "__type": "number",
        "isPrimaryKey": true,
        "isAutoIncrementByDB": true
      },
      "order_number": {
        "__type": "string",
        "validations": {
          "required": true,
          "unique": true
        }
      },
      "customer_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users"
      },
      "status": {
        "__type": "string",
        "validations": {
          "required": true,
          "enum": [
            "Pending",
            "Confirmed",
            "Processing",
            "Shipped",
            "Delivered",
            "Cancelled",
            "Refunded"
          ]
        }
      },
      "financials": {
        "subtotal": {
          "__type": "number",
          "validations": {
            "required": true,
            "min": 0
          }
        },
        "tax_amount": {
          "__type": "number"
        },
        "shipping_amount": {
          "__type": "number"
        },
        "discount_amount": {
          "__type": "number"
        },
        "total_amount": {
          "__type": "number",
          "validations": {
            "required": true,
            "min": 0
          }
        },
        "currency": {
          "__type": "string",
          "validations": {
            "required": true
          }
        }
      },
      "shipping_address": {
        "line1": {
          "__type": "string"
        },
        "line2": {
          "__type": "string"
        },
        "city": {
          "__type": "string"
        },
        "state": {
          "__type": "string"
        },
        "zip": {
          "__type": "string"
        },
        "country": {
          "__type": "string"
        }
      },
      "notes": {
        "__type": "string"
      },
      "customer": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users",
        "s_columnVirtualLinker": "customer_id"
      },
      "items": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mysql",
        "database": "orders_db",
        "collection": "OrderItems",
        "s_columnVirtualLinker": "_id",
        "t_columnVirtualLinker": "order_id"
      },
      "shipments": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mysql",
        "database": "orders_db",
        "collection": "Shipments",
        "s_columnVirtualLinker": "_id",
        "t_columnVirtualLinker": "order_id"
      },
      "placed_at": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "606060601"
            }
          }
        }
      },
      "updatedAt": {
        "__type": "date",
        "conversions": {
          "conversionFun": {
            "code": "(val, data)=>{ return new Date(); }",
            "hash": "606060602"
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "bbb000000000000000000006",
    "guid": "01MYSQL_ORDERS_ORDERITEMS",
    "instanceName": "mysql",
    "databaseName": "orders_db",
    "collectionName": "OrderItems",
    "properties": {
      "_id": {
        "__type": "number",
        "isPrimaryKey": true,
        "isAutoIncrementByDB": true
      },
      "order_id": {
        "__type": "objectId",
        "instance": "mysql",
        "database": "orders_db",
        "collection": "Orders"
      },
      "product_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Products"
      },
      "quantity": {
        "__type": "number",
        "validations": {
          "required": true,
          "min": 1
        }
      },
      "unit_price": {
        "__type": "number",
        "validations": {
          "required": true,
          "min": 0
        }
      },
      "discount_percent": {
        "__type": "number",
        "validations": {
          "min": 0,
          "max": 100
        }
      },
      "line_total": {
        "__type": "number"
      },
      "warehouse_id": {
        "__type": "objectId",
        "instance": "mysql",
        "database": "inventory_db",
        "collection": "Warehouses"
      },
      "order": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mysql",
        "database": "orders_db",
        "collection": "Orders",
        "s_columnVirtualLinker": "order_id"
      },
      "product": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Products",
        "s_columnVirtualLinker": "product_id"
      },
      "warehouse": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mysql",
        "database": "inventory_db",
        "collection": "Warehouses",
        "s_columnVirtualLinker": "warehouse_id"
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "bbb000000000000000000007",
    "guid": "01MYSQL_ORDERS_SHIPMENTS",
    "instanceName": "mysql",
    "databaseName": "orders_db",
    "collectionName": "Shipments",
    "properties": {
      "_id": {
        "__type": "number",
        "isPrimaryKey": true,
        "isAutoIncrementByDB": true
      },
      "order_id": {
        "__type": "objectId",
        "instance": "mysql",
        "database": "orders_db",
        "collection": "Orders"
      },
      "tracking_number": {
        "__type": "string"
      },
      "carrier": {
        "__type": "string",
        "validations": {
          "enum": [
            "FedEx",
            "UPS",
            "DHL",
            "USPS",
            "Local"
          ]
        }
      },
      "status": {
        "__type": "string",
        "validations": {
          "required": true,
          "enum": [
            "Preparing",
            "Dispatched",
            "In Transit",
            "Out for Delivery",
            "Delivered",
            "Failed"
          ]
        }
      },
      "dates": {
        "shipped_at": {
          "__type": "date"
        },
        "estimated_delivery": {
          "__type": "date"
        },
        "delivered_at": {
          "__type": "date"
        }
      },
      "warehouse_id": {
        "__type": "objectId",
        "instance": "mysql",
        "database": "inventory_db",
        "collection": "Warehouses"
      },
      "order": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mysql",
        "database": "orders_db",
        "collection": "Orders",
        "s_columnVirtualLinker": "order_id"
      },
      "warehouse": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mysql",
        "database": "inventory_db",
        "collection": "Warehouses",
        "s_columnVirtualLinker": "warehouse_id"
      },
      "createdAt": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "707070701"
            }
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "ccc000000000000000000001",
    "guid": "01PG_ANALYTICS_CUSTOMERMETRICS",
    "instanceName": "postgresql",
    "databaseName": "analytics_db",
    "collectionName": "CustomerMetrics",
    "properties": {
      "_id": {
        "__type": "number",
        "isPrimaryKey": true,
        "isAutoIncrementByDB": true
      },
      "customer_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users"
      },
      "orders": {
        "total_orders": {
          "__type": "number"
        },
        "total_spent": {
          "__type": "number"
        },
        "avg_order_value": {
          "__type": "number"
        },
        "first_order_at": {
          "__type": "date"
        },
        "last_order_at": {
          "__type": "date"
        }
      },
      "lifetime_value": {
        "__type": "number"
      },
      "churn_risk_score": {
        "__type": "number",
        "validations": {
          "min": 0,
          "max": 1
        }
      },
      "segment": {
        "__type": "string",
        "validations": {
          "enum": [
            "VIP",
            "Regular",
            "Occasional",
            "At Risk",
            "Churned"
          ]
        }
      },
      "customer": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users",
        "s_columnVirtualLinker": "customer_id"
      },
      "computed_at": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "808080801"
            }
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "ccc000000000000000000002",
    "guid": "01PG_ANALYTICS_SALESREPORTS",
    "instanceName": "postgresql",
    "databaseName": "analytics_db",
    "collectionName": "SalesReports",
    "properties": {
      "_id": {
        "__type": "number",
        "isPrimaryKey": true,
        "isAutoIncrementByDB": true
      },
      "report_date": {
        "__type": "date",
        "validations": {
          "required": true
        }
      },
      "period_type": {
        "__type": "string",
        "validations": {
          "required": true,
          "enum": [
            "daily",
            "weekly",
            "monthly",
            "quarterly",
            "yearly"
          ]
        }
      },
      "revenue": {
        "total_orders": {
          "__type": "number"
        },
        "total_revenue": {
          "__type": "number"
        },
        "total_cost": {
          "__type": "number"
        },
        "gross_profit": {
          "__type": "number"
        }
      },
      "customers": {
        "new_customers": {
          "__type": "number"
        },
        "returning_customers": {
          "__type": "number"
        }
      },
      "top_product_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Products"
      },
      "top_category_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Categories"
      },
      "generated_by": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users"
      },
      "top_product": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Products",
        "s_columnVirtualLinker": "top_product_id"
      },
      "top_category": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Categories",
        "s_columnVirtualLinker": "top_category_id"
      },
      "generator": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "users_db",
        "collection": "Users",
        "s_columnVirtualLinker": "generated_by"
      },
      "createdAt": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "909090901"
            }
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "ccc000000000000000000003",
    "guid": "01PG_ANALYTICS_PRODUCTPERFORMANCE",
    "instanceName": "postgresql",
    "databaseName": "analytics_db",
    "collectionName": "ProductPerformance",
    "properties": {
      "_id": {
        "__type": "number",
        "isPrimaryKey": true,
        "isAutoIncrementByDB": true
      },
      "product_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Products"
      },
      "period": {
        "start": {
          "__type": "date",
          "validations": {
            "required": true
          }
        },
        "end": {
          "__type": "date",
          "validations": {
            "required": true
          }
        }
      },
      "sales": {
        "units_sold": {
          "__type": "number"
        },
        "revenue": {
          "__type": "number"
        },
        "returns_count": {
          "__type": "number"
        }
      },
      "ratings": {
        "avg_rating": {
          "__type": "number",
          "validations": {
            "min": 0,
            "max": 5
          }
        },
        "review_count": {
          "__type": "number"
        }
      },
      "stock_turnover_rate": {
        "__type": "number"
      },
      "product": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Products",
        "s_columnVirtualLinker": "product_id"
      },
      "computed_at": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "121212121"
            }
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  },
  {
    "_id": "ccc000000000000000000004",
    "guid": "01PG_ANALYTICS_INVENTORYSNAPSHOTS",
    "instanceName": "postgresql",
    "databaseName": "analytics_db",
    "collectionName": "InventorySnapshots",
    "properties": {
      "_id": {
        "__type": "number",
        "isPrimaryKey": true,
        "isAutoIncrementByDB": true
      },
      "snapshot_date": {
        "__type": "date",
        "validations": {
          "required": true
        }
      },
      "product_id": {
        "__type": "objectId",
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Products"
      },
      "warehouse_id": {
        "__type": "objectId",
        "instance": "mysql",
        "database": "inventory_db",
        "collection": "Warehouses"
      },
      "stock": {
        "quantity_on_hand": {
          "__type": "number"
        },
        "quantity_reserved": {
          "__type": "number"
        },
        "stock_value": {
          "__type": "number"
        },
        "days_of_supply": {
          "__type": "number"
        }
      },
      "flags": {
        "is_low_stock": {
          "__type": "boolean"
        },
        "is_out_of_stock": {
          "__type": "boolean"
        }
      },
      "product": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mongodb",
        "database": "catalog_db",
        "collection": "Products",
        "s_columnVirtualLinker": "product_id"
      },
      "warehouse": {
        "__type": "objectId",
        "isVirtualField": true,
        "instance": "mysql",
        "database": "inventory_db",
        "collection": "Warehouses",
        "s_columnVirtualLinker": "warehouse_id"
      },
      "createdAt": {
        "__type": "date",
        "conversions": {
          "defaults": {
            "defaultFun": {
              "code": "()=>{ return new Date(); }",
              "hash": "131313131"
            }
          }
        }
      }
    },
    "validations": [],
    "calculated": {
      "primaryKey": "_id",
      "hasSuperKey": false
    },
    "user": "6875b871e952f1c779aaf5d2",
    "active": true,
    "__v": 0
  }
]
