Skip to content

Instantly share code, notes, and snippets.

@YoussefLagtab
Forked from yzemmouri/bd.js
Created July 18, 2018 13:39
Show Gist options
  • Save YoussefLagtab/efddfdaf3df710b1446032f3ea98af47 to your computer and use it in GitHub Desktop.
Save YoussefLagtab/efddfdaf3df710b1446032f3ea98af47 to your computer and use it in GitHub Desktop.
bd
import SimpleSchema from 'simpl-schema'
let EtudiantSchema = new SimpleSchema({
apogee: !String,
cne: !String,
cin: !String,
nom: !String,
prenom: !String,
dateNaiss: !Date,
nationalité: !String,
inscrit: {
filiere: !String,
semestre: ![Number],
module: ![String]
},
note: {
resultat: [
{
annee: String,
ord: [
{
codeMod: String,
note: Number,
isVal: Boolean
}
],
Rat: [
{
codeMod: String,
note: Number,
isVal: Boolean
}
]
}
],
archive: {
L1: {
isVal: Boolean,
mention: String,
S1: {
isVal: Boolean,
mention: String,
moyenne: !Number,
note: [
{
codeMod: String,
note: String
}
]
},
S2: {
isVal: Boolean,
mention: String,
moyenne: !Number,
note: [
{
codeMod: String,
note: String
}
]
}
},
L2: {
isVal: Boolean,
mention: String,
moyenne: Number,
S3: {
isVal: Boolean,
mention: String,
moyenne: !Number,
note: [
{
codeMod: String,
note: Number
}
]
},
S4: {
isVal: Boolean,
mention: String,
moyenne: !Number,
note: [
{
codeMod: String,
note: Number
}
]
}
},
L3: {
isVal: Boolean,
mention: String,
moyenne: Number,
S5: {
isVal: Boolean,
mention: String,
moyenne: !Number,
note: [
{
codeMod: String,
note: Number
}
]
},
S6: {
isVal: Boolean,
mention: String,
moyenne: !Number,
note: [
{
codeMod: String,
note: Number
}
]
}
}
}
}
})
let UniversiteSchema = new SimpleSchema({
nom: !String,
anneeUniv: !String,
semestre: !Number,
session: !String,
filiere: !Object,
modules: !Object
})
let EmployerSchema = new SimpleSchema({
codeEmp: !String,
type: !String,
userName: !String,
password: !String,
nom: !String,
prenom: !String,
role: ![Object]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment