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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$Z0hxgLSTj6K.6jt9KyNr8YT3VBzZJPn3XPD1jY5iYSkgUPJOpLp5m','admin','ak_e83729121ada2dc6','2023-10-10 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$OAVoghHNCuP6pe0QEuzdes1v2FrZBnOkp9dpaHX5WhZi6OsL58/xp','user','ak_0462ddc4ee27f59e','2023-07-03 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$41c32hutLdgzWw/ImQqGzjDjGbaOLS4QF3UXRkCC8Zo5xW5PBL28l','user','ak_74f1b4aaad616aca','2023-10-18 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$kjVgaYCyLaFhHlqY2oRLpnJkTS7i.itTVMst6lhO40bLUsQVq4U8X','admin','ak_a72bbc3e65b59017','2023-01-07 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$z.ZF6HxNF5grYnqkpDdWSnYswFuf3pbfXFcyCRHT62SfI3DtJrgHL','user','ak_a8954d6870428094','2023-12-17 10:14: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=18361;

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


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

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


