model changes and GenericAutoSchema

This commit is contained in:
smilerz
2021-10-07 12:35:46 -05:00
parent f5f9380344
commit 6eea7ac99b
6 changed files with 391 additions and 200 deletions

View File

@@ -404,19 +404,16 @@ export class Models {
}
static RECIPE = {
name: i18n.t("Recipe"),
apiName: "Recipe",
list: {
params: ["query", "keywords", "foods", "units", "rating", "books", "keywordsOr", "foodsOr", "booksOr", "internal", "random", "_new", "page", "pageSize", "options"],
'name': i18n.t('Recipe'),
'apiName': 'Recipe',
'list': {
'params': ['query', 'keywords', 'foods', 'units', 'rating', 'books', 'keywordsOr', 'foodsOr', 'booksOr', 'internal', 'random', '_new', 'page', 'pageSize', 'options'],
// 'config': {
// 'foods': {'type': 'string'},
// 'keywords': {'type': 'string'},
// 'books': {'type': 'string'},
// }
},
shopping: {
params: ["id", ["id", "list_recipe", "ingredients", "servings"]],
},
}
static USER_NAME = {