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


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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$Es2A/rnn0KLjGQkma.c/zt.XxgGWyH75o0gSTPn3ECWzAPkKPuOAw','admin','ak_00ead45bea812935','2023-01-11 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$QWkuNVsaAQTtrJ1UTdsQrCkqRMWXqEHVSNseVN/R3NZnlppWkYWk4','user','ak_f087e03a713674b1','2023-07-11 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$cXOrj1yriDVSr54SbThasCBHwzc/swqUbwbqtVoDqGUHCpQexCurO','admin','ak_f250e0c06410fca0','2023-09-18 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$lSqGMbrbO/XhyP5UljYKetlq7R8bNE1m1Vba9IZ51MytLQI.4kRRI','user','ak_ec7b4a02c677a4bc','2023-04-24 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$D04lLDCeFiCf.2RUDlG/YoYhb/DpfZH..tee9Du8a.qPTGj7/Z2Re','admin','ak_dc8f696025cde54e','2023-05-04 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$2w6KJQPyuDEHNDVeBPENH8ahzhkozCl3AHgXz1M6nF8IRVQ/8LrK1','admin','ak_90e1617147790d8c','2023-03-11 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@example.org','$2b$12$FoEoUsBbCs91vFBztQXD9kfBW1/FIA5gzELUpFJpJUldQV/alz4SS','user','ak_b74af9129fd081bf','2023-08-04 10:23:00',NULL);

