Created
July 29, 2015 18:39
-
-
Save gustavorps/00ac20a43a15300fd82f to your computer and use it in GitHub Desktop.
NeoSalic - Models
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
{ | |
"name": "Proponente,", | |
"description": "TODO: O que é?", | |
"plural": "proponentes", | |
"base": "User", | |
"idInjection": false, | |
"strict": true, | |
"options": { | |
"mongodb": { | |
"collection": "agentes", | |
"mysql": "agentes" | |
} | |
}, | |
"properties": { | |
"id": { | |
"type": "Number", | |
"id": true, | |
"required": true | |
}, | |
"nomeCompleto": { | |
"type": "String", | |
"required": true | |
}, | |
"documentos": { | |
"type": ["Object"], | |
"required": true | |
}, | |
"dataNascimetno": { | |
"type": "Date", | |
"required": true | |
}, | |
"createdAt": { | |
"type": "Date", | |
"required": true | |
}, | |
"updatedAt": { | |
"type": "Date", | |
"required": true | |
} | |
}, | |
"hidden": [], | |
"validations": [], | |
"relations": { | |
"snapshots": { | |
"model": "Proposta", | |
"type": "hasMany", | |
"foreignKey": "id" | |
} | |
}, | |
"acls": [ | |
{ | |
"accessType": "WRITE", | |
"principalType": "ROLE", | |
"principalId": "$everyone", | |
"permission": "DENY" | |
}, | |
{ | |
"accessType": "READ", | |
"principalType": "ROLE", | |
"principalId": "$everyone", | |
"permission": "ALLOW" | |
} | |
], | |
"scope": { | |
"limit": 25, | |
"order": [ | |
"updatedAt DESC" | |
] | |
}, | |
"indexes": { | |
"updatedAt_index": { | |
"timestamp_ms": -1 | |
} | |
}, | |
"methods": [], | |
"http": { | |
"path": "/proponentes" | |
} | |
} |
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
{ | |
"name": "Proposta,", | |
"description": "TODO: O que é?", | |
"plural": "propostas", | |
"base": "User", | |
"idInjection": false, | |
"strict": true, | |
"options": { | |
"mongodb": { | |
"collection": "propostas", | |
"mysql": "propostas" | |
} | |
}, | |
"properties": { | |
"id": { | |
"type": "Number", | |
"id": true, | |
"required": true, | |
"mysql": { | |
"collumn": "IdProposta", | |
"type": "CHAR(10)" | |
} | |
}, | |
"declaracaoResposabilidade": { | |
"type": "DeclaracaoResposabilidade", | |
"required": true, | |
"mysql": { | |
"collumn": "IdProposta", | |
"type": "CHAR(10)" | |
} | |
}, | |
"nome": { | |
"type": "String", | |
"required": true | |
}, | |
"resumo": { | |
"type": "Date", | |
"required": true, | |
"limit": 1000 | |
}, | |
"mecanismoFiscao": { | |
"type": "Boolean", | |
"required": true | |
}, | |
"dataFixa": { | |
"type": "Boolean", | |
"required": true | |
}, | |
"planoAnual": { | |
"type": "Boolean", | |
"required": true | |
}, | |
"eAudioVisual": { | |
"type": "Boolean", | |
"required": true | |
}, | |
"dataInicio": { | |
"type": "Date", | |
"required": true | |
}, | |
"dataFim": { | |
"type": "Date", | |
"required": true | |
}, | |
"bemTombado": { | |
"type": "Object", | |
"default": null | |
}, | |
"objectivos": { | |
"type": "String", | |
"required": true, | |
"limit": 8000 | |
}, | |
"justificativa": { | |
"type": "String", | |
"required": true, | |
"limit": 8000 | |
}, | |
"acessibilidade": { | |
"type": "String", | |
"required": true, | |
"limit": 8000 | |
}, | |
"democratizacaoAcesso": { | |
"type": "String", | |
"required": true, | |
"limit": 8000 | |
}, | |
"etapasTrabalho": { | |
"type": "String", | |
"required": true, | |
"limit": 8000 | |
}, | |
"ficaTecnica": { | |
"type": "String", | |
"required": true, | |
"limit": 8000 | |
}, | |
"sinopse": { | |
"type": "String", | |
"required": true, | |
"limit": 8000 | |
}, | |
"impactoAmbiental": { | |
"type": "String", | |
"required": true, | |
"limit": 8000 | |
}, | |
"especificacoesTenicasProduto": { | |
"type": "String", | |
"required": true, | |
"limit": 8000 | |
}, | |
"outrasInformacoes": { | |
"type": "String", | |
"required": true, | |
"limit": 8000 | |
} | |
}, | |
"hidden": [], | |
"validations": [], | |
"relations": { | |
"snapshots": { | |
"model": "Proposta", | |
"type": "hasMany", | |
"foreignKey": "id" | |
} | |
}, | |
"acls": [ | |
{ | |
"accessType": "WRITE", | |
"principalType": "ROLE", | |
"principalId": "$everyone", | |
"permission": "DENY" | |
}, | |
{ | |
"accessType": "READ", | |
"principalType": "ROLE", | |
"principalId": "$everyone", | |
"permission": "ALLOW" | |
} | |
], | |
"scope": { | |
"limit": 25, | |
"order": [ | |
"updatedAt DESC" | |
] | |
}, | |
"indexes": { | |
"updatedAt_index": { | |
"timestamp_ms": -1 | |
} | |
}, | |
"methods": [], | |
"http": { | |
"path": "/proponentes" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment