-- Host: db-master-4.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=20840;

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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$gATQdKFiEfYWo7PyJwYM5PAEGt04oZpht5xA5YKmUIiNc.LBFtl/Q','admin','ak_ad4f5ac67be2fc15','2023-03-02 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$zSWQi9OuyfToxA6llBPhUQGHhpYRtcKxAwAcDo2apiKtFRJcOa9R0','user','ak_d5694ecd414ca277','2023-12-02 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$mQ863CRLMpkEsEp7yDX.JhufldGoDJ01clqWBTsE2qDle5x4fxA.x','user','ak_8798fcddba9121ab','2023-05-09 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$geT5.jNNzV3JLAm9NY7Mxxe5MYBmgj85ETLPVQfSm1Q3lm7G7cA0n','user','ak_41ecfdbbb74fb7fb','2023-01-26 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$j0U21VgNeG6J/Ec.5YclkjSnFuGtWbzFoL.FbY0WUgq.MXWarXhsu','user','ak_fa1b3b6dd9d072b2','2023-04-22 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$HhmF.GOcmPu3bU9v4d259NB4L2byV4Xc0BgPm1kd3MkvNGqGSd//o','admin','ak_3291e77ff168f68e','2023-06-16 10:10:00',NULL);

