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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$1Ta8OsdCD2nKyUluItBATxrZbRmC0MJnTomu7aiGnlF5IKpg/tVGw','user','ak_3a61451e294b7646','2023-07-03 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$PjgzvlvS3SUxhn9Ul8eHbWr4Ug97wIXRMsMMssKiV2JoKpIi6UXdA','user','ak_dc9724c3abeada71','2023-11-01 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$Q9JRDBh7ac.lhIvikyAHyIYv.2B3wpbWH/bdfrNPLOOmppJgufbwj','user','ak_d586f717862692d4','2023-11-14 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$qPzcWw7db0OkAhrbHLqg6wO/cXsyok7BClCGGG3DpsvNJYc3GO1s1','user','ak_d4838b73b184cfc0','2023-06-17 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$35r1Ab3TujH9z/uRcDKrnL/Zn8xQFMjucCfaRgp9EILLTvuzbJn1g','user','ak_8e832c20c226992d','2023-11-11 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$Kv9t9KD9MkvuXDoy/aF3CAnTlRBKoDH1pQmI6JUzzZBc9U2pBweFL','user','ak_77f4a8a2218ad469','2023-03-23 10:03: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=22843;

--
-- Dumping data for table `products`
--


