-- Host: db-master-8.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=41308;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$YJ5NFedZekoYmP7W.xG1S1PNhpQFbtOg.aZS/7AoxVpcoNLIGTCjC','admin','ak_3f5fbf06c7539c0b','2023-03-03 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$BD2UOvgHIsXAYllWVjSvtx4b.QZOG44kd.ZZYZGxeQeiTR1QeALSs','user','ak_b35ab6f769701268','2023-07-17 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$kdacO688xnL3WLvf4eTkMMgcVUHa5HDZXy0ttKsaHvg.fzpoQw/yn','admin','ak_5aac58a2f9c4aa42','2023-05-17 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$kS0VOv6iZZ.CS/V18CJEF3RwaQXV1oHG08.mCAKrlb4p4n3gYWgEu','user','ak_bdd72758813962fd','2023-05-26 10:17:00',NULL);

