-- Host: db-master-4.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=17523;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$CflqcthTWBGT1EdWwJX5FIf5TTFHh3IoVkk4IyUCsLzkzMgheR5H5','admin','ak_24f2d9662d8d758e','2023-08-08 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$KVjSgSVCxSrYsA54BjM86wPZA0vzVR75rrl.d2CvUf0.VJFXjh.WC','admin','ak_9ef7bf4e369c9749','2023-09-18 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$J1hK2XeEqCbABnbCkUm4LyMykU8fAVzBJKkCv.hzI3CgG.njYyKGl','user','ak_4b4c76aa2ddc266a','2023-09-17 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$8lA61F.GT5DVUXPl0jrxeFJdMi1ZuE8k3wf2YJ4O9MigMTqY0mmiU','user','ak_3e2c886c8201ede5','2023-06-04 10:23:00',NULL);

