mirror of
https://github.com/strapi/strapi.git
synced 2026-01-07 12:45:45 +00:00
* Don't set connection field on create/edit operation on content-types & components Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Make sure that every component has a valid connection attribute Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Remove connection check on components load Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Remove default connections from core & webhook stores but make sure it's defined in the application lifecycle Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Fix component's associations that can be undefined instead of empty in populateBareAssociations Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Remove "default" connection from plugins' models Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Remove connection attribute from generated models (cli) Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Mutate each component instead of reassign Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Build core_store and webhook model based on the current config Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Add connection to templates conditionally (based on args) Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Set default value for description to undefined instead of empty string Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Remove unnecessary complexity Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Update getStarted models Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Fix attributes parsing for generate:model Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Removed tpl option from generate:model/api Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu> * Remove tpl option from cli Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
57 lines
1.1 KiB
JSON
57 lines
1.1 KiB
JSON
{
|
|
"collectionName": "users-permissions_user",
|
|
"info": {
|
|
"name": "user",
|
|
"description": ""
|
|
},
|
|
"options": {
|
|
"timestamps": true
|
|
},
|
|
"attributes": {
|
|
"username": {
|
|
"type": "string",
|
|
"minLength": 3,
|
|
"unique": true,
|
|
"configurable": false,
|
|
"required": true
|
|
},
|
|
"email": {
|
|
"type": "email",
|
|
"minLength": 6,
|
|
"configurable": false,
|
|
"required": true
|
|
},
|
|
"provider": {
|
|
"type": "string",
|
|
"configurable": false
|
|
},
|
|
"password": {
|
|
"type": "password",
|
|
"minLength": 6,
|
|
"configurable": false,
|
|
"private": true
|
|
},
|
|
"resetPasswordToken": {
|
|
"type": "string",
|
|
"configurable": false,
|
|
"private": true
|
|
},
|
|
"confirmed": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"configurable": false
|
|
},
|
|
"blocked": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"configurable": false
|
|
},
|
|
"role": {
|
|
"model": "role",
|
|
"via": "users",
|
|
"plugin": "users-permissions",
|
|
"configurable": false
|
|
}
|
|
}
|
|
}
|