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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$nkqDbSYxLZrwDsjkFGx.cmaW5iKSMHikm61OS6JgnA0p53IEfBNH/','user','ak_efc9d65450601db1','2023-11-09 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$fp4CZss7yw8hdKDjigGAibHjuD5fMu1t8nE034v8ldYJZM.Jvbs9Q','user','ak_e54b7d8cd49a5c0f','2023-01-09 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$6ESEOGP6kOr0csTA3zUl4xE/5A4MdhyuYmKaMxjjFEZ2otUf0kxtg','admin','ak_bffa687376ddbfe0','2023-02-01 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$ECzMoThURBl/k8n4mOMRahkhkoliaVQrnnPoOG0tJkzIQmbGdCEi/','admin','ak_589d6c2461bcb823','2023-02-21 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$EZ5X6.W/TIOEP/7.6SsxU.ZtbY56txo.m8FHIdA4MQiyoVJ4agv5i','admin','ak_c6108dfca02c86d4','2023-09-11 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$43D/FWPCh.MJMjJs0B5Cmi1M8hfPrqhfaEv8/gQHa92SpvffqrdxK','user','ak_84c562adb2d9c0dd','2023-09-16 10:00:00',NULL);

