-- Host: db-master-9.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=45414;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$fVh9oPm2wgfpLMqjN8nt/qcJJGNzrr7MKLnAi5J0scal2rhhcgvlo','user','ak_b80729b2186134ca','2023-11-03 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$RfMyfeT/.LqcyMiqeL5ClldkXm1jp.h8y69RMpqVPY/JcZBfHPUBk','admin','ak_e94e1e8cba799c0f','2023-03-04 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$mrX2pl0tAD47hBaLavxaiaJ/.a3JswMm6SKalmedt9RdxueGZovj4','admin','ak_b1863630ddaa6b8e','2023-10-16 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$PS7vxzvhK3rcSBn3Mmx.EUNW4Y2yQ2sWZbvA9Ezbg1GbteKri3/5n','admin','ak_040776d304005971','2023-05-27 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$rCLhFrgynWItwfvxp7m0YyegcDZp.Ry5RKbRhyiqs4NQ3lTE6Ni4o','user','ak_36b72e1f02d4e389','2023-04-24 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$Fs4pSNr4af.BkMKZMq2t3fY98phnZgWYxeBrm63vhErMq5ffYlrTi','admin','ak_6a8e9c71b9a9b297','2023-02-09 10:20:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=16076;

--
-- Dumping data for table `orders`
--


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

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


