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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$fhTMjz9xhOvHdqfnP2KlG37xcUad2r5zsSJYtarM5Pm61vRTuE0BZ','user','ak_85e1ac50a3d4ea12','2023-04-04 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$.EdzISbF/xBty1moOnMPFoo2mmPmaaTwRv10ALCBT5WHmfACF/KFs','admin','ak_3edfbe17d42af185','2023-08-20 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$1m31BoaH1E5JEtVXUIwB.Z8FhGdu0E9qPy3kHiLoZKSfEI5TOdMQ.','user','ak_68819f3664e34eb9','2023-08-10 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$KXiL18N9F6hk5.aNzJCdkvqkZZHQINOCvdxSFk7LCIZq2BHydT8wG','user','ak_a233b8fd9e4b5850','2023-06-01 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$A2C24Q9XKZpTQ/qKlBrXNWrF9K9A84UIjmef1kX295l1KHtB29Y2D','user','ak_9210a6397419a80f','2023-01-06 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$tIlcGfpBr/BNmRCJpSsSsXsEOqSRYJYK8uoNHKorUAzI31F3ppx4u','admin','ak_cd0318862885a8ba','2023-04-21 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=33278;

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


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

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


