-- Host: db-master-8.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=23533;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$NWBFUofRru9Jtt11NvShAVW1jyFRF/VF.R93C0yP5hZDspA33I5xe','admin','ak_1741fa8e75d3f8f2','2023-12-23 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$wRvf/808mbaj0qyraescf1bx.U2YZZvxe2PuUro.gw9DdgItj0HIC','admin','ak_a6b4483975d0c489','2023-07-15 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$Pwwts5HzIO2wuxQmcN3MomxBOsdzZxLXKdJ19m8cHIPZa3dwGne7g','user','ak_e5b99b0536636ff7','2023-06-02 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$Y9NLsfnWZroO.YcILGDc7O12wjUJ30ctgaffdObF0v76C/elS9Tyd','user','ak_3bb8dfe7e137a1ce','2023-12-10 10:04:00',NULL);

