-- Host: db-master-6.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=35746;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$fxEf.nDLBxjulgnqrFwCwIIdcbz4UbbE939694HPXG/CWIKeUXf0I','user','ak_4d8bca300fa8f405','2023-03-10 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$7hi7/sTCpQWtUKF1niBgfTWM4uV94O0WWDHfXecKE3IHQ8AXwjAH9','admin','ak_82283bdf5c0546e6','2023-07-22 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$69Ox20fIucdZjBhaDtN5pWRr9ZdR6E.KzUAcJGX.ztxM7x8K8Y/eI','user','ak_370a5572d1118000','2023-03-17 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$2xDgbo6fhniq7GvT3zksgsrwL74bKKxa4LVbUEroSBZQPlU79j4D3','user','ak_c944f9e91f806119','2023-03-13 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$oS/.SzQh8nKQigOjct0THvRJlXajc7wSqRqaQQUuXDE9TbubsVqVh','admin','ak_b483f9895a1596a7','2023-09-23 10:16: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=27034;

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

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


