-- Host: db-master-9.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=11425;

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$0M1RJVFx74sWIEYw77YsDdUrxI518bv21qqbEwn2egbASykjqaNdw','admin','ak_0159bd1b98e96947','2023-07-12 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$z949ViImvdsGYWjUpBODBTCNWf2vbADSTGTj85jlr5SZhUHE5BAZo','user','ak_ba8dcf1a434ca3c4','2023-07-20 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$U32o1AFzG1Lc3lIWQWYOPfZXZnftN50YMPP6QX3lA0FAYkYRJYl07','user','ak_6331c14ec12de2cc','2023-01-07 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$IQ4WIjBkvLpfhEERcABfBCd2GTP4y31dCfsYVu5I.64Bbq0r8rkru','user','ak_4e85edc76f653457','2023-11-28 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$Lm5KkQpSLLYpU2dhxoc1YDlFvefYYyYpXB8j/LMmmNtkVStoWw5Qj','user','ak_d448d1f1ad26d57b','2023-09-15 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$cfXHuxc0U3r4KghiWGpLJB/I7nkzQajt2FpktpD6X3GzCWf0dfQb3','admin','ak_3dd8ee61ed44f0ea','2023-08-06 10:20:00',NULL);

