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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$UzEbHQC4XwZabLMKfMKzo98LlNDVl1colh8.kmC2ghMHuFzqWZ/co','user','ak_71ca0b345669c776','2023-07-19 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$Aw7ADX8Fph1n0aGJzBa2PGBkWp61qyq1uGXs6GEUdQcU7F7zTcv8k','user','ak_0be1eafeef20d912','2023-11-27 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$K16Pjz5u4HK434mTA/0p4Qg73JTUVQCreaS1zajcJiCA/wAjSkleD','user','ak_d0ad6db9676ec370','2023-02-17 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Za3g7HTaT5CpfZcBNBUjzE3mOmHmWEYtZvFJA5aYgarlFa/rmZf94','user','ak_6fd070da7108ed73','2023-10-17 10:00:00',NULL);

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

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


