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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$pMSBT2IX9096tqCDWWKEmCwMmKaXTgjECvSLU/zi3tpHWXItw1F8y','admin','ak_092ccf1688b75652','2023-06-02 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$Sxcgx71UZLjxEikNKNEjtDyLBfHM2ha1B7qXqVJZoMaJXWI9REZPA','user','ak_c6a30d1d6ee4b693','2023-06-28 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$phfMpqmm9cOFY7xHL3tKEDRSF/pTMfK1v0o5ZeAk1NL02No34Cbam','admin','ak_56af641134abda1e','2023-05-21 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$72eKmX4OkCy1W3ptsEjwl/QX8JGKCzfOztYFTbrB6gGYOzzDw85Wq','admin','ak_94ff6aef4bcc6957','2023-09-12 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$xqNaruN0IwQqTe6xeSki3l/IZ.V2mTMEkQagYizkbgwSsh813lt56','user','ak_74895595addd7b93','2023-06-14 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$ARoDBAGPwp0bgVuQ4XdVqKOJGyyxbmfAYf2DQEohhPGu89tXgjol.','admin','ak_e1d7cb822c2a2ece','2023-10-06 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=18087;

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


