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

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


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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$6le1vcSKn4HqP7f.AGGwoY.L1roOx5BGjRySrM/L5H.EbVQNkvxdS','user','ak_b94c3cd72acf63cc','2023-06-06 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$C7qW2M5oaLFevzr38ofw90yeVZ2QInxwGr4kReuzVCAT7.hRpqcVe','user','ak_bc5ee92ecbee953e','2023-10-07 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$SONkgjaZnUZY.WfzuGFf8ry./gKPkovqWo5Ic1DDNQ/8lRRhiYgYW','user','ak_a4778e1df62af51d','2023-12-10 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$wKOd4hq9D/wwTuT8eelfWdFQA7vjtw4VxR7AOpbOCr7mtX1fZIAW/','user','ak_a657cae2addfff07','2023-02-14 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$sC1E.4WbA2/neU8ADlrbxlcJMzdqHIJp08uxlNXWO1BX8hAZVy4bk','user','ak_dc7b765f736c2f9c','2023-05-20 10:07:00',NULL);

