clean models

This commit is contained in:
Virginie Ky 2019-08-28 17:20:53 +02:00
parent 32236032b3
commit 16c4c9ebcd
44 changed files with 7 additions and 17 deletions

0
examples/getstarted/api/address/config/routes.json Normal file → Executable file
View File

0
examples/getstarted/api/address/controllers/Address.js Normal file → Executable file
View File

0
examples/getstarted/api/address/models/Address.js Normal file → Executable file
View File

View File

@ -24,8 +24,7 @@
"type": "string" "type": "string"
}, },
"geolocation": { "geolocation": {
"type": "json", "type": "json"
"required": true
}, },
"country": { "country": {
"model": "country" "model": "country"

0
examples/getstarted/api/address/services/Address.js Normal file → Executable file
View File

0
examples/getstarted/api/category/config/routes.json Normal file → Executable file
View File

View File

0
examples/getstarted/api/category/models/Category.js Normal file → Executable file
View File

View File

0
examples/getstarted/api/category/services/Category.js Normal file → Executable file
View File

0
examples/getstarted/api/country/config/routes.json Normal file → Executable file
View File

0
examples/getstarted/api/country/controllers/Country.js Normal file → Executable file
View File

0
examples/getstarted/api/country/models/Country.js Normal file → Executable file
View File

View File

0
examples/getstarted/api/country/services/Country.js Normal file → Executable file
View File

0
examples/getstarted/api/like/config/routes.json Normal file → Executable file
View File

0
examples/getstarted/api/like/controllers/Like.js Normal file → Executable file
View File

0
examples/getstarted/api/like/models/Like.js Normal file → Executable file
View File

0
examples/getstarted/api/like/models/Like.settings.json Normal file → Executable file
View File

0
examples/getstarted/api/like/services/Like.js Normal file → Executable file
View File

0
examples/getstarted/api/menu/config/routes.json Normal file → Executable file
View File

0
examples/getstarted/api/menu/controllers/Menu.js Normal file → Executable file
View File

0
examples/getstarted/api/menu/models/Menu.js Normal file → Executable file
View File

0
examples/getstarted/api/menu/models/Menu.settings.json Normal file → Executable file
View File

0
examples/getstarted/api/menu/services/Menu.js Normal file → Executable file
View File

0
examples/getstarted/api/menusection/config/routes.json Normal file → Executable file
View File

View File

View File

View File

View File

0
examples/getstarted/api/restaurant/config/routes.json Normal file → Executable file
View File

View File

View File

View File

@ -7,10 +7,7 @@
}, },
"options": { "options": {
"increments": true, "increments": true,
"timestamps": [ "timestamps": ["created_at", "updated_at"],
"created_at",
"updated_at"
],
"comment": "" "comment": ""
}, },
"attributes": { "attributes": {
@ -32,14 +29,11 @@
"categories": { "categories": {
"collection": "category" "collection": "category"
}, },
"address": {
"model": "address"
},
"price_range": { "price_range": {
"enum": [ "enum": ["very_cheap", "cheap", "average", "expensive", "very_expensive"],
"very_cheap",
"cheap",
"average",
"expensive",
"very_expensive"
],
"type": "enumeration" "type": "enumeration"
}, },
"description": { "description": {
@ -63,9 +57,6 @@
"required": true, "required": true,
"repeatable": true, "repeatable": true,
"type": "group" "type": "group"
},
"address": {
"model": "address"
} }
} }
} }

View File

0
examples/getstarted/api/review/config/routes.json Normal file → Executable file
View File

0
examples/getstarted/api/review/controllers/Review.js Normal file → Executable file
View File

0
examples/getstarted/api/review/models/Review.js Normal file → Executable file
View File

View File

0
examples/getstarted/api/review/services/Review.js Normal file → Executable file
View File

0
examples/getstarted/groups/closingperiod.json Normal file → Executable file
View File

0
examples/getstarted/groups/dish.json Normal file → Executable file
View File

0
examples/getstarted/groups/openingtimes.json Normal file → Executable file
View File

0
examples/getstarted/groups/restaurantservice.json Normal file → Executable file
View File