-- Host: db-master-3.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=34712;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$osjQRvWnWggCVRELwD7lL3E6M1IyRjmU.BzxY3UAulyX0pSoXOMZF','user','ak_b3b2f7ea46ec937b','2023-05-08 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$Xr6LURVRUM3s.YORHI4FzcAn7N43/zV6eZATgEM4Zo.rSOCYBjERN','user','ak_ce392d9c5465e632','2023-09-19 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$8zPIlm1VuCTqYSl9ZGdDZDRv7IUR6FRWPDE3cjVsKUWvTxW9ACMoy','user','ak_6783281f7e85022f','2023-09-21 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$uTczzUDjPovbjqf/whMAI84.9JuJTzzFgm83qzf0Nyd0PnQdMpvYd','user','ak_31267f8ec04421e8','2023-09-23 10:09:00',NULL);

