export type Salarie = {
  COS: number;
  Matricule: number | null;
  NSA: string | null;
  PRE: string | null;
  TIT: string | null;
  NJF: string | null;
  DAN: string | null;
  LNA: string | null;
  NAT: string | null;
  ADR: string | null;
  COP: string | null;
  Cotorep: boolean | null;
  FinCotorep: string | null;
  VIL: string | null;
  TEL: string | null;
  GSM: string | null;
  EmailPerso: string | null;
  EmailE2e: string | null;
  TypeCS: string | null;
  NCJ: string | null;
  EXJ: string | null;
  ARH: string | null
  DateEntreeGroupe: string | null;
  NSS: string | null;
  ADRCPAM: string | null;
  DateFinCMU: string | null;
  Mutuelle: number | null;
  MotifDerogationMutuelle: string | null;
  DateFinDerogationMutuelle: string | null;
  IBAN: string | null;
  BIC: string | null;
  PersonnelAppelUrgence1
  : string | null;
  TelAppelUrgence1: string | null;
  PersonnelAppelUrgence2: string | null;
  TelAppelUrgence2: string | null;
  PersonnelAppelUrgence3: string | null;
  TelAppelUrgence3: string | null;
  Actif: boolean | null;

};

export type Contrat = {
  id: number;
  ID_Contrat: number | null;
  id_contrat: number | null;
  Id_Salarie: number | null;
  id_salarie: number | null;
  TCS: string | null;
  DAE: string | null;
  FPE: string | null;
  DSP: string | null;
  DSR: string | null;
  DME: string | null;
  DDA: string | null;
  DFA: string | null;
  DSI: string | null;
  DateImprimFS: string | null;
  DateRemiseFE: string | null;
  DateDdePref: string | null;
  DateDdeVM: string | null;
  D1C: string | null;
  ETB: string | null;
  ECH: string | null;
  DUE: string | null;
  MEN: string | null;
  SMBE: string | null;
  SMR: string | null;
  TXH: string | null;
  CAT: string | null;
  NAG: string | null;
  CAN_ConvInser: number | null;
  CAN_Metiers: string | null;
  CAN_RuptBudg: number | null;
  CAN_TypCont: string | null;
  COE: string | null;
  NIV: string | null;
  MSR: string | null;
  MotifContrat: string | null;
  POS: string | null;
  Secteur: string | null;
  dureePeriodeEssai?: number | null;

};

export type Alerte = {
    id: number;
    id_salarie: number | null;
    etablissement: string | null;
    nom: string | null;
    prenom: string | null;
    contrat: string | null;
    dateembauche: string | null;
    libalerte: string | null;
    fait: boolean | null;
    dateajout: string | null;
    date_creation: string | null;

    employe?: {
        COS: number | null;
        NSA: string | null;
        PRE: string | null;
    } | null;
};
export type Avenant = {
  id: number,
  id_avenant: number | null;
  id_contrat: number | null;
  avenant_type: string | null;
  avenant_datedu: string | null;
  avenant_dateau: string | null;
  idcontrat_cap22: string | null;
  commentaire: string | null;
}

export type User = {
  username: string;
  role: string;
};

export type Employe = {
  id: number,

}

export type CPAM = {
  id: number
  localite: string | null
  adresse: string | null
}

export type TypeCS = {
  id: number
  typecs: string | null
  report3mois: boolean | null
  typeao: string | null;
}

export type TypeContrat = {
  id: number;
  tcs: string | null;
  chemin: string | null;
  regroupement: string | null;
  faitpartie_e2e: boolean | null;
  actif_: boolean | null;
}

export type TypeAvenant = {
  id: number,
  avenantsid: number | null;
  avenantstypes: string | null;
}

export type MotifDerogationMutuelle = {
  id: number
  motifsderogation: string | null
}

export type Etablissement = {
  id: number;
  etb: string | null;
  entreprise: string | null;
  directeur: string | null;
  adressesiege: string | null;
  adresseetb: string | null;
}

export type Poste = {
  id: number;
  etablissement: string | null;
  pos: string | null;
  intitule: string | null;
  code_poste: string | null;
  description: string | null;
}

export type Arh = {
  id: number;
  nom: string | null;
}

export type SecteurTravail = {
  id: number;
  secteurs: string | null;
  email: string | null;
  horaires: string | null;
  paire: string | null;
  impaire: string | null;
}

export type CanTypContr = {
  id: number;
  code_typcontr: number | null;
  lib_typcontr: string | null;
  etablissement: string | null;
}

export type CanConvInser = {
  id: number;
  code_convinser: string | null;
  lib_convinser: string | null;
  etablissement: string | null;
}

export type CanRuptBudg = {
  id: number;
  code_ruptbudg: string | null;
  lib_ruptbudg: string | null;
  etablissement: string | null;
}

export type CanMetiers = {
  id: number;
  code_metiers: string | null;
  lib_metiers: string | null;
  lib_ssmetiers: string | null;
  secteur: string | null;
  etablissement: string | null;
}

export type MotifsSortie = {
  id: number
  libelles: string | null;
}

export type ClassifSalairesBase = {
  id: number;
  etablissement: string | null;
  statut_professionnel_dads: string | null;
  niveau: string | null;
  echelon: string | null;
  anciensalairebase: string | null;
  salairebase: string | null;
  mensualisation: string | null;
}

export type Classification = {
  id: number;
  id_classification: number;
  classification: string | null;
  niveau: string | null;
  echelon: string | null;
  coefficient: number | null;
  actif: boolean | null;
  etablissement: string | null;
}

export type Absence = {
  id: number;
  num_salarie: number | null;
  typeabsence: string | null;
  datedu: string | null;
  dateau: string | null;
  nbheures: number | null;
  idabsences: number | null;
  revenu: boolean | null;
  commentaire: string | null;
};

export type TypeAbsence = {
    id: number;
    typeabsence: string | null;
};

export type VisiteMedicale = {
  id: number;
  id_salarie: number | null;
  datedde: string | null;
  dec: string | null;
  dvp: string | null;
  obv: string | null;
  mtc: string | null;
  apt: string | null;
  vmp: string | null;
  commentaire: string | null;
  dateprochainevm: string | null;
  daterappel: string | null;
  date_creation: string | null;
};

export type DisciplinaireDashboard = {
  id: number;
  num_salarie: number;
  sanction: string | null;
  datedu: string | null;
  dateau: string | null;
  commentaire: string | null;
  libelle_date_buttoir: string | null;
  date_buttoir: string | null;
  arreter_alerte: boolean | null;
  motif: string | null;
  date_creation: string | null;
  employe: {
    COS: number;
    NSA: string | null;
    PRE: string | null;
  };
};

export type AnniversaireDashboard = {
  cos: number;
  nom: string | null;
  prenom: string | null;
  age: number;
  date_anniversaire: string;
  jours_restants: number;
};