-- Host: db-master-9.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$QiCODPNnycO4GH8JvKIYkgdyN3.jHIbhEONgh0aH7cQRyCN1FeBYB','user','ak_9ff941615d2f56d7','2023-04-04 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$PlKA/Z7/K1K.eHqk2cvKjlyilp93rYkRXeTzMTRlvMyGn2DFmJORO','user','ak_0a347a3e55362eca','2023-12-10 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$gBJaSZCqKXo0esbdzWDsDAZntovOJKgaFNS.tdWOPYzQZ9mMZ4OOy','user','ak_247fd16db35c396d','2023-06-02 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$ZLZ2W5onItIjB8iC97aY0Lgk5SvhzErTsx1oESkil4nRYmoneFIkk','user','ak_a21a19607a729ef7','2023-04-17 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$enZs4HPdZz84wkJ1mHk0caftnjv/l4NYNsa2GzweLJzR.dEKm.y/s','user','ak_4e644fd846d9adf2','2023-09-05 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=14616;

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


