-- Host: db-master-9.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$QcMCqkhAMpHtWGyaW3xZ4FDhZpnugQGaBzDRNFVfXNXrIe/as5l5l','user','ak_b8f0a4441858f01f','2023-06-09 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$v.7oclYwIIHvX.BhGHFzi9LcjSBfrknNNgaG.2dYuQ2lcU2yK1PH8','admin','ak_8e370dec240f7a4e','2023-02-02 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$4/PCJYdE7lvoF2SELeE3a.t/acZ37gxqkt903V8vg.pWPse6L6SA.','admin','ak_1394e4af7fb8da6e','2023-11-26 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$e724J0ICEl5DvlYqmJcwCV8dGJGp4roRfIXq.ugnCTAgcvk4Ttocd','admin','ak_e0d0c024e2a8fb2e','2023-09-16 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$BcO5TAcGUBCxVqJYEIHggvmfMq8zuj0fFUKsQn.qxTP/wXPYelhnl','user','ak_f0d0e1fc3e017905','2023-03-25 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$LWW7VVBd3bnQsuD.Tlg4gazKLvDZSyKkm3sIjSYh4GeIsQrTjm8wl','user','ak_1250b8115a78c244','2023-12-01 10:00: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=46269;

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


