-- Host: db-master-9.internal    Database: customers


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=33410;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$7/VpxOLMtSqTEQN9beDZdTtoeEUAIoEenfHlhHHb7/6YbulzE6Gkb','user','ak_e9e896f72d9680bd','2023-11-08 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$bXba0rstaA1fiqMq1bIgV4/3dJlLsyk4IzrabDCPKqlIbK.r07cvB','admin','ak_6c5068c04f923fd5','2023-11-15 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$hxFgrYe0EauScAwiQ0aLs0QTRQNgLqe6XvqiqC5oh70begrNpDOeU','admin','ak_84dfd1ccd12190e8','2023-05-05 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$Q0kLDTmIgP6lsvymU.KcPMGXF11RTzm3YH8Kk4c0DyS/ZTGe4pZJP','admin','ak_33d913a6c6eff28d','2023-07-20 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$P.3ZHf5NArpThGaK.S11x6AsTJyu39tqxd5Mm8OQZzkMMXv3tx/X6','admin','ak_d9ba0e00f7b3484f','2023-01-13 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$7pqrPMXC0K62AVtBIiCBz2.6ylpri4g/LJdp2hWAP1bYHcQBm62a3','user','ak_12946eec26574d1b','2023-10-09 10:00: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=39994;

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


