dappros/ethora

View on GitHub
bots/merchantBot/models/questions.js

Summary

Maintainability
A
0 mins
Test Coverage
import mongoose from "mongoose";

const Schema = mongoose.Schema;

const Questions = new Schema({
    question_id: {type: Number, required: true, index: true, unique: true},
    question: {type: String, required: true},
    buttons: [],
    validation: {type: String},
    group: {type: String, required: true},
    shortName: {type: String}
});

export const Question = mongoose.model('Questions', Questions);