Skip to content
Snippets Groups Projects
Commit 386e6117 authored by Matt Kirby's avatar Matt Kirby
Browse files

Friend Schemas

parent d464d137
No related branches found
No related tags found
1 merge request!15Add Friend service
import mongoose, { Schema } from 'mongoose'
/**
* Schema for representing an a friend
*/
const FriendSchema = new Schema({
User1: {
type: String,
required: true
},
User2: {
type: String,
required: true
}
})
export default FriendSchema;
\ No newline at end of file
import mongoose, { Schema } from 'mongoose'
/**
* Schema for representing an a request
*/
const RequestSchema = new Schema({
SourceUser: {
type: String,
required: true
},
TargetUser: {
type: String,
required: true
}
})
export default RequestSchema;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment