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

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$Q.Wqxod4h5W68Y54E6squZbNkbO9h9FGwCcrn9Qe51OVL5qyer.cI','admin','ak_dab20da407cbe4b9','2023-09-15 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$DzGqotWUMrVK3GowhncW/R8rvjb8mnfd8z4zcDGMF1E5OL5sKR4sz','user','ak_b0a294facdb445d3','2023-11-01 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$slIhFS.mJS3mBIrB3mKrsx85r9s7UWfkOM.T1hwSH1sT3BaL6cWhP','user','ak_b07c276c2c3c6642','2023-11-21 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$rVczwfhmu14DIWla8SP1xH6qqi78kF5SQO.XUBlvjHRBI057u1i8g','user','ak_619dcbb013777140','2023-10-07 10:08:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


