-- Host: db-master-6.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=47314;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$ZUHldROuIdIBA8woQYq7BWulV1A2p3lBawKCjii3Izvnes9E2Qr6Q','user','ak_39c8287aa7d31c80','2023-04-08 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$00jCAsRwDQ.8BhnsnT6LyYIjLHv1NfuOlbRZtSwotdDLdL1G.mGF6','user','ak_99af0c217815ea11','2023-01-10 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$EJLpuZZns6so2lbfTb83.znqIl0s4DyIXFlalPV4Tf8zkYQagXo.6','admin','ak_9347e3d9c7347954','2023-08-21 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$m020H/2q1k59N.1tQyIQx0VIbTwlfTam6kfAoiAKAkWWh0Od5vR01','admin','ak_f509f634976e7bbe','2023-03-25 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$8uozpbVMJ40keb0CdBjFSag5.NaQyGIqbBxxHP98XkgvAIr39KZzl','user','ak_94e6507f0e04104e','2023-05-09 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$nfk358axM/Hw3rTbkzOnS89w0c9q3sUiBAcDluYq6HfzCCXvG6Lk0','user','ak_19c6164688a9aa08','2023-07-04 10:11: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=47837;

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

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


