-- Host: db-master-4.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=14589;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$P9e2WCd7M0xESVIuZIZCosDmjvuzg4g/VVhJshxHLvi/MBnJWI6Hp','admin','ak_c7cf1ceaf5c4b0bb','2023-09-10 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$zOhr7BE8JgvJ3uaBfjHyo4xno9oqmB0BoGkwVbiyGdvfU/djYbAgp','user','ak_6616bb7acfc10a1f','2023-04-03 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$pyx4TiCjUq33opEpPbXAfX9CNtczXqCjEwR9oOySpI0ltdGWMrG/s','user','ak_c2ce00a2333d9332','2023-08-14 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$xnP3.QSt6Lz8A.EhL6spESn1eWTfGgP2yTbaU5pdg0ZL18/ut6edl','user','ak_60ead9cbf70d416b','2023-08-11 10:11: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=24540;

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

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


