module.exports = (sequelize, DataTypes) => {
  const Detallecita = sequelize.define('Detallecita', {
    id: {
      type: DataTypes.INTEGER,
      primaryKey: true,
      autoIncrement: true
    },
    Othersduration: {
      type: DataTypes.TEXT
    },
    Startdate: {
      type: DataTypes.DATE
    },
    Frequency: {
      type: DataTypes.TEXT
    },
    Datethatbecameimportant: {
      type: DataTypes.DATE
    },
    Perday: {
      type: DataTypes.TEXT
    },
    Perweek: {
      type: DataTypes.TEXT
    },
    Permonth: {
      type: DataTypes.TEXT
    },
    Byyear: {
      type: DataTypes.TEXT
    },
    Scale: {
      type: DataTypes.TEXT
    },
    Datescale: {
      type: DataTypes.DATE
    },
    Treatment: {
      type: DataTypes.TEXT
    },
    Observations: {
      type: DataTypes.TEXT
    },
    Protocol: {
      type: DataTypes.BOOLEAN
    },
    Protocoltype: {
      type: DataTypes.TEXT
    },
    CitaId: {
      type: DataTypes.INTEGER,
      allowNull: false
    }
  });
  
  return Detallecita;
};