-- Host: db-master-7.internal    Database: main_app


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$HU.CNUeLx4R9zzLHrJtneM7pSFNdmxjfUePkjFxaXhs2ga6sPDfTq','admin','ak_77edd1527ff2d574','2023-12-02 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$9MZgDXV2vO/ILMB.TvaGC4CMQ6x8Wqh/tNWj7R1syB0qrdcuTlEsD','user','ak_7a2c04cdf963f79f','2023-05-12 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$BH5sxHW7BlAmdb9ZN.gw.Ol5N3HnThZdrJGzVIYfOzDp8fN4E0GMm','user','ak_ffe559c84993dacb','2023-05-18 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$6Q9ZdvCmhvLVILoNg1MP0H4gBQwPiSASK4/T1bIp2iqC.gWhA4s9G','user','ak_3622f631ece63583','2023-10-15 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$s5fADColfVTwC.Ko7fTvqkW9eDN5gnEdEr6m39Qh31kNbKxEwJIcZ','user','ak_f6ba227b0a029f62','2023-07-12 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$P.SYxopPrNXpLd5Mf5.kL85.KRYyuGc6H3qSHmBJ/FZsW52UgVF0a','user','ak_bd475d89e1fda756','2023-05-05 10:15:00',NULL);

