mirror of
https://github.com/franjsco/tick3t-api
synced 2025-06-05 22:09:20 +02:00
rename model: category
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
const mongoose = require('mongoose');
|
import mongoose from 'mongoose';
|
||||||
|
|
||||||
// Define a schema
|
// Define a schema
|
||||||
const { Schema } = mongoose;
|
const { Schema } = mongoose;
|
||||||
@@ -8,10 +8,6 @@ const CategorySchema = new Schema({
|
|||||||
type: String,
|
type: String,
|
||||||
trim: true,
|
trim: true,
|
||||||
},
|
},
|
||||||
name: {
|
|
||||||
type: String,
|
|
||||||
trim: true,
|
|
||||||
},
|
|
||||||
value: {
|
value: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
Reference in New Issue
Block a user