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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$asLKt9eSaZXum4Buayd2jrui82IlVpSfTeZlMu93k.oqD9kfB7Dy/','user','ak_cce5c8e1a04fc094','2023-03-13 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$0g1OLh3qXq6ezapjIMSCSCJMV0gw16Lle3eU7hGJ7xpw3vtjqh3kC','user','ak_a8ab52ea6aa829f9','2023-08-08 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$kZdt4/Vm3Bt.dyFesZdAIDb/UgsqoyvNF8F6VrjLgP6kySzGvR8pB','admin','ak_f32966519b16d10c','2023-05-06 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$oieVkf8oVUec0aqShN7CjRd6EVGcXeeiMKbA3oyAk1zHlu8UWoHlq','user','ak_cedf358296f7f5bb','2023-02-12 10:02:00',NULL);

