@cholang/blog-schemas
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@cholang/blog-schemas", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,9 @@ const {Schema} = require('mongoose') | ||
const Category = new Schema({ | ||
source_id: { | ||
type: String, | ||
trim: true, | ||
required: true, | ||
index: true | ||
}, | ||
name: { | ||
@@ -11,2 +18,7 @@ type: String, | ||
color: { | ||
type: String, | ||
trim: true | ||
}, | ||
slug: { | ||
@@ -13,0 +25,0 @@ type: String, |
2028
82