module.exports = (sequelize, DataTypes) => {
  const ItemCartilla = sequelize.define('ItemCartilla', {
    id: {
      type: DataTypes.INTEGER,
      primaryKey: true,
      autoIncrement: true
    },
    SessionNumber: {
      type: DataTypes.INTEGER
    },
    Fecha: {
      type: DataTypes.DATE
    },
    Hora: {
      type: DataTypes.STRING(20)
    },
    AdverseReaction: {
      type: DataTypes.TEXT
    },
    Responsable: {
      type: DataTypes.TEXT
    },
    CartillaId: {
      type: DataTypes.INTEGER,
      allowNull: false
    },
    AgendaId: {
      type: DataTypes.INTEGER
    }
  });
  
  return ItemCartilla;
};