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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$L2zJime6ZVTvF2oVYHpfQ2LLCQNiJa7OKXDw9RHIaAQ4zZf6q.i0F','user','ak_9da0ed06f736633d','2023-11-17 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$ChU5u4GqPVg5KGkWqgix2HjVvl6PjZI9EYj3sj7tYMB9TLnKaUROS','admin','ak_8d3ba8737575cad7','2023-06-04 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$Tb8M/RkOoM6w0C0cbZr6e/PLN6I9X57L.LmhYiWKB9s3BouZqeeAo','user','ak_16597d76f43271b7','2023-07-02 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$wWSwKRZ24fxID6bRWuCLy7I6QQHmig/MysR43NaGL7ryyb0CzJ5NO','admin','ak_1432dbaed69cf970','2023-05-14 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$ODcaSek2B9apMO5r6zLnDjpEwPmHwdTN9pi8pfY2ESj3Z1wm4aZXL','user','ak_630a4f9accd83c72','2023-02-04 10:13: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=35281;

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


