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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$irG/zfXKhi/7DFUCTCzEjDEmEutEMl/Jezz2VekE.ZKfTHqt.25xl','admin','ak_e028afd5419738f1','2023-10-16 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$oyM44SodhU0DqfQMbMMQTGqLdM99gGwD.lb41dXVpocx6FQvGiu1j','admin','ak_c57f8746e58da2c4','2023-09-22 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$wM6LN8wnn0nEGhoQZW.DpZdwZhhJ1Z/Tq4UNdZDnSGsbJc1FDKKs7','admin','ak_93d8d5b5afb3a7f5','2023-07-03 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$ptFsHDS8YG8EnP156HTMaL151vYp/UvMCpRWn16wU7eS5Y7tMYsuF','user','ak_b88ae466db7f85b4','2023-06-20 10:22: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=50664;

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


