Skip to content

Commit ca8431c

Browse files
committed
added notes file
1 parent dd6b82e commit ca8431c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

notes.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// make database first, model
2+
// create controller,
3+
// create route
4+
5+
const CoffeeSchema = new Schema({ name: , employee: [{ type: Schema.Types.ObjectId, ref: 'Employee' }] });
6+
7+
const AuthSchema = new Schema({
8+
name: String,
9+
role: { type: String, enum: ['Customer', 'CoffeeShop'],
10+
default: 'Customer' },
11+
coffeShop: { type: Sceham}
12+
});
13+
14+
if (user.role === 'CoffeeShop')
15+
16+
componentWillMount() { this.props.fetchCoffeeApi(this.props.user.id); }

0 commit comments

Comments
 (0)