mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
clean models
This commit is contained in:
parent
32236032b3
commit
16c4c9ebcd
0
examples/getstarted/api/address/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/address/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/address/controllers/Address.js
Normal file → Executable file
0
examples/getstarted/api/address/controllers/Address.js
Normal file → Executable file
0
examples/getstarted/api/address/models/Address.js
Normal file → Executable file
0
examples/getstarted/api/address/models/Address.js
Normal file → Executable file
3
examples/getstarted/api/address/models/Address.settings.json
Normal file → Executable file
3
examples/getstarted/api/address/models/Address.settings.json
Normal file → Executable file
@ -24,8 +24,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"geolocation": {
|
||||
"type": "json",
|
||||
"required": true
|
||||
"type": "json"
|
||||
},
|
||||
"country": {
|
||||
"model": "country"
|
||||
|
0
examples/getstarted/api/address/services/Address.js
Normal file → Executable file
0
examples/getstarted/api/address/services/Address.js
Normal file → Executable file
0
examples/getstarted/api/category/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/category/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/category/controllers/Category.js
Normal file → Executable file
0
examples/getstarted/api/category/controllers/Category.js
Normal file → Executable file
0
examples/getstarted/api/category/models/Category.js
Normal file → Executable file
0
examples/getstarted/api/category/models/Category.js
Normal file → Executable file
0
examples/getstarted/api/category/models/Category.settings.json
Normal file → Executable file
0
examples/getstarted/api/category/models/Category.settings.json
Normal file → Executable file
0
examples/getstarted/api/category/services/Category.js
Normal file → Executable file
0
examples/getstarted/api/category/services/Category.js
Normal file → Executable file
0
examples/getstarted/api/country/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/country/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/country/controllers/Country.js
Normal file → Executable file
0
examples/getstarted/api/country/controllers/Country.js
Normal file → Executable file
0
examples/getstarted/api/country/models/Country.js
Normal file → Executable file
0
examples/getstarted/api/country/models/Country.js
Normal file → Executable file
0
examples/getstarted/api/country/models/Country.settings.json
Normal file → Executable file
0
examples/getstarted/api/country/models/Country.settings.json
Normal file → Executable file
0
examples/getstarted/api/country/services/Country.js
Normal file → Executable file
0
examples/getstarted/api/country/services/Country.js
Normal file → Executable file
0
examples/getstarted/api/like/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/like/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/like/controllers/Like.js
Normal file → Executable file
0
examples/getstarted/api/like/controllers/Like.js
Normal file → Executable file
0
examples/getstarted/api/like/models/Like.js
Normal file → Executable file
0
examples/getstarted/api/like/models/Like.js
Normal file → Executable file
0
examples/getstarted/api/like/models/Like.settings.json
Normal file → Executable file
0
examples/getstarted/api/like/models/Like.settings.json
Normal file → Executable file
0
examples/getstarted/api/like/services/Like.js
Normal file → Executable file
0
examples/getstarted/api/like/services/Like.js
Normal file → Executable file
0
examples/getstarted/api/menu/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/menu/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/menu/controllers/Menu.js
Normal file → Executable file
0
examples/getstarted/api/menu/controllers/Menu.js
Normal file → Executable file
0
examples/getstarted/api/menu/models/Menu.js
Normal file → Executable file
0
examples/getstarted/api/menu/models/Menu.js
Normal file → Executable file
0
examples/getstarted/api/menu/models/Menu.settings.json
Normal file → Executable file
0
examples/getstarted/api/menu/models/Menu.settings.json
Normal file → Executable file
0
examples/getstarted/api/menu/services/Menu.js
Normal file → Executable file
0
examples/getstarted/api/menu/services/Menu.js
Normal file → Executable file
0
examples/getstarted/api/menusection/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/menusection/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/menusection/controllers/Menusection.js
Normal file → Executable file
0
examples/getstarted/api/menusection/controllers/Menusection.js
Normal file → Executable file
0
examples/getstarted/api/menusection/models/Menusection.js
Normal file → Executable file
0
examples/getstarted/api/menusection/models/Menusection.js
Normal file → Executable file
0
examples/getstarted/api/menusection/models/Menusection.settings.json
Normal file → Executable file
0
examples/getstarted/api/menusection/models/Menusection.settings.json
Normal file → Executable file
0
examples/getstarted/api/menusection/services/Menusection.js
Normal file → Executable file
0
examples/getstarted/api/menusection/services/Menusection.js
Normal file → Executable file
0
examples/getstarted/api/restaurant/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/restaurant/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/restaurant/controllers/Restaurant.js
Normal file → Executable file
0
examples/getstarted/api/restaurant/controllers/Restaurant.js
Normal file → Executable file
0
examples/getstarted/api/restaurant/models/Restaurant.js
Normal file → Executable file
0
examples/getstarted/api/restaurant/models/Restaurant.js
Normal file → Executable file
21
examples/getstarted/api/restaurant/models/Restaurant.settings.json
Normal file → Executable file
21
examples/getstarted/api/restaurant/models/Restaurant.settings.json
Normal file → Executable file
@ -7,10 +7,7 @@
|
||||
},
|
||||
"options": {
|
||||
"increments": true,
|
||||
"timestamps": [
|
||||
"created_at",
|
||||
"updated_at"
|
||||
],
|
||||
"timestamps": ["created_at", "updated_at"],
|
||||
"comment": ""
|
||||
},
|
||||
"attributes": {
|
||||
@ -32,14 +29,11 @@
|
||||
"categories": {
|
||||
"collection": "category"
|
||||
},
|
||||
"address": {
|
||||
"model": "address"
|
||||
},
|
||||
"price_range": {
|
||||
"enum": [
|
||||
"very_cheap",
|
||||
"cheap",
|
||||
"average",
|
||||
"expensive",
|
||||
"very_expensive"
|
||||
],
|
||||
"enum": ["very_cheap", "cheap", "average", "expensive", "very_expensive"],
|
||||
"type": "enumeration"
|
||||
},
|
||||
"description": {
|
||||
@ -63,9 +57,6 @@
|
||||
"required": true,
|
||||
"repeatable": true,
|
||||
"type": "group"
|
||||
},
|
||||
"address": {
|
||||
"model": "address"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
0
examples/getstarted/api/restaurant/services/Restaurant.js
Normal file → Executable file
0
examples/getstarted/api/restaurant/services/Restaurant.js
Normal file → Executable file
0
examples/getstarted/api/review/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/review/config/routes.json
Normal file → Executable file
0
examples/getstarted/api/review/controllers/Review.js
Normal file → Executable file
0
examples/getstarted/api/review/controllers/Review.js
Normal file → Executable file
0
examples/getstarted/api/review/models/Review.js
Normal file → Executable file
0
examples/getstarted/api/review/models/Review.js
Normal file → Executable file
0
examples/getstarted/api/review/models/Review.settings.json
Normal file → Executable file
0
examples/getstarted/api/review/models/Review.settings.json
Normal file → Executable file
0
examples/getstarted/api/review/services/Review.js
Normal file → Executable file
0
examples/getstarted/api/review/services/Review.js
Normal file → Executable file
0
examples/getstarted/groups/closingperiod.json
Normal file → Executable file
0
examples/getstarted/groups/closingperiod.json
Normal file → Executable file
0
examples/getstarted/groups/dish.json
Normal file → Executable file
0
examples/getstarted/groups/dish.json
Normal file → Executable file
0
examples/getstarted/groups/openingtimes.json
Normal file → Executable file
0
examples/getstarted/groups/openingtimes.json
Normal file → Executable file
0
examples/getstarted/groups/restaurantservice.json
Normal file → Executable file
0
examples/getstarted/groups/restaurantservice.json
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user