maj.sql 1.0 KB

12345678910111213141516171819202122
  1. CREATE TABLE `jwt` (
  2. `id_user` int NOT NULL,
  3. `md5` varchar(32) NOT NULL,
  4. `jwt` text NOT NULL,
  5. `creer` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  6. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  7. ALTER TABLE `jwt`
  8. ADD KEY `user_jwt` (`id_user`);
  9. ALTER TABLE `jwt`
  10. ADD CONSTRAINT `user_jwt` FOREIGN KEY (`id_user`) REFERENCES `user` (`id`);
  11. UPDATE `access` SET `access` = 'document*\r\ndocuments*', `add` = '0' WHERE `access`.`id` = 16;
  12. INSERT INTO `access` (`id`, `label`, `show`, `add`, `access`, `noAccess`) VALUES
  13. (17, 'Documents', 0, 1, 'add-document', '');
  14. INSERT INTO `type_access` (`id`, `id_type`, `id_access`, `exception`) VALUES ('7#16', '7', '16', NULL);
  15. INSERT INTO `type_access` (`id`, `id_type`, `id_access`, `exception`) VALUES ('6#17', '6', '17', 'salaire');
  16. INSERT INTO `type_access` (`id`, `id_type`, `id_access`, `exception`) VALUES ('5#17', '5', '17', 'salaire');
  17. INSERT INTO `type_access` (`id`, `id_type`, `id_access`, `exception`) VALUES ('4#17', '4', '17', 'salaire');