Category.js 676 Bytes
Newer Older
kusang96's avatar
kusang96 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import mongoose from 'mongoose'

const { Array } = mongoose.Schema.Types

const CategorysSchema = 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.Categorys || mongoose.model('Categorys', CategorysSchema)