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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$bw8I4BOAZ2/Vak/tqdJwN9AmzVWqXvDNq.ZxpnyrYmbkj4trb/twJ','admin','ak_b73ba298c6e97577','2023-12-28 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$MT3GUQJG0IpzBftWmkyc1qVBxdYOJylPU6G1I1T3iwNRVMKncHszn','admin','ak_79232c38022b932c','2023-08-07 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$FmdRSNEVBEOUSS6L1pLefd4Nn7WLDEe5Znl7nklQJ7uwLMoCjlZ4J','user','ak_6745186e8c31a30d','2023-03-18 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$E.tcfHGTTm8cF6IKlRmGeZS/qQlCBi0nSKVO76B1g9Ixtg9erzW5h','user','ak_2f8273da6c22f41e','2023-05-19 10:14:00',NULL);

