-- Host: db-master-8.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=14836;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$syvgADqYwLs2hrRG/AT.jc.tudW2jYnWlpkrkljtdboHlW/YeivF3','admin','ak_59aa50fbe2f22c97','2023-03-09 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$v/TAbxg4QahyOBcV0shOv3My44ylKRl0wPMnrFT2ESNXTwdlG2s77','admin','ak_4eec21a9a507cf7b','2023-12-26 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$CKJlqRxnUoC7HIum41D6sNHI1V5XGCF2fj8HOoBAt5PtkmFvQkq.R','admin','ak_741d0f53f120de7c','2023-12-11 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$isS3B2Lo/Y.Ane0XdSK7fV2zG7IuaE8ZL0pOINpIeFg2.HTDCgiSR','admin','ak_a5c3cd975de08ce1','2023-07-27 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$n.PqNQoF3S.XFrPmC1Gwte4KuoSHR9IsgKaPW2sje3wEGzi5kp7lI','admin','ak_bad21d2f1314ea23','2023-11-05 10:09:00',NULL);

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

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


