-- Host: db-master-0.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$vHbU.f5dh7W06PG7fzXz2m69ho5efAHygMYPC2R0jTwYyujmHETCb','user','ak_5b397c4e11a998e0','2023-11-27 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$9bWIGPm4OypmdcCK2gdmpMQ2dZDVhy9TIDxl6PmEUCjDqTI0SpmFF','user','ak_34afdf0685da3e41','2023-07-09 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$g3eNos7evvFhbzcXUwJxGz2PNvrJD1WH5nE44cnE1KsmNILMJFWgZ','user','ak_967f795c978f7cdc','2023-08-16 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$08u/QnesvVJk61cLmT5t3umQQtNi5qWfEtsdxFfQiBGhq11qMS5.t','admin','ak_268ceab9c94a32e4','2023-12-14 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$InQgxRHEBpA07jiCr0N9WPJgZlXS9w64V1xQwV0.xAtWsi.KymdGM','admin','ak_7225411095f6d279','2023-06-28 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$OVUcef.lPPzPgQRgoDgqp5uSJD9/h0oEfkQkAv4WOE4xsMoQ7euMd','admin','ak_c84befc1333e1746','2023-02-03 10:15: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=50292;

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

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


