import { Document, Schema, model } from 'mongoose'; export interface MemberInterface extends Document { userID: string additional: { langs: ['js', 'py', 'rb', 'ts', 'rs', 'go', 'cfam', 'csharp', 'swift', 'java', 'kt', 'asm'], operatingSystems: ['arch', 'deb', 'fedora', 'manjaro', 'mdarwin', 'redhat', 'ubuntu', 'win'], }, } const Member: Schema = new Schema({ userID: String, additional: { langs: Array, operatingSystems: Array, }, }); export default model('Member', Member);