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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$O3Cbw1rOnzYaiRvwwi/oypPMd9k0A3Vlry/Gb3KYn3GRPlY6UJ/hS','user','ak_a35df61e05b81f74','2023-01-22 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$i0YBeb1hdOqXqIDv2yIULHMuDSc8Cp5oSWmF8IQevsKmTSHRrhSVC','admin','ak_d948e9d71be9abc7','2023-07-07 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$2FhRY4HmGJvxKwq8yfvwDHjMev6FlMf/8GUjb2shVzPfEyIMhdqDB','admin','ak_9d6ba2cb928a67d3','2023-04-21 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$r1D9cDBgmUhC4GFpAbQnLKH0be/nqWjdF55sThhAO4PJTsi43WFsL','user','ak_f307c0a5f1b216ab','2023-07-24 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$Np7Z1FN78U65oimtsu7cbwTzxScIEe3lpd4iTDttqu3o9aK6g6rU/','user','ak_b35a64a3769ea678','2023-03-19 10:05: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=4488;

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


