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


module.exports = {
    tableName: 'annee_scolaire',

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

        anneeScolaire: {
            type: 'string',
            columnName: 'annee_scolaire',
            //columnType:'datetime',
            //allowNull: false,
            required: true,

        },
        dateDebut: {
            //type: 'string',
            type: 'ref',
            columnName: 'date_debut',
           // columnType:'datetime',
            //allowNull: true

        },
        dateFin: {
            type: 'ref',
            //type: 'string',
            columnName: 'date_fin',
            //columnType:'datetime',
            //allowNull: true

        },

    },

};

