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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$IMllMexu8o2FUyJp8mBd1clLaoA6PAuSrplSWzdUaOlDlaArNeWK3','user','ak_9918b8b28287bcd8','2023-03-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$sUU6uRqyRX7mbr/38AX45e31Aj7M5jMND0v7x/vPbvsuZdCh1HVX7','user','ak_529c6f79dedf202a','2023-10-03 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$WJMy5oosHmCox/N3PLB5oC9A/563SqxJv30dpDcF1C7EjOZkB0jSn','admin','ak_bde2bb4b17c8091b','2023-12-17 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$QQUc0ToaF7cqo.pxmqCW2WwgwSBCxtEnKLH94JHDeyTP5tINhERoG','user','ak_dc549e8b6f54a5c0','2023-07-19 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$muHKFnXBxqSJMLbFqRbwxUYwg27DBk5Y/Dqm2AtULx9XcFvwUyfu8','user','ak_4bc47de3069d3d04','2023-11-08 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$2W0b6vNASL.K/Z44fX9NpP8fhRp.AteaoVDVBGY.2mp/plPvo/t4b','user','ak_6e6b12475e6bf289','2023-07-19 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@corp.net','$2b$12$DdUx3tr33UB6Ay/ZeWq0J7EzI6THosI3aRS2PeF.fEs4mCUISAHnc','admin','ak_8d9582e6f53a4f9b','2023-01-14 10:06:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=13730;

--
-- Dumping data for table `orders`
--


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

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


