2020-04-24 23:46:29 -04:00
|
|
|
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'],
|
2020-05-06 19:34:11 -04:00
|
|
|
operatingSystems: ['arch', 'deb', 'cent', 'fedora', 'manjaro', 'mdarwin', 'redhat', 'ubuntu', 'win'],
|
2020-04-24 23:46:29 -04:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
const Member: Schema = new Schema({
|
|
|
|
userID: String,
|
|
|
|
additional: {
|
|
|
|
langs: Array,
|
2020-05-06 17:05:50 -04:00
|
|
|
operatingSystems: Array,
|
2020-04-24 23:46:29 -04:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default model<MemberInterface>('Member', Member);
|