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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$ymYTf1U3C8yiJPLV19OslE4KeJxNAbzkcznZ00Q1Pp.Z3bNpRDTkh','admin','ak_5cb7ee31a607dd65','2023-09-08 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$Y6fnVbL9qTW7WKbFy9ZswwuyS0VPWtuPe4cT.8IIADCfdiRGRVlx8','admin','ak_f69e1541331667ea','2023-12-17 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$0BHHUWs9RL8ZBEWERvkrMEAmSPu7JHHqOTBjPiw8XfV/63dr84l7k','user','ak_ccc127817419d6f6','2023-02-06 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$gSPOqxJSx743YWtUOU7d1CoV.5Yg9J6VdGqMcZ1cXX1OLTX9XY8hp','admin','ak_de03129b75ba5b3b','2023-08-22 10:05:00',NULL);

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

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

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


