-- Host: db-master-4.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=17191;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$SvLOgOE7Vy7jyPPNSMP1BeMMtgpInczrrX/CZkzUp5W0ftL1aLb3p','user','ak_2196317cd4fa21ec','2023-08-25 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$ZbcxKoIrZhRYitvIcuB9yHnx.9q3nBuroDlD2NPy673cv5DS8vV3Q','user','ak_3c3e1e3c1eb27ec0','2023-09-13 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$7aEaK.rl3VqFeTJJFA7W4b6e0VEF//OGv/BRsTk3gLCIPZzdaGLK0','user','ak_a75f5146b27412cc','2023-11-13 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$qGkYBzwHyieicY.hL285Vyn4tWRsQ4fMfDFdrA6.5DROe/vv3imDi','user','ak_aadfb88757812573','2023-11-07 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$xRyaWsKWmsRD2OF5Q4BDBUOyMhr2R/zYjxYxWenGiql5aFslxsCxl','admin','ak_291aeea5b5e299f7','2023-01-02 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$iXf/P3SN8EbUOXRgH7lk7RXGCpDBM7KIl8nxmh8K83Ld2rQbfphxI','user','ak_8cee0ebef4904781','2023-12-02 10:15:00',NULL);

