-- Host: db-master-5.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=36804;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$ElSrvzVMARaULZjf0ybL0fqDGylUSUz8n1tPhVZEZSP/QSP.P3TCV','user','ak_15797eb2533897c1','2023-09-08 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$qW5.MG.UCJ/JLjyIG4rTcrU9kkHJdiPlZmomlhI4M0AuXrOhmAJ/L','admin','ak_0b92be8e1b1e482a','2023-12-15 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$sMepAK.XkQI0eQYxYjmTCJkUQFIj3742T4qzIjK.mmgkWwfXRSLd.','admin','ak_01e4c98802260552','2023-09-11 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$GxwKvsk4GuPrbcVbih.klhYQ96u2Wl0lZyFS3sDoR14.bSj/ElUnS','user','ak_f338bf3abbdf8a59','2023-12-18 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$RW5ktuju.6dvm22G.tmuM7His0URQNxM770RvI5bwh1Dh1AO7ZOyk','user','ak_339c5d9ab0f9c656','2023-01-07 10:06: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=4747;

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

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


