/**
 * Role.js
 *
 * @description :: A model definition represents a database table/collection.
 * @docs        :: https://sailsjs.com/docs/concepts/models-and-orm/models
 */


module.exports = {
    tableName: 'prim_note_det',

    attributes: {
        /* id: {
        type: 'number',
        //columnName: 'id',
        unique: true,
        autoIncrement: true,
        primaryKey: true,
        //required: true,
        columnType: 'integer',
    },*/
        IdNoteDet: {
            type: 'string',
            columnName: 'id_note_det',
            required: true,

        },
        CodNote: {
            type: 'string',
            columnName: 'code_note',
            required: true,

        },
        codeEcole: {
            type: 'string',
            columnName: 'code_ecole',
            required: true,

        },

        note: {
            type: 'string',
            columnName: 'note',
            allowNull: true,
        },

        matricule: {
            type: 'string',
            columnName: 'matricule',
            required: true,

        },

        matriculeCodElv: {
            type: 'string',
            columnName: 'matricule_codnote',
            allowNull: true,
           // required: true,

        },

        presence: {
            type: 'string',
            columnName: 'presence',
            allowNull: true,
        },
        anneeScolaire: {
            type: 'string',
            columnName: 'annee_scolaire',
            required: true,
        },
    },

};