()
| 14 | ) |
| 15 | |
| 16 | export const getModelNames = async () => { |
| 17 | const datamodel = await getSchema(getPaths().api.dbSchema) |
| 18 | const schema = await getDMMF({ datamodel }) |
| 19 | |
| 20 | return schema.datamodel.models.map((model) => model.name) |
| 21 | } |
| 22 | |
| 23 | export const hasModel = async (name: string) => { |
| 24 | if (!name) { |
no test coverage detected