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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Hc/Ao6M4q6OKMNe1MXBcL/JZdLAXYnuUJ0CmodPE0W5en.HWtDivj','user','ak_6d60c7cd9a2d3fcd','2023-06-22 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$7.KtNnjU3INyaCxHJbyMV5kOm5oE3dqTE1dsORHqJi4XaUEBRxcbG','admin','ak_d9f7b859cdaf8bb3','2023-12-01 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$BV3izsnFMe2AWUqCUXMHYaQfWI4ooO65587WFkRmptHamjsHJksJu','user','ak_348a6137e811479f','2023-05-01 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$d/gvUjPSYDmysJIpPBZaY4hrYd.z1oalJX7JvsHxbldzKaNSOeCZ2','user','ak_0e9cee578c55e3a7','2023-09-12 10:01: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=38477;

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

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


