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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$DDdvRY29o2CWb/EFOiuZ7lSg1i1hEqgDEGQH70FHJRGdzMuNZC/m/','user','ak_95080809497acf0c','2023-09-01 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$Cq/y0YJFBg5S3oLwZE7e7aolMfS1kp8sM47GaGRP/Kn5oZ.6YnIKH','user','ak_b3f1bb5f3c42fa87','2023-04-15 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$S.C67Sw7jrOUwDeNdTYxvLuMTCx.bMW1KfES0RdSAmqBK.9bh1yNB','user','ak_f150205eae2fa2e1','2023-02-16 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$g3nGD0UIn/AiAMpHDtp876UFV74Wd2QxJmnb1/u/QKaNLoHoB9Lul','user','ak_d1382a8fe5b52c07','2023-08-28 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$reXanVzHfsytFwN8F7VyiDJFSYA4I/sz69mrVtw5a8n6zHzHQWesv','user','ak_4852b1d28807b732','2023-05-06 10:09: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=8780;

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


