github.com/weplanx/server@v0.2.6-0.20240318110640-f7e75155779a/model/workflow.json (about)

     1  {
     2    "$jsonSchema": {
     3      "title": "workflow",
     4      "bsonType": "object",
     5      "required": [
     6        "_id",
     7        "project",
     8        "name",
     9        "kind",
    10        "create_time",
    11        "update_time"
    12      ],
    13      "properties": {
    14        "_id": {
    15          "bsonType": "objectId"
    16        },
    17        "project": {
    18          "bsonType": "objectId"
    19        },
    20        "name": {
    21          "bsonType": "string"
    22        },
    23        "kind": {
    24          "bsonType": "string"
    25        },
    26        "schedule": {
    27          "bsonType": "object",
    28          "required": [
    29            "ref",
    30            "status",
    31            "jobs"
    32          ],
    33          "properties": {
    34            "ref": {
    35              "bsonType": "objectId"
    36            },
    37            "status": {
    38              "bsonType": "bool"
    39            },
    40            "jobs": {
    41              "bsonType": "array",
    42              "items": {
    43                "bsonType": "object",
    44                "required": [
    45                  "mode",
    46                  "spec",
    47                  "option"
    48                ],
    49                "properties": {
    50                  "mode": {
    51                    "bsonType": "string"
    52                  },
    53                  "spec": {
    54                    "bsonType": "string"
    55                  },
    56                  "option": {
    57                    "bsonType": "object"
    58                  }
    59                }
    60              }
    61            }
    62          }
    63        },
    64        "create_time": {
    65          "bsonType": "date"
    66        },
    67        "update_time": {
    68          "bsonType": "date"
    69        }
    70      }
    71    }
    72  }