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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=32664;

--
-- Dumping data for table `audit_log`
--


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$oeFxkg.Ar76jV0swIE/J3XTd5P.c6KalQBMxntkdWU14ftC/FjPL2','admin','ak_033640f307fb566a','2023-01-08 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$lp2NcqMXm/9n6kCsJS6oe/kxET13njCzQ3Yo71zdh3V.4iNuznT5h','admin','ak_3dc84e179cc8e110','2023-08-03 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$dpmfS03TZl3zm6oRm1.Kntj58d7pmQqeRIWYU4OCQE51WEHb7L1qA','user','ak_ff26528e2f957b65','2023-12-01 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$teAwBOBJ1fJNDGgmJe/lx7CvXJOYETnBIDuT4P9yN6WX2J5AKw0Eu','user','ak_484b430db8798252','2023-12-16 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$.COwBg0O5pnEu/EsqM2XkdB570bzJRJPG7.ES6Wv78QlzCXtgs9/f','admin','ak_a807de67b240040d','2023-05-15 10:15:00',NULL);

