Skip to content

Commit

Permalink
added notes file
Browse files Browse the repository at this point in the history
  • Loading branch information
amituuush committed Jan 17, 2017
1 parent dd6b82e commit ca8431c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions notes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// make database first, model
// create controller,
// create route

const CoffeeSchema = new Schema({ name: , employee: [{ type: Schema.Types.ObjectId, ref: 'Employee' }] });

const AuthSchema = new Schema({
name: String,
role: { type: String, enum: ['Customer', 'CoffeeShop'],
default: 'Customer' },
coffeShop: { type: Sceham}
});

if (user.role === 'CoffeeShop')

componentWillMount() { this.props.fetchCoffeeApi(this.props.user.id); }

0 comments on commit ca8431c

Please sign in to comment.