-- Host: db-master-0.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$1RHLqPT81cSVarHkPdv5XekiQQk9LhmAKnEN9YGYPWM4evDylHYUe','admin','ak_15963e87ae180206','2023-09-02 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$NtHH.88XkVK7kxB6YrvLhsmWny2pij1ZY9y8KEm.pe4MJgQG1F.x/','user','ak_a1653b37272533ae','2023-03-05 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$QZGxuYlNI6aBeRxoTW5RtTlUToVVVt.tTuPlCXRLEVKQh2DYNACCn','admin','ak_d6671b833ae8d3dc','2023-12-16 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$OpFCUZZknUQ5dJi25PqDaypvSgvCauT4gey.BxzKmcLW0bXzkbxgM','user','ak_6b55a07a13b689d1','2023-12-27 10:00: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=47599;

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


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

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


