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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$u2nMk9gG1Ejew6sq5duRT5LR9s.6Jq7.rukF60MKVqMT5HcdMObLB','user','ak_aa171f5f74e5d44f','2023-12-01 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$f3LGr6Fq3S8KVgGO0qI6cjvpXFfaPxXsSxsHxqZVzqLqHX/GXslxB','user','ak_f315df89d4d97865','2023-11-06 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$z.yJzf7tq5CXvfwtbY3piHwTiX/UDhuWsMUUTrsqHSYdRZQi5DLJO','user','ak_cd9c8f648cdf0546','2023-09-22 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$P.RpwpoLXQpoYXeDyQvgllNJdf2Z9xERWsYUMHlzA0WDaV.CqOvl2','user','ak_dc9d98dec9726da1','2023-03-24 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$jc.Iu6slBXjkelgEBkqqxBxXz2.Jr7iHLB/.tbmLqAUVXkseSt0Nj','admin','ak_7caaf66ec1939588','2023-03-11 10:17:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=47434;

--
-- Dumping data for table `sessions`
--


