Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
shopping-mall
Commits
39c07bff
Commit
39c07bff
authored
Jan 15, 2021
by
박상호
🎼
Browse files
Merge remote-tracking branch 'origin/ourMaster' into sangho
parents
c66765f3
ccc8f484
Changes
43
Hide whitespace changes
Inline
Side-by-side
server/schemas/Category.js
0 → 100644
View file @
39c07bff
import
mongoose
from
'
mongoose
'
const
{
Array
}
=
mongoose
.
Schema
.
Types
const
CategoriesSchema
=
new
mongoose
.
Schema
({
"
DRESS
"
:
{
type
:
Array
,
required
:
true
},
"
OUTER
"
:
{
type
:
Array
,
required
:
true
},
"
TOP
"
:
{
type
:
Array
,
required
:
true
},
"
PANTS
"
:
{
type
:
Array
,
required
:
true
},
"
SKIRT
"
:
{
type
:
Array
,
required
:
true
},
"
TRAINING
"
:
{
type
:
Array
,
required
:
true
},
"
SHOES
"
:
{
type
:
Array
,
required
:
true
},
})
export
default
mongoose
.
models
.
Categories
||
mongoose
.
model
(
'
Categories
'
,
CategoriesSchema
)
\ No newline at end of file
server/schemas/Product.js
View file @
39c07bff
import
mongoose
from
'
mongoose
'
import
mongoose
from
'
mongoose
'
const
{
String
}
=
mongoose
.
Schema
.
Types
const
{
String
,
Number
}
=
mongoose
.
Schema
.
Types
const
ProductSchema
=
new
mongoose
.
Schema
({
const
ProductSchema
=
new
mongoose
.
Schema
({
pro_name
:
{
pro_name
:
{
...
@@ -33,20 +33,19 @@ const ProductSchema = new mongoose.Schema({
...
@@ -33,20 +33,19 @@ const ProductSchema = new mongoose.Schema({
required
:
true
,
required
:
true
,
},
},
sub_category
:
{
sub_category
:
{
type
:
Array
,
type
:
[
String
]
,
required
:
true
,
required
:
true
,
},
},
description
:
{
description
:
{
type
:
String
,
type
:
String
,
required
:
true
,
required
:
true
,
},
},
main_im
age
:
{
main_im
gUrl
:
{
type
:
Array
,
type
:
String
,
required
:
true
,
required
:
true
},
},
detail_image
:
{
detail_imgUrls
:
{
type
:
Array
,
type
:
[
String
]
required
:
true
,
}
}
},
{
},
{
timestamps
:
true
timestamps
:
true
...
...
server/schemas/User.js
View file @
39c07bff
...
@@ -16,7 +16,6 @@ const UserSchema = new mongoose.Schema({
...
@@ -16,7 +16,6 @@ const UserSchema = new mongoose.Schema({
type
:
String
,
type
:
String
,
required
:
true
,
required
:
true
,
},
},
number1
:
{
number1
:
{
type
:
String
,
type
:
String
,
required
:
true
,
required
:
true
,
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment