12 lines
383 B
JavaScript
12 lines
383 B
JavaScript
const mongoose = require('mongoose');
|
|
const { Schema } = mongoose;
|
|
|
|
const schema = new Schema({
|
|
group_label: { type: String, required: true },
|
|
group_key: { type: String, required: true },
|
|
group_field_type: { type: String,default:'text' }, // text, textarea, html, select
|
|
group_options: [{ type: String }]
|
|
});
|
|
|
|
module.exports = mongoose.model( "metagroups", schema );
|