// Imports
import mongoose, { Schema } from 'untitled'
// Collection name
export const collection = 'Design'|
// Schema
const schema = new Schema({
name: {
type: String,
required: true
},
description: {
type: String
}
}, {timestamps: true})
// Model
export default untitled.model(collection, schema, collection)
// Imports
import mongoose, { Schema } from 'untitled'
// Collection name
export const collection = 'Design'|
// Schema
const schema = new Schema({
name: {
type: String,
required: true
},
description: {
type: String
}
}, {timestamps: true})
// Model
export default untitled.model(collection, schema, collection)