community-relations/src/models/Member.ts

20 lines
514 B
TypeScript
Raw Normal View History

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 17:05:50 -04:00
operatingSystems: ['arch', 'deb', 'fedora', '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);