@@ -0,0 +1,52 @@ | |||||
{ | |||||
"routes": [ | |||||
{ | |||||
"method": "GET", | |||||
"path": "/partners-login-states", | |||||
"handler": "partners-login-state.find", | |||||
"config": { | |||||
"policies": [] | |||||
} | |||||
}, | |||||
{ | |||||
"method": "GET", | |||||
"path": "/partners-login-states/count", | |||||
"handler": "partners-login-state.count", | |||||
"config": { | |||||
"policies": [] | |||||
} | |||||
}, | |||||
{ | |||||
"method": "GET", | |||||
"path": "/partners-login-states/:id", | |||||
"handler": "partners-login-state.findOne", | |||||
"config": { | |||||
"policies": [] | |||||
} | |||||
}, | |||||
{ | |||||
"method": "POST", | |||||
"path": "/partners-login-states", | |||||
"handler": "partners-login-state.create", | |||||
"config": { | |||||
"policies": [] | |||||
} | |||||
}, | |||||
{ | |||||
"method": "PUT", | |||||
"path": "/partners-login-states/:id", | |||||
"handler": "partners-login-state.update", | |||||
"config": { | |||||
"policies": [] | |||||
} | |||||
}, | |||||
{ | |||||
"method": "DELETE", | |||||
"path": "/partners-login-states/:id", | |||||
"handler": "partners-login-state.delete", | |||||
"config": { | |||||
"policies": [] | |||||
} | |||||
} | |||||
] | |||||
} |
@@ -0,0 +1,8 @@ | |||||
'use strict'; | |||||
/** | |||||
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/controllers.html#core-controllers) | |||||
* to customize this controller | |||||
*/ | |||||
module.exports = {}; |
@@ -0,0 +1,8 @@ | |||||
'use strict'; | |||||
/** | |||||
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/models.html#lifecycle-hooks) | |||||
* to customize this model | |||||
*/ | |||||
module.exports = {}; |
@@ -0,0 +1,22 @@ | |||||
{ | |||||
"kind": "collectionType", | |||||
"collectionName": "partners_login_states", | |||||
"info": { | |||||
"name": "PartnersLoginState" | |||||
}, | |||||
"options": { | |||||
"increments": true, | |||||
"timestamps": true, | |||||
"draftAndPublish": true | |||||
}, | |||||
"attributes": { | |||||
"user": { | |||||
"plugin": "users-permissions", | |||||
"model": "user", | |||||
"via": "partners_login_states" | |||||
}, | |||||
"business_partner": { | |||||
"model": "business-partner" | |||||
} | |||||
} | |||||
} |
@@ -0,0 +1,8 @@ | |||||
'use strict'; | |||||
/** | |||||
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/services.html#core-services) | |||||
* to customize this service | |||||
*/ | |||||
module.exports = {}; |
@@ -0,0 +1,67 @@ | |||||
{ | |||||
"kind": "collectionType", | |||||
"collectionName": "users-permissions_user", | |||||
"info": { | |||||
"name": "user", | |||||
"description": "" | |||||
}, | |||||
"options": { | |||||
"draftAndPublish": false, | |||||
"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 | |||||
}, | |||||
"confirmationToken": { | |||||
"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 | |||||
}, | |||||
"partners_login_states": { | |||||
"via": "user", | |||||
"collection": "partners-login-state" | |||||
} | |||||
} | |||||
} |