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 bpmnSchema = new mongoose.Schema(
|
7 | {
|
8 | Name: String,
|
9 | Tasks: {
|
10 | Id: String,
|
11 | Name: String,
|
12 | Participants: {
|
13 | type: [ {} ],
|
14 | default: []
|
15 | },
|
16 | Properties: {
|
17 | type: {
|
18 | Type: String,
|
19 | fields: [ {} ]
|
20 | },
|
21 | default: {}
|
22 | }
|
23 | },
|
24 | Events: {},
|
25 | Gateways: {},
|
26 | XML: String
|
27 | },
|
28 | { timestamps: true }
|
29 | );
|
30 |
|
31 | const Bpmn = mongoose.model("Bpmn", bpmnSchema);
|
32 |
|
33 | export { Bpmn };
|