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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$WpUQxxkNrtAeWA/thj7xyrQT8SCNs8EqpbkoJrhI1YqfNB5qhWPPz','admin','ak_9c766506d2e72d49','2023-01-27 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$MuCLO.vtFF/irDnbIQQyVVoa3NXGBacTP5x7DA6NwryNnlv1FGpkx','admin','ak_1c65c695dff96718','2023-09-04 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$GmyZVgBGMF9izSGuX6kasuMnuvd/dMmuWHt83XJr2qNcb7XAZN0ex','user','ak_e358df1faabdb6f9','2023-10-05 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$p3yMHuz.H//t15H.g7KX52tjk549eZH7xHXKE1rYoeVtReRLjjUYb','admin','ak_67e82684bd639f23','2023-06-21 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$yrsoopQmwcDb6AIwio8xykcZlgWCW8qjGZuv22bf.tm6Zyf86aUjn','user','ak_cd8076139513d789','2023-06-23 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$FwKB3CtiTCriA7c.Pqrh0TbDJlmjz42Nw6Yu6BFwB86Pn65CWH24U','user','ak_c80db107c8878c03','2023-10-06 10:22:00',NULL);

