-- Host: db-master-5.internal    Database: production_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=34781;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$sXMzg/dc2xr19V2x6a9nsiLsMRGhftX2PY71c.K81nIn27xvwiwGy','admin','ak_232c5c1fc4bcd3c0','2023-02-04 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$19K8NRYIRzxmxueAcZ46/cA9cgjF9Et1VX7EowDl884RkGd7eP4cT','admin','ak_f24ad6e123756265','2023-02-25 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$aLjP.ul31/xDsgSk0Oi9pRso1jDcxE6qh/ZBQRGmiKDYCHr3iSJoX','user','ak_5033b6a4a72baf8b','2023-03-28 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$Hw6BtYJ0oiUlMnxLdqxdbqw.BD7P6lvpi0nkDtUeNI4R7Qf3QkERk','admin','ak_3af1a1edbd4fdadc','2023-03-21 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$ssTjFzZU9jLc/z5E1GC3Rj7s4YYSP3sWt4BFNwz3TH.YkUBJfx79V','user','ak_8185794d02385ab8','2023-10-18 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$yFf7Aa1tUZcUIb5WcWYyUut8QV0U6M392lDWpMjhemDTRVaYK83UG','user','ak_4e7483c6b9bd16ac','2023-12-22 10:04: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=25112;

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

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


