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


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

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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$cuQOw4m2KopXO45LGVR62kdcajaTZbZbxiWcX7hMCGuoZz2O5tYND','admin','ak_a2a56aa140660c7c','2023-01-13 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$XURpB4UIDWALFRiLybDtWYjmCdE.1FGrnaHfd18yw6uOWhrHkMXTU','user','ak_61111a722a6b2b71','2023-08-10 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$VSiyj8fnaPy3N.cff/z2z3XVS24IAOeudhCo8wAkvbuaye5mmgiJH','user','ak_ab61625dd009e92d','2023-03-03 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$t6UuWZrgE3yqdm0pua08UNjK8IhG.tXpZmauNBK7jdKAm/71uTbkG','admin','ak_779066b5303188c5','2023-01-23 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$T7E5IDQhHPrty5Qkn6I2U0Z.bBQM/VfKzwT4D51hHXemJ04G1Kc5C','user','ak_8b8e4f0cf854418e','2023-10-18 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$mZyw/c9q1kArXIIwSMnedjCnOtQdfmjhXkRxHV3SJ7vVziTi3btlP','user','ak_4ac52fc4e780c4e9','2023-03-20 10:11:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@example.org','$2b$12$DIBYChcGcAOmNz4/oT7aSDOzVSWMGaFUwWZrXdCMQaU701uNSd7/3','user','ak_bb364c8722cbfcbb','2023-12-25 10:03:00',NULL);

