2
0

maj.sql 1020 B

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