UNPKG

openhim-core

Version:

The OpenHIM core application that provides logging and routing of http requests

48 lines (40 loc) 903 B
var ClientSchema, Schema, connectionDefault, mongoose, server; mongoose = require("mongoose"); server = require("../server"); connectionDefault = server.connectionDefault; Schema = mongoose.Schema; ClientSchema = new Schema({ "clientID": { type: String, required: true, unique: true, index: true }, "clientDomain": { type: String, unqiue: true, index: true }, "name": { type: String, required: true }, "roles": [ { type: String, required: true } ], "passwordAlgorithm": String, "passwordHash": String, "passwordSalt": String, "certFingerprint": String, "organization": String, "location": String, "softwareName": String, "description": String, "contactPerson": String, "contactPersonEmail": String }); exports.Client = connectionDefault.model('Client', ClientSchema); //# sourceMappingURL=clients.js.map