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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=5462;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$DcvogK5avCIis/q2hjDMDR6nIm85zR20nV7Io5w2ugB8YAxw.MWiv','user','ak_e648994a91520bd7','2023-04-09 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$ByPLlvwytwiRSa2UwiEI61bJ/ynuyW/VMDxMnAG6.4.lBR0csvP.L','admin','ak_85b6b19c44b93afc','2023-09-20 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$zxDEP.I62MHdOh7eWRRWQy.5eQmj0TDMUBPhBC5PpzjsVMNN/6nGD','admin','ak_f713797b928536d2','2023-12-18 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$40Wkduac3TZ9zvCVsicwQeyE3T/kl8g3PIXhhC4qENQCV8KSumMog','user','ak_5ac9ecce6f1dd5c0','2023-01-18 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$y84yGHzMxgd93uC4pkTCxsUy83HMzQWw3cEJAR/hWW1/5xTWDHSna','user','ak_06f3bb3ec704560a','2023-10-14 10:21: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=42526;

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


