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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$XFahggf.y9Ays5vVvuQtz1Ct0e3.JgKZ7.hZX5leGZWdOoCIBjxQX','admin','ak_6f7c3297d537aa1a','2023-03-01 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$XcPtAVrYHhDW9EKwlYGe42.jCkK.8/sQMvldpNfDS1BB6fQDPLl4H','admin','ak_14996dee807e0866','2023-04-15 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$VejqAb8PTY3dJdWvFsgDyn5cHhZLHM4Cmx4G0AEKTHFZ3.T/Zc.fB','admin','ak_80cd91df9c0f0ebe','2023-06-05 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$MxwjsJM4ZumlbuBxfIYD/fhPqVtohqgJ.QypzwbRHDuJQjMXZoY1J','user','ak_7a2cdb9bdf10c574','2023-07-15 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$Tq8o/KDiBgS4Sfw6T639F2nCRrsO/uTSo5QuiFpi3HUcvDgzqxF5B','user','ak_094d959601df8690','2023-01-05 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$6wMsuQr/ACpyXjrdIoJKPH87xLoFVe3VR9ZlScDxKwYjOanqjYrpC','user','ak_2168b3545957ee31','2023-07-26 10:10: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=44845;

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


