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
'
const
{
String
}
=
mongoose
.
Schema
.
Types
const
{
String
,
Number
}
=
mongoose
.
Schema
.
Types
const
ProductSchema
=
new
mongoose
.
Schema
({
pro_name
:
{
...
...
@@ -33,20 +33,19 @@ const ProductSchema = new mongoose.Schema({
required
:
true
,
},
sub_category
:
{
type
:
Array
,
type
:
[
String
]
,
required
:
true
,
},
description
:
{
type
:
String
,
required
:
true
,
},
main_im
age
:
{
type
:
Array
,
required
:
true
,
main_im
gUrl
:
{
type
:
String
,
required
:
true
},
detail_image
:
{
type
:
Array
,
required
:
true
,
detail_imgUrls
:
{
type
:
[
String
]
}
},
{
timestamps
:
true
...
...
server/schemas/User.js
View file @
39c07bff
...
...
@@ -16,7 +16,6 @@ const UserSchema = new mongoose.Schema({
type
:
String
,
required
:
true
,
},
number1
:
{
type
:
String
,
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