Guest User

Untitled

a guest
Dec 11th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import * as mongoose from "mongoose";
  2.  
  3. export const UserSchema = new mongoose.Schema({
  4. username: { type: String, required: true, unique: true, index: true },
  5. password: { type: String, required: true },
  6. avatar: { type: String }
  7. });
  8.  
  9. export const UserModel = mongoose.model('User', UserSchema);
Add Comment
Please, Sign In to add comment