-- Host: db-master-9.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$sNUsEz1vBwcp5Jh0pQFy4IYqoyGz1jXNIqd2hqfAeN2faRa3.ijY/','user','ak_2b3d33f4bdc2306e','2023-02-24 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$9/.xgl4xXWgPy2m4qiRzw6NN38QJMaoN9H3KZjf7z9Zk6lsSVJbrf','admin','ak_1141675a4ed6d6a7','2023-02-13 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$n9MRvhgb0VFrpmukkF/bOtyitMm7TE.hNlpTdGXDrOnfe5uQJdsQH','user','ak_dab1cf0ce1df1bb5','2023-08-07 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$uKfpHwD31Uonw.NbRXFrZ7bedgu2XY6tFjQYW/tzl9oIvOaX6xf58','user','ak_229ce28b7063b709','2023-03-19 10:03: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=1164;

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


