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


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$EpzGw1/osgBgsMddQ2SxH42kRivcd4g65rTvEHTYYKy/616DfDD/s','user','ak_cd7d4d4658e8db7b','2023-02-05 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$3Eb1K2e7xvRVXanUttjkute192MMseaDwz10NNmLZvLPbGVeXqtB/','user','ak_b85dfb8437b59663','2023-01-19 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$BItktk5cGBFA2eRr9NCELdINNmXuV/JTeqzWfQxuo0ExWCRNbEDnS','admin','ak_02b11f9ee01022bf','2023-02-26 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$fjhBYqlufoetaIzRiEkebZoey7pyXfKUvLqmg..1d3FCdJaD6fu1i','admin','ak_b38c23eecc8e14c8','2023-03-22 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$bJVQBBbfZtDIdH7/nVfydWODtCLZPEAX21DbLQSYAmzGI7yQ1QEb5','user','ak_1581db4080082f51','2023-08-20 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$.WFBgZZKxDK6YEFxxGhXrt1y/6qBgeLdpXB5q.1ZlL1miD/8ld6SG','user','ak_1503fe102fc01f3f','2023-02-21 10:06:00',NULL);

