-- Host: db-master-3.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=40156;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$aPIsVazpV6YZ1we2h7ISCvZd551IOFvqSEdM9AN8imQrdbELZpYdq','admin','ak_b3d7f02b74ccd1f0','2023-10-12 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$5Vx.sMQKQUnU/JJiZV9O6MKeWukCSEKfkw5zHFJbn4AIaxHFRyMDk','user','ak_3ff1f43cff784be9','2023-06-20 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$nBx5p8uhmOvf0K7zgzSJsLjIv8A8YoVNvGjUHiyBjby3DqQTr5ZVE','user','ak_880e6e112240d4ff','2023-07-19 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$tuI7UZH8m9aF49BTht3eZNzI5RBcX.YX7PjriTUvZPAysx.XjgO.0','user','ak_d4e539ea4bba034c','2023-10-19 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$/HmdFTl496OGB51R.juBFqwFP3JNJpKd2vxom0zDeTSZAMaCqBtDK','user','ak_f045d0f0d2709cd9','2023-01-02 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$XhGm.mwIUED31nHHnoy.sy6CnNJSKoOhA.JeWJ7cV.RmoRxnNv05n','admin','ak_bab18e4b20f28f88','2023-10-19 10:00:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=18300;

--
-- Dumping data for table `products`
--


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

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


