-- Host: db-master-9.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=21247;

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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$SOcjwU9O9F8hk1Gt52F4fbRPm4yPd3oiSJHaHnspCfTEVB9mZQX5S','user','ak_5f1af9207b47c14f','2023-01-13 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$iF4x87FRqhdmcSz5rHpRWVVJFvd9TSn2N/cqpJ/IsWhysBtKEeLIP','user','ak_805ea4b19fd876e1','2023-07-11 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$Cj0v/96wAzpbi6DfjZ4NAUukvVOD4feN/N6C9EKuw8H4Mxd1CrBz.','user','ak_5240121d12c58659','2023-11-17 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$nFayk4DLhH6QwM2AS8eYvqvZDCpSVoaRe02U812JMBeUMZaL38.Pn','user','ak_47cb4124df1974d2','2023-03-22 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$k17fTk.1s7MBF5qo7RkZ1es5lViN5GoMnDXdDKp0kX5j6XBabSNnf','user','ak_73cc6a93e63e53e6','2023-07-12 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$D17Bireo6UU5hXi7/QoQZ9A7g2wLLMst0v0ak4Q88kS11N/d0sgKU','admin','ak_de8de57319094209','2023-01-16 10:15:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@corp.net','$2b$12$B4YEp.wVG5LjOKB2MU5pjtLhEIaWEF7rWk6J4Wl.uWdzasR0m.SJD','user','ak_71b35f3d53dedb8e','2023-01-07 10:12:00',NULL);

