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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$qMEFaU97ohaSj9m9ch8sZ4MKy96IRv2NxvYMBgxvQnoVfVmd3Jmlb','user','ak_401cb4fcb9e7524e','2023-08-11 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$12.bdh27qfJGIMRqjc.ETCeP3wdLfcoTUVhd2sEFUlCf4/aXv3g.d','admin','ak_fff53479a6face1a','2023-12-02 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$Ea8HLg3wm6u/io8ttDx48y8OKZpQG844m1jboUoyON7lR9/QwWngk','user','ak_c446993b4fb8fad8','2023-04-24 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$h9E039b35UbgtYKZlzk33fnYdELhG8nrL1tQGHAD.lP0wn1LspgaM','admin','ak_8888e92503525014','2023-12-07 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$CacUvTrWhqhDxVoutTb9xwLzU.AfMWuEpCf/7.VLtaXMfqb6h.zQW','admin','ak_aff05a7b377f5c41','2023-07-15 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$n.ONPV/3r0SsDjawcav8r4n1UcrkSMjigOG5t5y9PwMCZ47uhNuye','user','ak_7a916bbacf147ff8','2023-07-14 10:16: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=1873;

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


