forked from premieroctet/openchakra
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aftral[premieroctet#25]: added certifications and templates for later…
… use
- Loading branch information
1 parent
443cbf0
commit d7d7518
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
backend/web/server/plugins/aftral-lms/schemas/CertificationSchema.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const mongoose = require('mongoose') | ||
const {schemaOptions} = require('../../../utils/schemas') | ||
|
||
const Schema = mongoose.Schema | ||
|
||
const CertificationSchema = new Schema({ | ||
name: { | ||
type: String, | ||
required: [true, `Le nom est obligatoire`], | ||
}, | ||
url: { | ||
type: String, | ||
required: [true, `Le lien est obligatoire`], | ||
}, | ||
}, {...schemaOptions}) | ||
|
||
/* eslint-disable prefer-arrow-callback */ | ||
/* eslint-enable prefer-arrow-callback */ | ||
|
||
module.exports = CertificationSchema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters