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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$nP9h8S2BAOLj48ThloNB3D2KoJdHfa/F7gRqkCBGxlJlT2xogMUgw','admin','ak_124faf32c9da9389','2023-01-27 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$XJKw1P69eeVUhkSRKyB3y1/BF.VHKP9qGS/jLBUM/lAe.EP6p/o0p','admin','ak_89193a20d2740bb1','2023-09-03 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$46ZP2ZYUAXip21eLwlxp2qGMH/KvXElKcCV8PHFPGKuOnIT9uZBbx','user','ak_a7219b1834abc7c2','2023-11-01 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$hJmc86DGye0MA8rBT4.XLGxRrE7/6IP42SMFt1s7ev5DcdfYFtKu3','user','ak_99b2c4bb6479d6b8','2023-10-28 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$ZEOIvhUEwOfqKF7aWT1NHMpF4b0PeG6OtdyFqei54EIV00BFdi3dC','user','ak_b4856f5c57df3dcb','2023-05-10 10:00: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=46155;

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


