We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd6b82e commit ca8431cCopy full SHA for ca8431c
notes.js
@@ -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