-- Host: db-master-9.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=29533;

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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$WODCnXh2NbqeeiDomG5RMYRCBV8V3ZBb8pE.2Q7JnuWTSv3QpApZy','user','ak_1c34ed19c459213c','2023-04-03 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$QZScc4OGRj0tOTIzRgL2cN78kUJIfDN03nlLAnLWUcEyKzdwbs5Rt','admin','ak_c128ad10d330c45a','2023-04-15 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$vJGfQrHx85cqe4VTw0cVHMBgfks4WAE3vtg1OOpAT4tx4CUp4tESU','user','ak_746a846514583f45','2023-01-05 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$n79PoGMI.5Cv/ih9c.Csz/8t2Fx/NzZy6mYwpj9g/VC9X5xRlxn4Z','user','ak_e130d48001b61822','2023-03-27 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$EsGKb8KA5/ZBN.HHDivozFpDTnwPtH/xaBPof2.qdr7XVa88f.o/o','admin','ak_893efba3b76a4047','2023-07-01 10:03:00',NULL);

