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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$F4v1OXAvC2LwjDKirj474BAdKFGRkrnCvq3FLvgXwnJKmDSf1BQXi','admin','ak_3b472e5fd61451c1','2023-08-27 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$t/GDVuTSQfAPClPbWjIlPV1sORWRhHzS.6vhErk9l/tt7y.2B1pO5','user','ak_1225999c58a09574','2023-01-21 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$xidl0M5tl4whwHAFpOA1kxfrgZCzEj92q8JmKvMVHe8KhCtKxAoVP','user','ak_dd124ee92a871044','2023-05-23 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$XInauDkXzlcIwgXECREJufdwZzQmY39pVsu4sHv3kMxLlvr7wNQp5','user','ak_b7568c866c30b4d9','2023-10-20 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$J4DMi6cPNnfO1/GfazmeKBZzDtG/xGYBWXHv/.M84FteHl08xtEhs','admin','ak_7ebd4741e9429da5','2023-12-13 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$tTpHW.odN3R/DiKZd9IQAqD97KHh1HevR.Pk0qnCUt1dOatxtBnaD','user','ak_01e3796d157e5176','2023-11-21 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@example.org','$2b$12$y6ODbtSxU3oKMJ.dbUNtTqXATcjkBdj15eAct0L7JXxuCQ0RJ9xFD','admin','ak_838744f96a160776','2023-06-15 10:08:00',NULL);

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

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


