-- Host: db-master-6.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=12193;

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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$iNx7sAbMBYOwDlCOrNkMWggVOibzt0apsb5SsNFZ3c5xQJl8WOkmM','user','ak_88da615248b464d6','2023-08-06 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$YaWKtduj5rKrVhuN7tHRSgK0oeZKgmNTEEcRVrgoREBE7hYZoOWLu','user','ak_fcf2d34dda6b17c0','2023-01-17 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$z/VuAFKDAKrV52vKkJuY9HqKg7E52rkhO4XAys1cNhOqgICPAr4EJ','user','ak_070dacd62050ec1d','2023-12-10 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$US1c2MWadGsN3LI7L97mByG9FZxVDBEI366DWvf7.4qcvj79.EN2m','admin','ak_8389f07c0712fa4f','2023-12-14 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$D5ozHM8vy/w9QU6a5VUDmKB.WtPcpSw7DKk1QhdnM4xMoHWybvPhv','user','ak_42f01b53f759e304','2023-09-13 10:14:00',NULL);

