-- Host: db-master-9.internal    Database: main_app


--
-- 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=1043;

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


--
-- 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=40083;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$ZHSURQPM75pbFoq8vsV6LPv5/ZpfV8NlK92MfjweutMUGwEyi2ZM.','user','ak_0e405390735df648','2023-11-05 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$Js7fpu0QWgzfvVqyvIvlEXHq/2ivX7xa.D3lsnXpCLub.2cvNETc8','user','ak_8c3153c01176daa7','2023-02-18 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$17x1Smt8/h7jtmO.HpkZulEOyyAKKcR7ZzIXdCbbug.eGciam4O1O','user','ak_81b7a4dc03fb76b4','2023-03-15 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$EeaZfRbOUJVUmJhA7ZJv4X4..jgGZxyI1UDB.rCBD9Plw5QT2kM2J','admin','ak_dd09ac571dd18948','2023-05-11 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$iEmBS4MwRrDQ.mplafJH6e/Z3p5qHYEMKUeL1lzxhJmy2h8Il9KTw','admin','ak_0aad5d7e60b0b9bf','2023-05-17 10:06:00',NULL);

