-- Host: db-master-8.internal    Database: production_db


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

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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$yM5nEAIaeHmxNnxooZMpe5iVz0IZb.49hdW45DY/UUx6qEUCDHwOl','admin','ak_61044ef34e676fd4','2023-07-19 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$Kwh2aTL./cMRCEoAHzmk2uOCGJ7ensMI2Okb4NpCiF7O3pV9HR81u','user','ak_b8b660dc0ae3d03a','2023-07-08 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$0Tg8Tb0B7n3zsbwPMRV7uYkKrxpmVMPhYusUMWq8qZVn7p.eTxdBi','user','ak_0c52acc3b0fdcdf6','2023-11-15 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$QUcUixxaHlINYXDjDtLg0RQ9T1JSuqlvcRbrH6Wha6YUEUU7YPAOk','user','ak_6bc94f7adbe76d21','2023-02-25 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$DVOQ/YBYnHzI.86Mc3/It2qGp3quW0HKByuIekbdxWQ6jwfji1yoT','user','ak_188c9bc4f7ce6797','2023-03-23 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$AOMH9KQkMn6W0vnv7P1QQoCuq8mqZSbmi9AloOvFTVUlbISshI/BJ','user','ak_e17ed30abef6903a','2023-06-06 10:15:00',NULL);

