/// migrate((app) => { const collection = app.findCollectionByNameOrId("pbc_3866053794"); return app.delete(collection); }, (app) => { const collection = new Collection({ "createRule": "@request.auth.id != ''", "deleteRule": "@request.auth.id != ''", "fields": [ { "autogeneratePattern": "[a-z0-9]{15}", "hidden": false, "id": "text3208210256", "max": 15, "min": 15, "name": "id", "pattern": "^[a-z0-9]+$", "presentable": false, "primaryKey": true, "required": true, "system": true, "type": "text" }, { "hidden": false, "id": "autodate2990389176", "name": "created", "onCreate": true, "onUpdate": false, "presentable": false, "system": true, "type": "autodate" }, { "hidden": false, "id": "autodate3332085495", "name": "updated", "onCreate": true, "onUpdate": true, "presentable": false, "system": true, "type": "autodate" }, { "autogeneratePattern": "", "hidden": false, "id": "text1337919823", "max": 0, "min": 0, "name": "company", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" }, { "autogeneratePattern": "", "hidden": false, "id": "text223244161", "max": 0, "min": 0, "name": "address", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" }, { "autogeneratePattern": "", "hidden": false, "id": "text4112659446", "max": 0, "min": 0, "name": "vendor", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" } ], "id": "pbc_3866053794", "indexes": [], "listRule": "@request.auth.id != ''", "name": "companies", "system": false, "type": "base", "updateRule": "@request.auth.id != ''", "viewRule": "@request.auth.id != ''" }); return app.save(collection); })