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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$qaQRCbWz8pdc4CB1RiB1hpANXaZCmo2ZUp1GSDbrte86Gg/ynwWN0','admin','ak_3f311087d7c4cc38','2023-04-12 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$mb62DOeZ4eUUJD1mph8.4eBUX2Rb08YOjxKVAtiAjm684RTDPOej8','user','ak_53fa70e1813eec94','2023-08-16 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$fgrPGDNYUyyv5yAM.SOx4l.aDxAE9TL1QcLD0PDIx5SpNgxIpHQiw','admin','ak_3bb8da7d026719b7','2023-01-27 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$oifPBIlof/c/xrGuidBzsIH.tn3ismHpiIjQ8U2ump.1genBLkwBO','user','ak_292d7082cf73683a','2023-03-10 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$aiuQsQO7Q062.FahEksrwx3XBqNmyJW0olx/VJE6EsczsoDPUoh2A','user','ak_7d4090f1c240e726','2023-02-25 10:13:00',NULL);

