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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$OvbExnez1TVYMa1Fu1W7LmFiqalqjEhcW69riHGFL9dpaavAYhPSu','admin','ak_4bbd994b8a268631','2023-07-25 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$FIigv22Q9DaJK2yWyd9FAVrvUr5hLW7AKezbeCuNQ7C5pI2dPS7/W','admin','ak_a58455968d75e7f3','2023-02-04 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$Pq/cpfpL/LS.pMQeszLMBwCin56FtiEgJEEEBNJA6DiDN9dfv8Lns','user','ak_99283c24f1f33147','2023-07-20 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$r4Mn5gPNbvLP/HfDrqxpm1Y/hUSIxc96aY7pdBqCugHz/3BjAxwXD','admin','ak_1e1569c398ef0f32','2023-05-10 10:20:00',NULL);

