Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Parent
- module.exports = {
- attributes: {
- text: {type:'string'},
- order: {type:'integer'},
- options: {type:'array'},
- optionType: {type:'string', enum:['single', 'multiple', 'entry']},
- //options:{collection:'options'}
- survey: {
- model: 'survey'
- }
- }
- };
- //Child
- module.exports = {
- attributes: {
- text: {type:'string'},
- order: {type:'integer'},
- options: {type:'array'},
- optionType: {type:'string', enum:['single', 'multiple', 'entry']},
- //options:{collection:'options'}
- survey: {
- model: 'survey'
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement