()
| 164 | } |
| 165 | |
| 166 | async bootstrap() { |
| 167 | const {results: schemas} = await this.find() |
| 168 | |
| 169 | schemas.forEach(schema => { |
| 170 | // Loading the model. |
| 171 | Model({ |
| 172 | isListable: true, |
| 173 | name: schema.name, |
| 174 | property: schema.property, |
| 175 | schema: schema.fields, |
| 176 | settings: schema.settings |
| 177 | }) |
| 178 | }) |
| 179 | } |
| 180 | |
| 181 | async create({fields, name, settings, property, timestamp}) { |
| 182 | const {results: existingSchemas} = await this.find({ |