-- Host: db-master-4.internal    Database: webapp_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=16130;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$9Dbtfti8kwbuwC8d2Gn6ZZBIJ7YqjEuVTM/HT9o33GndLa2qkky5N','user','ak_c3ad701662d9dc0b','2023-12-28 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$ugQbS2FSTPBZ38jGarPevwVy.0o01lxbO6lLHLiHrWuZkNBeip0Ka','user','ak_bf3e46467ee8a720','2023-09-14 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$xkF2UlSgQ7bkRVpeQlq.jovZm5X5J4NAlAeqBBGLt90KGrMiynJjz','user','ak_ec303951ec6a35d6','2023-01-01 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$/bpQpzHJJFdaaK7BiAlX3pfn7ZAt/FYsCwl7FRlzVyrkQ3vlHgY2z','user','ak_16697e043ab96885','2023-11-12 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$IEY.I3bBlZ1MlnZOrCWrdZUnGG1Bex7UptRRkY37vYGBWpq3qsw.S','user','ak_8d21a98edf497504','2023-02-03 10:16: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=23749;

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


