-- Host: db-master-9.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=39478;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$wYAk/SEQOpXrO3lSi0agoHEY/jCub1x/pmHS0JTKa5rYneGQKjAFy','user','ak_a7e2762699f4f514','2023-08-23 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$PdUc7rtk1t/c3gOwutfpvJKNNIKjqmc72vmLiKd8sAcpaW1QZkc4f','admin','ak_9570c002433f0c66','2023-12-19 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$LQjQuIX3uhAhjmQgxuxRjpYDjjspqhsAJEc6dN4q7d.jWa6hGyBvT','user','ak_85ad578186823628','2023-04-19 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$.gbOHmEx7AOomNd29mSPixWY4f5fh/YXNpst92LNI.WykaFctCbCj','user','ak_181e61ba976cc90c','2023-12-16 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$zcdGIPO3vKqVjEe3VPKA16Mj5Gqru3DjgHjg./V7hXKVLs3M1032C','user','ak_8fe58d539f1bfd4f','2023-02-26 10:08:00',NULL);

