-
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.
feat: add bonding pool and related content types (#45)
* feat: add bonding pool and related content types * chore: update readme with instructions to build before running dev * chore: bump version to 0.7.0
- Loading branch information
1 parent
93ffb1c
commit a35e7c6
Showing
15 changed files
with
17,708 additions
and
8,325 deletions.
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
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
26 changes: 26 additions & 0 deletions
26
src/api/bonding-pool/content-types/bonding-pool/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,26 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "bonding_pools", | ||
"info": { | ||
"singularName": "bonding-pool", | ||
"pluralName": "bonding-pools", | ||
"displayName": "Bonding Pool" | ||
}, | ||
"options": { | ||
"draftAndPublish": false | ||
}, | ||
"pluginOptions": {}, | ||
"attributes": { | ||
"name": { | ||
"type": "string", | ||
"required": true, | ||
"unique": true | ||
}, | ||
"solver_bonding_pools": { | ||
"type": "relation", | ||
"relation": "oneToMany", | ||
"target": "api::solver-bonding-pool.solver-bonding-pool", | ||
"mappedBy": "bonding_pool" | ||
} | ||
} | ||
} |
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 @@ | ||
/** | ||
* bonding-pool controller | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi' | ||
|
||
export default factories.createCoreController('api::bonding-pool.bonding-pool'); |
Oops, something went wrong.