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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$uVt7y7x/MuWULEuuE9etzfPMiRQdywWOpDXXBmcn9j/i0wzzurMQz','user','ak_65a72531f7fea0ee','2023-04-27 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$mrG4hCCjCpQ2VRAegOxJsFcI1BnXLRh2WyIYR/VwvbF0TYedUytjb','user','ak_e372dbdc48aa88d9','2023-10-22 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$DtTR2HbiWeKM3zB0CnL5FDO//1E6xWaC/Xoz2PejvQgSddPTDHyb3','admin','ak_c2a00ab7779ed99b','2023-09-17 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$GnJ0rZj1YicqHsyLsuPFa36neQBTQBcBYyeOsaVp6UC6Q6p/zKEcN','admin','ak_0a47120e31901320','2023-04-15 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$IZNoOo9tNeibUa6RllLraGlSKE.h6cRQ3jTuU5B9UJ.ZlBGv.HZRL','user','ak_a37747a2beada9c2','2023-04-27 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$4WBrNmFzPVDv85Fznzc4HMZ1ft1kjk1fT/qm0/tdhmRTzfjsczDeX','user','ak_0e138d5f024439fa','2023-05-04 10:12:00',NULL);

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

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


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

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


