-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚀 (models): add models for base functions
- Loading branch information
1 parent
813ea01
commit d5ace14
Showing
18 changed files
with
381 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/api/cv-education-experience/content-types/cv-education-experience/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "cv_education_experiences", | ||
"info": { | ||
"singularName": "cv-education-experience", | ||
"pluralName": "cv-education-experiences", | ||
"displayName": "CV Education Experience" | ||
}, | ||
"options": { | ||
"draftAndPublish": true | ||
}, | ||
"pluginOptions": {}, | ||
"attributes": { | ||
"startedAt": { | ||
"type": "date" | ||
}, | ||
"finishedAt": { | ||
"type": "date" | ||
}, | ||
"title": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "text" | ||
}, | ||
"reference_tags": { | ||
"type": "relation", | ||
"relation": "manyToMany", | ||
"target": "api::reference-tag.reference-tag", | ||
"inversedBy": "cv_education_experiences" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/api/cv-education-experience/controllers/cv-education-experience.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* cv-education-experience controller | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi' | ||
|
||
export default factories.createCoreController('api::cv-education-experience.cv-education-experience'); |
7 changes: 7 additions & 0 deletions
7
src/api/cv-education-experience/routes/cv-education-experience.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* cv-education-experience router | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi'; | ||
|
||
export default factories.createCoreRouter('api::cv-education-experience.cv-education-experience'); |
7 changes: 7 additions & 0 deletions
7
src/api/cv-education-experience/services/cv-education-experience.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* cv-education-experience service | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi'; | ||
|
||
export default factories.createCoreService('api::cv-education-experience.cv-education-experience'); |
33 changes: 33 additions & 0 deletions
33
src/api/cv-work-experience/content-types/cv-work-experience/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "cv_work_experiences", | ||
"info": { | ||
"singularName": "cv-work-experience", | ||
"pluralName": "cv-work-experiences", | ||
"displayName": "CV Work Experience" | ||
}, | ||
"options": { | ||
"draftAndPublish": true | ||
}, | ||
"pluginOptions": {}, | ||
"attributes": { | ||
"startedAt": { | ||
"type": "date" | ||
}, | ||
"finishedAt": { | ||
"type": "date" | ||
}, | ||
"title": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "text" | ||
}, | ||
"reference_tags": { | ||
"type": "relation", | ||
"relation": "manyToMany", | ||
"target": "api::reference-tag.reference-tag", | ||
"inversedBy": "cv_work_experiences" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* cv-work-experience controller | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi' | ||
|
||
export default factories.createCoreController('api::cv-work-experience.cv-work-experience'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* cv-work-experience router | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi'; | ||
|
||
export default factories.createCoreRouter('api::cv-work-experience.cv-work-experience'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* cv-work-experience service | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi'; | ||
|
||
export default factories.createCoreService('api::cv-work-experience.cv-work-experience'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "posts", | ||
"info": { | ||
"singularName": "post", | ||
"pluralName": "posts", | ||
"displayName": "Blogpost", | ||
"description": "" | ||
}, | ||
"options": { | ||
"draftAndPublish": true | ||
}, | ||
"pluginOptions": {}, | ||
"attributes": { | ||
"title": { | ||
"type": "string", | ||
"required": true, | ||
"unique": true | ||
}, | ||
"content": { | ||
"type": "richtext", | ||
"required": true | ||
}, | ||
"cover": { | ||
"type": "media", | ||
"multiple": false, | ||
"required": true, | ||
"allowedTypes": [ | ||
"images" | ||
] | ||
}, | ||
"reference_tags": { | ||
"type": "relation", | ||
"relation": "manyToMany", | ||
"target": "api::reference-tag.reference-tag", | ||
"inversedBy": "posts" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* post controller | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi' | ||
|
||
export default factories.createCoreController('api::post.post'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* post router | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi'; | ||
|
||
export default factories.createCoreRouter('api::post.post'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* post service | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi'; | ||
|
||
export default factories.createCoreService('api::post.post'); |
40 changes: 40 additions & 0 deletions
40
src/api/reference-tag/content-types/reference-tag/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "reference_tags", | ||
"info": { | ||
"singularName": "reference-tag", | ||
"pluralName": "reference-tags", | ||
"displayName": "Reference Tag", | ||
"description": "" | ||
}, | ||
"options": { | ||
"draftAndPublish": true | ||
}, | ||
"pluginOptions": {}, | ||
"attributes": { | ||
"title": { | ||
"type": "string" | ||
}, | ||
"link": { | ||
"type": "string" | ||
}, | ||
"posts": { | ||
"type": "relation", | ||
"relation": "manyToMany", | ||
"target": "api::post.post", | ||
"mappedBy": "reference_tags" | ||
}, | ||
"cv_education_experiences": { | ||
"type": "relation", | ||
"relation": "manyToMany", | ||
"target": "api::cv-education-experience.cv-education-experience", | ||
"mappedBy": "reference_tags" | ||
}, | ||
"cv_work_experiences": { | ||
"type": "relation", | ||
"relation": "manyToMany", | ||
"target": "api::cv-work-experience.cv-work-experience", | ||
"mappedBy": "reference_tags" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* reference-tag controller | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi' | ||
|
||
export default factories.createCoreController('api::reference-tag.reference-tag'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* reference-tag router | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi'; | ||
|
||
export default factories.createCoreRouter('api::reference-tag.reference-tag'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* reference-tag service | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi'; | ||
|
||
export default factories.createCoreService('api::reference-tag.reference-tag'); |
Oops, something went wrong.