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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$7gACxu3.BBdue.LPhGbJwF1wxgcF8TzGbKEWuuWQW2mrFavNIBGxJ','admin','ak_79c09215562c06f0','2023-02-02 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$GNshlWJ1ZPdk65GJJJQQsctsmyJGEmE5jIYNgzJpccMjeK7L5UbtD','user','ak_924b260b3819fd06','2023-08-18 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$OHAT3uvdJNs8VZRjpSU1FAAmHWp75nW/lsrY.mfi6KX9M2Jx6klYg','admin','ak_eb1d1cedc10418ec','2023-09-02 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$MHfkf6vkSO5rg1vmmyrPdwrb7Y3DLdpRskbVClILshsR7RQoOg6NM','admin','ak_f55fde118eca020f','2023-10-21 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$TQaGBU6AQFGI9umcUqnhf84Kk1Gg2LlK3by43W.p3Bg3xG2GY5xz0','admin','ak_38b0b20c53c685aa','2023-01-27 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$OCt76m54dtyf86rk0lyikeiRGWaEC9o9dG5EhZ0Cd2rrkVjYop1d2','user','ak_43483716f9c0ef89','2023-11-26 10:02:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@company.com','$2b$12$LK.2yD4Swu4vY7mRTSHZfEeqNHIxJ3a/0Q9LbcRBXQkUMAkzSEUQC','user','ak_7a13660d89b73f0a','2023-09-12 10:22: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=47972;

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


