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