{
  "entities": {
    "User": {
      "collection": "users",
      "fields": {
        "email": { "type": "string" },
        "firstName": { "type": "string" },
        "lastName": { "type": "string" },
        "phone": { "type": "string" },
        "role": { "type": "string", "enum": ["USER", "EDITOR", "ADMIN", "SUPER_ADMIN"] },
        "createdAt": { "type": "timestamp" },
        "updatedAt": { "type": "timestamp" }
      }
    },
    "Address": {
      "collection": "users/{userId}/addresses",
      "fields": {
        "title": { "type": "string" },
        "fullName": { "type": "string" },
        "phone": { "type": "string" },
        "city": { "type": "string" },
        "district": { "type": "string" },
        "neighborhood": { "type": "string" },
        "fullAddress": { "type": "string" },
        "postalCode": { "type": "string" }
      }
    },
    "Product": {
      "collection": "products",
      "fields": {
        "title": { "type": "string" },
        "description": { "type": "string" },
        "sku": { "type": "string" },
        "category": { "type": "string" },
        "price": { "type": "number" },
        "oldPrice": { "type": "number" },
        "stock": { "type": "integer" },
        "imageUrl": { "type": "string" },
        "isActive": { "type": "boolean" },
        "isNew": { "type": "boolean" },
        "isBestSeller": { "type": "boolean" },
        "isFeatured": { "type": "boolean" },
        "createdAt": { "type": "timestamp" },
        "updatedAt": { "type": "timestamp" }
      }
    },
    "Category": {
      "collection": "categories",
      "fields": {
        "name": { "type": "string" },
        "imageUrl": { "type": "string" },
        "order": { "type": "integer" },
        "isActive": { "type": "boolean" }
      }
    },
    "Banner": {
      "collection": "banners",
      "fields": {
        "title": { "type": "string" },
        "subtitle": { "type": "string" },
        "imageUrl": { "type": "string" },
        "linkTarget": { "type": "string" },
        "order": { "type": "integer" },
        "isActive": { "type": "boolean" }
      }
    },
    "Order": {
      "collection": "orders",
      "fields": {
        "orderNumber": { "type": "string" },
        "userId": { "type": "string" },
        "userEmail": { "type": "string" },
        "subtotal": { "type": "number" },
        "discount": { "type": "number" },
        "shippingCost": { "type": "number" },
        "totalAmount": { "type": "number" },
        "orderStatus": { "type": "string", "enum": ["PREPARING", "SHIPPED", "DELIVERED", "CANCELLED"] },
        "paymentStatus": { "type": "string", "enum": ["PENDING", "COMPLETED", "FAILED"] },
        "cargoCompany": { "type": "string" },
        "trackingNumber": { "type": "string" },
        "createdAt": { "type": "timestamp" },
        "updatedAt": { "type": "timestamp" }
      }
    }
  }
}
