-- Host: db-master-5.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=47439;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$ajJgyhgMM12iDRGqxJJCgbVYwX4MRjQH73.h4DDwarI4sEJ9bYGQC','admin','ak_2e827f5122b554d7','2023-06-01 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$FRqElqW5Vte6KEgXp89Ao0NnwXjV9T5Vc/dfmoXk3OQaEnJF.UL7p','user','ak_64ebf7b76a415570','2023-08-27 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$xoPI8sxDQFMp6x8tcFEmAMEP5tyEjWdusKAhVZ1AXzp8VROqc8zTZ','user','ak_ad9ee3f488e62a46','2023-07-07 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$Wgz4of7lJzbT8eGHuw.AY6Tzai14PQcfQuAxyfD9zcAwX/G6NVZJj','user','ak_4a66837c5abd85fb','2023-01-27 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$JEoO98s.jwW9q0ZfCZjayxMipsy8FJjsm4TdkcwKR9qJP/59J.Yoz','admin','ak_283f0732dd93b1c7','2023-04-11 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$novn/Gkjj0kLee4by71nOgZZptPDTWvHM8VMtOFcvwe864BJP9tuo','user','ak_ba0b0208a6b10943','2023-05-28 10:02:00',NULL);

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

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


