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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=18976;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$9Aj/9.uwhnJNA0aQTPOK5u.wlNvv5flSMfT0ng4jn6JXWKClrldCk','user','ak_8b312d89283166fd','2023-05-17 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$m.biVa9e9PBnd403P10a7whPjBr0QdTg96C09OG7RxtcEw//mTmHa','user','ak_9f54cc91f57a137a','2023-05-20 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$tNOyCK6Cm4xGYDDmK.deV0VjOCMGgE.7PyBp5gWl1dAjAs6v.D/3/','user','ak_0f76b7b04b209e88','2023-10-27 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$mU4hNzL6m8j44O5sdUoFrtmyWSF01sX1EICtHVHTGG/O7r0ejcEaN','admin','ak_95fa6132de922419','2023-04-28 10:18: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=17301;

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


