Použití AI k vygenerování schématu ze vzorových dat.
const schema = await client.schemas.generate({ sample_data: "Product: iPhone 15 Pro, Price: $999, Storage: 128GB...", name: "Smartphones", }); console.log(schema.name); // "Smartphones" console.log(schema.columns); // AI-generated columns
{ "id": "schema_gen123", "name": "Smartphones", "description": null, "is_default": false, "columns": [ { "key": "product_name", "label": "Product Name", "type": "text", "required": true }, { "key": "price", "label": "Price", "type": "number" }, { "key": "storage", "label": "Storage", "type": "text" }, { "key": "color", "label": "Color", "type": "text" } ], "created_at": "2025-03-01T10:00:00.000Z", "updated_at": "2025-03-01T10:00:00.000Z" }
number
url
tags
enum