(storeUser)
| 3 | <%_ if (modelFields.length || storeUser) { _%> |
| 4 | const <%= camel %>Schema = new Schema({ |
| 5 | <%_ if (storeUser) { _%> |
| 6 | <%= userField %>: { |
| 7 | type: Schema.ObjectId, |
| 8 | ref: 'User', |
| 9 | required: true |
| 10 | }<%= modelFields.length ? ',' : '' %> |
| 11 | <%_ } _%> |
| 12 | <%_ modelFields.forEach(function (field, i) { _%> |
| 13 | <%= field %>: { |
| 14 | type: String |
no outgoing calls
no test coverage detected