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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$jc9naaMm6UQ8JE7bedowd6pbNZj3fm7N.Og1yWnb/S/QWe6l7R6N6','user','ak_1b7c6001ad49b3eb','2023-06-23 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$CP7nV7GfD/7N48qSRVMAOzm0Qzfc11t0kcSejTnRW565V/Ff6Isrg','admin','ak_d5abe95f66cebce7','2023-09-23 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$/vspONP5Z/yCLCmX0l1jshJsF4mNT/KAUc8r3bvFuW2lkn.Y1oGyj','user','ak_79f58066b7ffad87','2023-11-08 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$ZPF5SY4XZH0ECJDViEJT1wdYvMG.29zFDTnH9w0sSS312DRGCJfIa','user','ak_0c86094694a26991','2023-02-15 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$aD4f6K.lhz5LbgJ3Te1np7EJ9d1YBGx.WyFV5RRnO22VCUaaKEy1j','admin','ak_792a84264980b0fa','2023-09-02 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$OsJTppRV7Lhspuzj8VNZ3BpGNS9o6FF1317i9a/5C0pTDq1UsKjXf','user','ak_2b40309acfbc021c','2023-10-28 10:09: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=3397;

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


