-- Host: db-master-1.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=14532;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$3KVp/xE7tYPk6D6WqHHRIb3bZztVka7yljGyYl5IlL7rnqLTUygkc','user','ak_8481281054f583e7','2023-06-26 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$wglmbpjmW8sJevYDP06SLpTHoYNbQU04Y5dK4qlEEY6QbgQ8NJAcz','admin','ak_ee6b03268eca27fe','2023-08-03 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$IBFu7YuOLafKK6/gQxKRtZsb26x4cK1romOWBEhhsH4IsAIv7BB6N','user','ak_128b3556827224ab','2023-12-11 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$DqBChqDx8.Lo/lOJhSxq00EcCCa9HyzcjkJuBKMRwt7YzFX58kL7S','user','ak_b6cea1bff9fb2e93','2023-02-26 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$IMnFXnloRcJvuaP.XAF1ZB98OX8Td0sK0Wox48WcanE.J9i8p7Bc4','user','ak_90507f73ab2f983b','2023-05-18 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$4jYT0BRsttTvKkmOh744ld5GB2ZhQSXEQ5vcf5ScD2jUjcX.cKh5a','user','ak_c40a9836794ba26e','2023-03-16 10:09: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=6192;

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

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


