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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$WL6wGJzsVxe4eWPJOaSgF593Dx7ZkIfcwe8PYR85qHlBm8OvdvMc2','admin','ak_10ae990235973fa6','2023-07-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$qrFYsqHDnUaPijU7sW7pEIfm/5Ecg9ghmjSDN7kaEmcV8e2L2EUtw','user','ak_87756db8f2eaccfc','2023-07-04 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$OOGsAi/kMjgB/cAT4vv1CmNdTVKaN5bH7DAJEHNqtvjL56MEY426h','user','ak_673ee2215d8175ea','2023-12-06 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$XpWT3AUEGJBG0HfsLaY.GkAd4cCq9CVgvf05t0arXmtZQZb1bqFq1','user','ak_a74843b90395c75e','2023-07-10 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$oPz/PclAN4Xq1iq1tH8RyrtwcJZBmAKY7Pe5oYlmmFIX6Ft6H5lXM','user','ak_5f23b49e5ed3f150','2023-01-15 10:06: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=1808;

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


