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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$BQySHvIRAJC8W0ow/gavdSBQuWYr9Q2EnpzOvVZBh2q1w4L1.78GI','user','ak_b328a83682205e0b','2023-05-12 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$7yK.IhUK23h1OJOdZEcn4Bl42BVj48cn1y6b/c6u7V.jqNw0iNDcD','user','ak_63f3985de02043b0','2023-06-24 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$6w33EytYEJ40aOhcYXnsz9oZfm0tSJZBa8bsCYR1MdZJHHM9DueHB','admin','ak_e7f27d5591652ee7','2023-01-28 10:11:00',NULL);

