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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$31tZvwmsdClDob.skBgy4gxvFmDJ6z/W7f83x84jM5Kb5buKQcW8O','user','ak_dbef849e2999e284','2023-06-22 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$0.rB/4cEAzNyoIZ4HSdy4ytG8QreDVcgTOEl16ivpY56X2N39ZxJD','admin','ak_52e243f78cc22bb7','2023-12-05 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$cl7rZMidlGM4ghSsM./OeAoVOZSLUySVPd5x8LSffYY72CTlgA0Xw','user','ak_a4db5402ecad26c3','2023-07-17 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$kOy/GSSmw.QTSO3AhoFCwu/.NCeRkW9AKVXQu6AUcb2G0JW9bFwO0','user','ak_6c53d55250492493','2023-05-06 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$mWz8lMKLgpcfK3p86w7rvXjSkTT3jpRCy1u5hWPIx9RJzJdYDrmAR','user','ak_fa582e764c9c0990','2023-07-24 10:14: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=23343;

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


