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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$am9MQfcYz197iIQRG6zBajCPCQo1o4q2qLKQOp055qdKASnMvtxRJ','user','ak_d8e0257d76d76f22','2023-05-04 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$fe/iJ/kM.PcBWoz93XvwGFrWiXViQhHTCOzAeA7Bj8OmkebQSqBEa','admin','ak_5b08f27ef49141ce','2023-01-04 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$224zyrN6z2VJ.P/YgQy3KEQbGxdkYXMqBM7hXqcjrPj0Y99tra05.','user','ak_ca661eaa6e750e2e','2023-08-10 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$cP4A7FTdFjujak2lUCcjdNp9GnoKAE8v70AJL/jGH4u3Wm0CvU/Uh','admin','ak_0d31358606ea6c2b','2023-01-24 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$Z.cadvcDYIP7WY5jcYJcrVLhSyuQ2linQUiFfkCXy4bMzotPklQDT','user','ak_9b37f9c6f5ea42dc','2023-02-10 10:21: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=32982;

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

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


