import { Document, Schema, model } from 'mongoose'; export interface PagerNumberRaw { num: string, // This field will be "" if the pager number doesn't belong to an individual user individualAssignID: string, emailAddresses: string[], discordIDs: string[], } export interface PagerNumberInterface extends Document { num: string, // This field will be "" if the pager number doesn't belong to an individual user individualAssignID: string, emailAddresses: string[], discordIDs: string[], } const PagerNumber: Schema = new Schema({ num: String, individualAssignID: String, emailAddresses: Array, discordIDs: Array, }); export default model('PagerNumber', PagerNumber);