creacion de cuestionario
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# cuestionario_violencia_back
|
||||
|
||||
Este es el repositorio del back del cuestionario sobre violencia.
|
||||
@@ -0,0 +1,153 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "cuestionarios",
|
||||
"info": {
|
||||
"singularName": "cuestionario",
|
||||
"pluralName": "cuestionarios",
|
||||
"displayName": "Cuestionario",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"nombre": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"apellidoP": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"apellidoM": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"folio": {
|
||||
"type": "biginteger",
|
||||
"required": true
|
||||
},
|
||||
"genero": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"masculino",
|
||||
"femenino"
|
||||
],
|
||||
"required": true
|
||||
},
|
||||
"estadoCivil": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"nacionalidad": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"ocupacion": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"edad": {
|
||||
"type": "integer",
|
||||
"required": true
|
||||
},
|
||||
"gradoEstudios": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"primaria",
|
||||
"secundaria",
|
||||
"preparatoria",
|
||||
"licenciatura",
|
||||
"maestria",
|
||||
"doctorado"
|
||||
],
|
||||
"required": true
|
||||
},
|
||||
"calle": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"numeroExtInt": {
|
||||
"type": "string"
|
||||
},
|
||||
"colonia": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"municipio": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"cp": {
|
||||
"type": "integer",
|
||||
"required": true
|
||||
},
|
||||
"telefono": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"infoHijos": {
|
||||
"type": "json",
|
||||
"required": true
|
||||
},
|
||||
"numPersonasVive": {
|
||||
"type": "integer",
|
||||
"required": true
|
||||
},
|
||||
"tipoCasa": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"casa",
|
||||
"departamento"
|
||||
],
|
||||
"required": true
|
||||
},
|
||||
"tipoPropiedad": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"renta",
|
||||
"familiar",
|
||||
"propia"
|
||||
],
|
||||
"required": true
|
||||
},
|
||||
"problematicaAfectiva": {
|
||||
"type": "json",
|
||||
"required": true
|
||||
},
|
||||
"tipoViolencia": {
|
||||
"type": "json",
|
||||
"required": true
|
||||
},
|
||||
"modalidadesViolencia": {
|
||||
"type": "json",
|
||||
"required": true
|
||||
},
|
||||
"atencionJuridica": {
|
||||
"type": "json",
|
||||
"required": true
|
||||
},
|
||||
"redApoyo": {
|
||||
"type": "json"
|
||||
},
|
||||
"motivoAtencion": {
|
||||
"type": "text",
|
||||
"required": true
|
||||
},
|
||||
"requiereCanalizar": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"si",
|
||||
"no"
|
||||
],
|
||||
"required": true
|
||||
},
|
||||
"users_permissions_user": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "plugin::users-permissions.user",
|
||||
"inversedBy": "cuestionarios"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* cuestionario controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::cuestionario.cuestionario');
|
||||
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* cuestionario router.
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::cuestionario.cuestionario');
|
||||
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* cuestionario service.
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::cuestionario.cuestionario');
|
||||
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "up_users",
|
||||
"info": {
|
||||
"name": "user",
|
||||
"description": "",
|
||||
"singularName": "user",
|
||||
"pluralName": "users",
|
||||
"displayName": "User"
|
||||
},
|
||||
"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": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "plugin::users-permissions.role",
|
||||
"inversedBy": "users",
|
||||
"configurable": false
|
||||
},
|
||||
"cuestionarios": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::cuestionario.cuestionario",
|
||||
"mappedBy": "users_permissions_user"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user