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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=2701;

--
-- Dumping data for table `payments`
--


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$9CusWuxwqbssMvsIKK/PMaYyoBUES9A8ECnSRJkdXiRcGLtRaDbKr','user','ak_bd67cf9c7d711e28','2023-09-27 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$ZqHn4DkVoT/8DIX0T/eTmkXeZuD/wz1HCWIks96kb8AksEp39lCbS','user','ak_3b134f14726f517f','2023-05-24 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$Z804I3XRawlIAkYWzSEYGuZPlaweead9f/MB.GFshOpCssmvcEyhn','user','ak_bb100917ef856044','2023-09-21 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$XiPo.N1ihvZVJ3cOZq6oNWVBHP9GXEulGdRudfolgY4W25156PqJ3','user','ak_b7da8e6f98b5fd8e','2023-03-13 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$r/SBzSbWqcHBkGTOR6rEf9RUKTgmw/Avhb2faw4qONO2vUM6UIvPe','user','ak_8f10e868465a7d2c','2023-08-12 10:07:00',NULL);

