module.exports = (sequelize, DataTypes) => {
  const Cita = sequelize.define('Cita', {
    id: {
      type: DataTypes.INTEGER,
      primaryKey: true,
      autoIncrement: true
    },
    Appointment: {
      type: DataTypes.DATE
    },
    Reason: {
      type: DataTypes.TEXT
    },
    Amount: {
      type: DataTypes.TEXT
    },
    Pay: {
      type: DataTypes.TEXT
    },
    Paymentstatus: {
      type: DataTypes.TEXT
    },
    Condition: {
      type: DataTypes.TEXT
    },
    Type: {
      type: DataTypes.TEXT
    },
    Referred: {
      type: DataTypes.TEXT
    },
    Companion: {
      type: DataTypes.TEXT
    },
    Relationship: {
      type: DataTypes.STRING(20)
    },
    BloodPressure: {
      type: DataTypes.TEXT
    },
    HeartRate: {
      type: DataTypes.TEXT
    },
    BreathingFrequency: {
      type: DataTypes.TEXT
    },
    Temperature: {
      type: DataTypes.TEXT
    },
    Saturation: {
      type: DataTypes.TEXT
    },
    SickTime: {
      type: DataTypes.TEXT
    },
    CurrentEpisode: {
      type: DataTypes.TEXT
    },
    StartWay: {
      type: DataTypes.TEXT
    },
    SignsandSymptoms: {
      type: DataTypes.TEXT
    },
    DescriptionProblem: {
      type: DataTypes.TEXT
    },
    SurgicalHistory: {
      type: DataTypes.TEXT
    },
    MedicalHistory: {
      type: DataTypes.TEXT
    },
    AllergicHistory: {
      type: DataTypes.TEXT
    },
    PhysicalExam: {
      type: DataTypes.TEXT
    },
    Diagnosis: {
      type: DataTypes.TEXT
    },
    LaboratoryExam: {
      type: DataTypes.TEXT
    },
    Creatininevalue: {
      type: DataTypes.TEXT
    },
    Urea: {
      type: DataTypes.TEXT
    },
    ETS: {
      type: DataTypes.BOOLEAN
    },
    Specifyothers: {
      type: DataTypes.TEXT
    },
    Labamount: {
      type: DataTypes.TEXT
    },
    Labpay: {
      type: DataTypes.TEXT
    },
    Labpaymentstatus: {
      type: DataTypes.TEXT
    },
    Labstatus: {
      type: DataTypes.TEXT
    },
    Labreceptiondate: {
      type: DataTypes.DATE
    },
    Labresultdate: {
      type: DataTypes.DATE
    },
    AgendaId: {
      type: DataTypes.INTEGER
    },
    AdminId: {
      type: DataTypes.INTEGER,
      allowNull: false
    },
    ClienteId: {
      type: DataTypes.INTEGER,
      allowNull: false
    }
  });
  
  return Cita;
};