-- Host: db-master-2.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=21980;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=20062;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$hhS/9qcvTspPPR7hA2ny98UIgi.Uux5vZHfVsnMbOWzNwFqHfcZC9','admin','ak_c35f4866e3fa09dd','2023-10-17 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$cmbkB2J9R4pIdOaIL4WKpHGOmFFbwXIbE4TjZ3S1arBzvP1h3jrMR','user','ak_466c8f689152e776','2023-08-10 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$IDUOzsxP02NTW3d6z9JP5CBosDIls0SZyMFxY3X6yXRlaPUKy5ICx','user','ak_8ccd3347768539bd','2023-11-06 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$Vo09NXlmfquaVlu5U0miMHpI.AogM6OBNeWeV92/t2Nqlqr4bLscA','user','ak_742bc4fb2e980829','2023-07-11 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$SW4NMdolNmeR2Ip6M6H9M6QwyPGZ.l3hImQ8gXyNhpjvRjltCqabw','user','ak_62f76073badf1573','2023-09-18 10:00:00',NULL);

