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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$HtiDj0wuH9pOjG7oyzP3WSoefyu8K9frGXalpYJPHCIU.nYagV4cy','user','ak_e91ac221c7affb1b','2023-10-28 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$gBZBjzmGG.5dPGFQLOJhUz0cn.T4U5/l1BtAxtTrL4dSiudJMkql1','admin','ak_97dbdc8dd52470de','2023-05-02 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$bE6/bViCQBC1ovIl1pzu3nBB0OHTuPQ3N37eFEbwaaYaGmrfnkDvI','admin','ak_2fa0a9809fb6e920','2023-10-27 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$cWnf1NK5fhjdQ.R3JZQVAyHMSqjzncTOGvgQ4cn5/gUnqC8gtssKc','user','ak_64831cf3252fc97a','2023-05-23 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$6KJps6hWNFqSu8aOYjvpbFrHfxbQWlfybRf7CySs3BKyKOMz6Q7PW','user','ak_399042da695dbf2a','2023-02-04 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$W./xfbI/uFMLVhTPXFAMwYxlNNV5CWdM16bTB1CRa6HlOXX5J09NA','user','ak_09487bb0c06c319a','2023-02-26 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@example.org','$2b$12$f7SB3z2MlD/tRXGcT2atDPnjo68qUilfV8jEc1zJyAJNncFN.5prl','admin','ak_2bf2082dd4a14c97','2023-01-17 10:15: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=38960;

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

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


