/**
* Injects collection parameters for development.
*/
function injectCollectionParams() {
// Example collection 1 parameters
const collection1Params = {
name: "users",
description: "Stores user data",
primaryKey: "id",
fields: ["id", "name", "email", "created_at"],
exampleData: [{ id: 1, name: "John Doe", email: "john.doe@example.com" }]
};
// Example collection 2 parameters
const collection2Params = {
name: "products",
description: "Stores product information",
primaryKey: "product_id",
fields: ["product_id", "name", "price", "description"],
exampleData: [{ product_id: "A123", name: "Laptop", price: 1200, description: "High-performance laptop" }]
};
// Inject parameters (example - could be adapted to inject into a data structure)
window.collection1 = collection1Params;
window.collection2 = collection2Params;
console.log("Collection parameters injected for development.");
}
// Call the function to inject parameters.
injectCollectionParams();
Add your comment