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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$rkL.xaGsNlBwPa/rgVp/K0C2YNCWiWuyDP3G/svia/QV8t/wLtBRS','admin','ak_72e04d828251f8b7','2023-08-25 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$d5zs4nnUO.qGjjDFydml6bPLR.op819PbA2GJp13HA0XC4qCFJyOW','user','ak_94bdd758c9ed5ed2','2023-08-04 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$SkDizmfgRHpcJjoa.5vfj0rRinzoGusDBJJQdQL4rkiRdVYQfPYrl','admin','ak_d4e1721f50848750','2023-01-23 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$ez0dORkR4WaNnCbmtfLjv5YP9p11OI2KS40SUchnwrDHoeCM2WrGo','admin','ak_78d13085b933b281','2023-05-01 10:17: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=8880;

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


