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

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


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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$IaGjp8RcPgnI5TQNNbArXmrJtiyGt1j0SD2NraSZFEMleQxNNIYSt','user','ak_66d7eb1f35462f8b','2023-08-11 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$x4TaZUWdetwX52BbSARGyjxl3Hf7WTShoU3SkgnxpLrphFrxTSjjP','user','ak_f187a3e8a03b0112','2023-05-23 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$Ieybe./NNVEShJszyhq/m5Wc3Q4sp4Z7IO9iOBa15uUzKzNxcY5YP','user','ak_ec24c4dbe986ad7d','2023-08-15 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$2BG5bw/DzLNXPZmTJ3Oszpvb5IaMBUchLW6/2i0nloKopQtl0puOY','user','ak_ebae3d8a8aa576a9','2023-04-23 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$US72hgOIjXBiDEyVI/KUYW0DtyciWJqBPxeXIrE9rU5ZOWg0YmVjm','admin','ak_52306d9e33362e01','2023-12-27 10:02:00',NULL);

