-- Host: db-master-5.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=5075;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$jjeVUnYkIc/396Lqc7ctk0WQqaA/ZonLniQ6qC1dKClu/Xh2fC3Qs','admin','ak_f71f3880f3d42996','2023-08-20 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$PHmzJ3obZsPRRJ4U0hyqpG64qio.uaAxDrsDxBCsBcIs5P.1Cm2jS','user','ak_7c65ea198b1ce7c1','2023-06-03 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$J1bcs1iiRuX4Rjd2UT8XPP1TYRHNlJNuigGuUoH4tqrvjB3Pk7OXB','user','ak_183e47f27631e5be','2023-05-07 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$/vj3JS.wv4gt1eZlmg8xvQCKdgqaelQD4hmaMrFZMGrAlE1GdM3FI','user','ak_91f7d3bff21b2664','2023-04-18 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$LvF1S7TT05fofN6AKpfxHXpLgjWesc3A/RSdJPgJ2qVy5RNuoa2u.','admin','ak_1bc759a6706897f4','2023-02-19 10:03:00',NULL);

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

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


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

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


