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

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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$IJBG5fe/A7Ic5CSm5ugSCoTE0zOHwhDO1Htrsn12ycj8BDtqK8imG','admin','ak_691a65a88b5c6cfc','2023-12-12 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$cqVfKkQSoW8GPR5sveEzNyuDqpXKBEOVTS5KoGWnR30KVQto77d8H','admin','ak_9089a0e8ab4d9fb3','2023-07-26 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$2nOqhms4HTNzivhHkaIQsH9beqezuLNNKo3SV00ulvsNzUoEvrQ6e','user','ak_a05ef292e4cef817','2023-10-24 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$HCNrfqyOp2YI8VELn/L0UPBIDS3GNi18QAHt7ib653ASJXmprXN2d','user','ak_f8fddd1a98e39c81','2023-11-05 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$PiB9r2DAX0S.TdjyKqvGtxiNqhttdwCrSeJARPbDnC6.LYBA9cpDH','user','ak_e19961d0016945b0','2023-07-21 10:05:00',NULL);

