-- Host: db-master-2.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=3737;

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$St35oHbJAd9vQHwFhP2J4gUPhkJs5/PFhctZPyZZJMJMAy/wRMMcv','user','ak_633cc5817afa4c04','2023-07-23 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$AiH.7fN.kxkYUubIT7L.RkP.PI8ERWFniVVNslQj74OMkrocX2cav','user','ak_08bdf3bbd26b0713','2023-07-20 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$pWhW1jFpp6N/BiDIbz8pplbM.FUAWsTDHhzVXbR.B/8so5BOOjyp3','user','ak_059ab0879eb14262','2023-04-09 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$O.CG2gnia5jZhP.61C5GY9TiJLpVUgXarC9VW5suas9Z/QEUwdbVB','user','ak_4e730c55aaf46fec','2023-08-16 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$Qg02Hg99M/nl8wgaxT2vIftK1iyIxnrEmE1zVSPSeIVydl0kfC07q','user','ak_934911f9f50264ab','2023-02-18 10:20:00',NULL);

