1 | import * as bcrypt from "bcrypt-nodejs";
|
2 | import * as crypto from "crypto";
|
3 | import * as mongoose from "mongoose";
|
4 | import { ObjectId } from "mongodb";
|
5 |
|
6 | const 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 |
|
24 | const Form = mongoose.model("Form", formSchema);
|
25 |
|
26 | export { Form };
|