UNPKG

586 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 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
31const Bpmn = mongoose.model("Bpmn", bpmnSchema);
32
33export { Bpmn };