1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const mongoose = require("mongoose");
|
4 | const formSchema = new mongoose.Schema({
|
5 | name: { type: String },
|
6 | form: {},
|
7 | events: {
|
8 | accept: {
|
9 | show: { type: Boolean, default: true },
|
10 | text: { type: String, default: "ثبت" }
|
11 | },
|
12 | cancel: {
|
13 | show: { type: Boolean, default: true },
|
14 | text: { type: String, default: "انصراف" }
|
15 | }
|
16 | }
|
17 | }, { timestamps: true });
|
18 | const Form = mongoose.model("Form", formSchema);
|
19 | exports.Form = Form;
|
20 |
|
\ | No newline at end of file |