Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shcema shcnage #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .strapi-updater.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"latest": "4.3.9",
"lastUpdateCheck": 1663948248330,
"lastNotification": 1663948249902
}
29,813 changes: 29,813 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions src/api/employee/content-types/employee/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"kind": "collectionType",
"collectionName": "employees",
"info": {
"singularName": "employee",
"pluralName": "employees",
"displayName": "Employee"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"Name": {
"type": "string"
},
"Position": {
"type": "string"
},
"linkedInUrl": {
"type": "string"
},
"bio": {
"type": "string"
},
"isPartner": {
"type": "boolean"
},
"Section": {
"type": "enumeration",
"enum": [
"leadership",
"northeast",
"southeast"
]
},
"headshot": {
"type": "string"
}
}
}
9 changes: 9 additions & 0 deletions src/api/employee/controllers/employee.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* employee controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::employee.employee');
9 changes: 9 additions & 0 deletions src/api/employee/routes/employee.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* employee router.
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::employee.employee');
9 changes: 9 additions & 0 deletions src/api/employee/services/employee.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* employee service.
*/

const { createCoreService } = require('@strapi/strapi').factories;

module.exports = createCoreService('api::employee.employee');
26 changes: 26 additions & 0 deletions src/api/order/content-types/order/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"kind": "collectionType",
"collectionName": "orders",
"info": {
"singularName": "order",
"pluralName": "orders",
"displayName": "Order"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"order": {
"type": "json"
},
"Section": {
"type": "enumeration",
"enum": [
"northeast",
"leadership",
"southeast"
]
}
}
}
9 changes: 9 additions & 0 deletions src/api/order/controllers/order.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* order controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::order.order');
9 changes: 9 additions & 0 deletions src/api/order/routes/order.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* order router.
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::order.order');
9 changes: 9 additions & 0 deletions src/api/order/services/order.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* order service.
*/

const { createCoreService } = require('@strapi/strapi').factories;

module.exports = createCoreService('api::order.order');
Loading