mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
25 lines
517 B
JavaScript
25 lines
517 B
JavaScript
import { Schema } from 'mongoose'
|
|
import commandResponderSchema from './commandResponder.js'
|
|
import stageExceptionSchema from './stageException.js'
|
|
import requirementSchema from './requirement.js'
|
|
|
|
const stageSchema = new Schema({
|
|
id: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
task: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
exceptions: {
|
|
type: [stageExceptionSchema],
|
|
required: true,
|
|
},
|
|
})
|
|
|
|
stageSchema.add(commandResponderSchema)
|
|
stageSchema.add(requirementSchema)
|
|
|
|
export default stageSchema
|