-- Host: db-master-9.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=2364;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$MC0ajPx3sBJdo2SYsrlQLaBkxdmr9XDVzAcL5veoGbn8oEe5GoXiH','admin','ak_edd672ffd2e15a6b','2023-08-12 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$fSQWZMSjCaQbx3OJykbYpal9FOi.pJQOm8rTPxp.XYD3gRk1nnc4B','user','ak_13b1dd5a49fefc75','2023-06-10 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$n64RHKKiBo2TNv8aug2jJL8UEicHd1lS6mmVXlnofKoN4BY6vIZfX','user','ak_e4759ebab32fba69','2023-11-03 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$KcTadfWoGfhsKVuJBnNgORjaWByEyjb892clLeYKp2RzuIF3YVWDh','user','ak_37e59b4b5f72fc81','2023-05-01 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$mFZY41Y5Godr.yhX1YVTe/DhE/4H4pERKvOC.KImEr2oL03A9gwS0','user','ak_386b2f4a7ed92944','2023-09-07 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$fmT01EnflBbdu2GHUhZq4vLvWzbMIszsupVZ9DieQXsqAJDr6jKTr','admin','ak_3e5f3d20beb3e65b','2023-02-05 10:06:00',NULL);

