Sha256: f10f2186084ca66d58ebf2cd618125c3d793888187140fc5fdc9adf0fcd16d54
Contents?: true
Size: 917 Bytes
Versions: 3
Compression:
Stored size: 917 Bytes
Contents
const mongoose = require('mongoose/browser'); const Id = require('../Id'); const [Schema, String, Boolean] = [ mongoose.Schema, mongoose.Schema.Types.String, mongoose.Schema.Types.Boolean, ]; const AddressSchema = new mongoose.Schema({ street: [String], city: String, state: String, zip: String, country: String, use: String, }); const TelecomSchema = new mongoose.Schema({ use: String, value: String, preferred: Boolean, }); const ProviderSchema = new Schema({ _type: { type: String, default: 'Provider' }, givenNames: [String], familyName: String, specialty: String, title: String, addresses: [AddressSchema], telecoms: [TelecomSchema], ids: [Id.IdSchema], }, { id: false }); module.exports.ProviderSchema = ProviderSchema; class Provider extends mongoose.Document { constructor(object) { super(object, ProviderSchema); } } module.exports.Provider = Provider;
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cqm-models-2.0.1 | app/assets/javascripts/cqm/Provider.js |
cqm-models-2.0.0 | app/assets/javascripts/cqm/Provider.js |
cqm-models-1.1.1.0 | app/assets/javascripts/cqm/Provider.js |