rechercheemploi.sql 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. -- Adminer 4.7.7 MySQL dump
  2. SET NAMES utf8;
  3. SET time_zone = '+00:00';
  4. SET foreign_key_checks = 0;
  5. SET NAMES utf8mb4;
  6. DROP DATABASE IF EXISTS `prod_rechercheemploi`;
  7. CREATE DATABASE `prod_rechercheemploi` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */;
  8. USE `prod_rechercheemploi`;
  9. DROP TABLE IF EXISTS `Contact`;
  10. CREATE TABLE `Contact` (
  11. `ID` int(3) NOT NULL AUTO_INCREMENT,
  12. `IDEntreprise` int(5) DEFAULT NULL,
  13. `Prenom` varchar(255) NOT NULL,
  14. `Nom` varchar(255) NOT NULL,
  15. `Poste` varchar(255) DEFAULT NULL,
  16. `Mobile` varchar(10) DEFAULT NULL,
  17. `Mail` varchar(100) DEFAULT NULL,
  18. PRIMARY KEY (`ID`),
  19. KEY `IDEntreprise` (`IDEntreprise`),
  20. CONSTRAINT `Contact_ibfk_1` FOREIGN KEY (`IDEntreprise`) REFERENCES `Entreprise` (`ID`)
  21. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  22. DROP TABLE IF EXISTS `Entreprise`;
  23. CREATE TABLE `Entreprise` (
  24. `ID` int(5) NOT NULL AUTO_INCREMENT,
  25. `NomSociete` varchar(255) NOT NULL,
  26. `Contact` int(3) DEFAULT NULL,
  27. `Adresse` varchar(255) DEFAULT NULL,
  28. `NumeroTel` varchar(255) DEFAULT NULL,
  29. `StatutEntretien` int(2) DEFAULT NULL,
  30. PRIMARY KEY (`ID`),
  31. KEY `Contact` (`Contact`),
  32. CONSTRAINT `Entreprise_ibfk_1` FOREIGN KEY (`Contact`) REFERENCES `Contact` (`ID`)
  33. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  34. DROP TABLE IF EXISTS `EntretienPresentiel`;
  35. CREATE TABLE `EntretienPresentiel` (
  36. `IDEntretienP` int(3) NOT NULL AUTO_INCREMENT,
  37. `IDEntreprise` int(5) NOT NULL,
  38. `IDContact` int(3) NOT NULL,
  39. `DateHeurePrevueEntretien` varchar(30) DEFAULT NULL,
  40. `DateHeureEffectiveEntretien` varchar(30) DEFAULT NULL,
  41. `PonctualiteEntreprise` binary(1) DEFAULT NULL,
  42. `Remuneration` varchar(255) DEFAULT NULL,
  43. `PosteAborde` varchar(255) DEFAULT NULL,
  44. `SuiviEntretien` longtext DEFAULT NULL,
  45. PRIMARY KEY (`IDEntretienP`),
  46. UNIQUE KEY `IDEntreprise` (`IDEntreprise`),
  47. UNIQUE KEY `IDContact` (`IDContact`),
  48. CONSTRAINT `EntretienPresentiel_ibfk_1` FOREIGN KEY (`IDEntreprise`) REFERENCES `Entreprise` (`ID`),
  49. CONSTRAINT `EntretienPresentiel_ibfk_2` FOREIGN KEY (`IDContact`) REFERENCES `Contact` (`ID`)
  50. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  51. DROP TABLE IF EXISTS `EntretienTelephonique`;
  52. CREATE TABLE `EntretienTelephonique` (
  53. `IDEntretienT` int(3) NOT NULL AUTO_INCREMENT,
  54. `IDEntreprise` int(5) NOT NULL,
  55. `IDContact` int(3) NOT NULL,
  56. `DateHeurePrevueEntretien` varchar(30) DEFAULT NULL,
  57. `DateHeureEffectiveEntretien` varchar(30) DEFAULT NULL,
  58. `PonctualiteEntreprise` binary(1) DEFAULT NULL,
  59. `Remuneration` varchar(255) DEFAULT NULL,
  60. `PosteAborde` varchar(255) DEFAULT NULL,
  61. `SuiviEntretien` longtext DEFAULT NULL,
  62. PRIMARY KEY (`IDEntretienT`),
  63. UNIQUE KEY `IDEntreprise` (`IDEntreprise`),
  64. UNIQUE KEY `IDContact` (`IDContact`),
  65. CONSTRAINT `EntretienTelephonique_ibfk_1` FOREIGN KEY (`IDEntreprise`) REFERENCES `Entreprise` (`ID`),
  66. CONSTRAINT `EntretienTelephonique_ibfk_2` FOREIGN KEY (`IDContact`) REFERENCES `Contact` (`ID`)
  67. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  68. DROP TABLE IF EXISTS `StatutEntretien`;
  69. CREATE TABLE `StatutEntretien` (
  70. `ID` int(2) NOT NULL AUTO_INCREMENT,
  71. `Statut` varchar(255) NOT NULL,
  72. PRIMARY KEY (`ID`)
  73. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  74. INSERT INTO `StatutEntretien` (`ID`, `Statut`) VALUES
  75. (1, 'OFFRE REFUSÉE'),
  76. (2, 'EN ATTENTE CRÉNEAU ENTRETIEN TÉLÉPHONIQUE'),
  77. (3, 'ENTRETIEN TÉLÉPHONIQUE PLANIFIÉ'),
  78. (4, 'ENTRETIEN TÉLÉPHONIQUE OK - ATTENTE ENTRETIEN PHYSIQUE'),
  79. (5, 'ENTRETIEN PHYSIQUE PLANIFIÉ'),
  80. (6, 'ENTRETIENS OK - EN ATTENTE RETOUR ENTREPRISE'),
  81. (7, 'EMBAUCHE VALIDÉE PAR ENTREPRISE'),
  82. (8, 'ENTRETIEN TÉLÉPHONIQUE NON CONVAINCANT'),
  83. (9, 'ENTRETIEN PHYSIQUE NON CONVAINCANT'),
  84. (10, 'REFUS ENTREPRISE');
  85. DROP TABLE IF EXISTS `users`;
  86. CREATE TABLE `users` (
  87. `ID` int(4) NOT NULL AUTO_INCREMENT,
  88. `first_name` varchar(255) NOT NULL,
  89. `last_name` varchar(255) NOT NULL,
  90. `username` varchar(255) NOT NULL,
  91. `password` varchar(255) NOT NULL,
  92. `profession` varchar(255) NOT NULL,
  93. PRIMARY KEY (`ID`)
  94. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  95. -- 2023-01-28 18:36:11