-- Host: db-master-6.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=21968;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$5zWM.8tEdGLATl40MsjKDSyed6EcOinYYxRFaU4rlvwUA48FhmJlP','user','ak_06d0d38dc19317f1','2023-05-23 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$efDWnJSEG8JWXnerQKhK1Kf8iqHVIM1veL5u7nMrssyACk3Zxrj5h','user','ak_8f9416fe191206e4','2023-12-09 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$4vAhoZerpMt2xDpB/I7vabkGxDXV1FYfBh0geUnNqC2hHo7JQy8F9','user','ak_eee8694f95d026f3','2023-11-27 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$0cfkd/xNO4KpLDWJj.wO0EPb6EGHHHcyAleGZt2x/P6V/.6eYdTxV','admin','ak_8dd3287a0c4c29bb','2023-12-04 10:15:00',NULL);

