-- Host: db-master-5.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$D6j4sBuzWZLGJfRgzLAWnX6qE53iLxZTExmIgDfaNQ3XVjY904zwW','admin','ak_8c4b48aa9119e296','2023-02-28 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$ZgV3J0NuZtpbS0/ZnXJGZbnahnrkiYhP0hM/ENqegyAovQwcktVyD','user','ak_3198f02f7373361b','2023-05-19 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$J35/6x1eAI93HByBG9IAMjcJu/pe3LgW2oHTAgQkHopz95bQlRjmU','user','ak_3d9083e27802b6f8','2023-05-09 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$zdm.Dosf7yF9Et6tRApSu5bDxLgBQtHEUn4brYJzEaAkqa2CxQINL','user','ak_39be69522d5ce892','2023-12-08 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$j6PKDnI0uzR5lzitfT7W10fwGKBk/pQxiT3L8vMKkWS4w9MhvufWM','user','ak_4181eba5ef5bfafc','2023-08-28 10:20: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=16591;

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

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


