-- Host: db-master-3.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=38945;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$mrgxpo7gXoKXOtJ99FadmlIzYH8w2Ty.5/zES/UKHudaj29Qi79./','admin','ak_07f513b93a866441','2023-03-19 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$ZrbTYRdrwFMAmWguyRXovmct/QGu/Q1.iUpclcElmwL79o9EV12q2','user','ak_112405c11ed93120','2023-04-20 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$LXn.EQjVQqRJtjxnbkdjh/cdzi/Bh2qm4NX0SWUFhKqnQK3.WIrCq','user','ak_b5996c49a827ae77','2023-07-17 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$vowejOsoLOyMTuaWfjqX1zCpPxBHcotYZ99nagbA9AmcHoWZuCKnd','admin','ak_23e6037f3a77cafc','2023-05-17 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$PxUoRdcEuvmC6pDfC/TWdy./MUxpwhglW0X.Eyj5WPW1wemr4akbQ','user','ak_f83c3b8e74960ad4','2023-12-24 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$RmBUlKMsFQmQY3LMPPuMySj/H8HwFjlKXIGyiwfKVHdjqizKZ06fW','user','ak_e4599e235055fc85','2023-05-15 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=22666;

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

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


