-- Host: db-master-6.internal    Database: webapp_db


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=17551;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$VT4BL0hM5ANVo5ilLv7qtayAN.ajkBLusE4ryz24akmKuc2iZr1CA','user','ak_333b0890a4fe2dd1','2023-09-22 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$ZIW1RGbwaoO1wAHogoEG7FiyvSWJ5zsyH5r9N2OLpgai.4iRw/IOE','admin','ak_c950e8f8273b04e8','2023-09-28 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$Y/Z58XhDpjIMvLZqaI9Asr8.zr/vtlzcMxejAMCndNCDWk1B6P4NV','admin','ak_e82b70af22fc26f7','2023-05-05 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$W8rP0YpZH0pLxBr0ctY9yl1PXg0ZeGF8edpX9LhoJGzWTvwyFN77U','user','ak_4e31e3048fc82264','2023-12-27 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$I6KgLN2jSXZ45fStCdGRWsvnO4epiTN9B2PLDkoMctnr4.kXPj3gI','user','ak_6ac5266ba5a2a99b','2023-09-09 10:09:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=28488;

--
-- Dumping data for table `products`
--


