-- Host: db-master-1.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=12612;

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$m4CvzmM1fblu9kwPcpv0Wm8YxE4KJX1rr86WOiTAKxOFh7xRCB5.E','admin','ak_3cd5e731ca9e0cf6','2023-09-21 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$gzkZeNhHpJYGexVyOxn/L2gGFc252jQBHcwB02d6SsqNz678VAbWE','user','ak_6f3dfcf6e9304af0','2023-09-27 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$rnOay3S9ltFcKvpRqLK17bsZA0QghzYtQovWwnadCpQIbLmyemKoO','user','ak_fc3fbdea1ecfe77f','2023-09-23 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$3.XCT8gzotW9wFiNibVhoez2H6uGMRIuSsc.bytAEF9zsuZOIOUYv','user','ak_ba345f1afac22f0d','2023-07-05 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$whnxgQkmeEfR7aNeNlYIBmrQpv1hiBrgLjGhe0jaudx/PE2o1HuSd','user','ak_831ecfbc78c98597','2023-10-15 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$KzfuGMf/ByeEzVR6PIwBTylj6TDCR9H2ultFa52iFNiM0BHxItY.e','user','ak_7e0f96c5ef0616ad','2023-01-12 10:14: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=27015;

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


