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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$Kx6Ce1e75pi0qAxvClyl0xyvxKJmVxewsGMAOcqoIsgY0AL84dyoz','user','ak_7a81675c87bc0ec9','2023-09-09 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$i12c.DE0Yyc51FZqLMRfTHAyNXnLH5hmqWfD4vsKg2sidW.iJIq79','admin','ak_62f5058f55b3f853','2023-01-10 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$P91M58pUobhOyTwf8gRxP3n2wFKcp0PJauDTDLUAPx.GjEAYwxlw9','admin','ak_25b1886055bf866a','2023-01-21 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$JZQEFho7xwAcjA11WCVjw7t/dQjLjs16m6R98IEujejia9Qc12e3T','user','ak_502aefc70f099197','2023-03-19 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$zUjxtxBMqeiWKQAsMbS7Rv49qTlh62hsLtFQL1/kVEkub1gcwGRZK','user','ak_6f555d314a513a1c','2023-08-02 10:13:00',NULL);

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

--
-- Dumping data for table `products`
--


