UNPKG

593 BPlain TextView Raw
1import * as bcrypt from "bcrypt-nodejs";
2import * as crypto from "crypto";
3import * as mongoose from "mongoose";
4import { ObjectId } from "mongodb";
5
6const formSchema = new mongoose.Schema(
7 {
8 name: { type: String },
9 form: {},
10 events: {
11 accept: {
12 show: { type: Boolean, default: true },
13 text: { type: String, default: "ثبت" }
14 },
15 cancel: {
16 show: { type: Boolean, default: true },
17 text: { type: String, default: "انصراف" }
18 }
19 }
20 },
21 { timestamps: true }
22);
23
24const Form = mongoose.model("Form", formSchema);
25
26export { Form };