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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$YItDKZU740ELFdsWLjpfOdVqBwZQP1EVbm0bUZFvWP6SCZCCz8frH','user','ak_94072ef2162884b0','2023-08-06 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$HXzkutui4nEtPM1snsfwfLGoBA.inbny1c2gFShM.KWU9/Si7EHZ2','user','ak_5eac10c7ec02260e','2023-04-13 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$qSIwxJ4aLNgIG0S.cnZBdrKTnldOZc9P4ML8Whxscvbo4M8sypoEs','admin','ak_90060ca7774a299f','2023-05-25 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$PPOIYPJxQAjs.JjrmjFY1GYWEVXTB.4eVYFcPT0kRLXLf93e86YDO','user','ak_5daac32ca690c280','2023-05-11 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$8a0itqa8oeJn8Qfzll.PEwaQnUfFLy3GR.tJxhA3TQEwkAkVRAXBB','admin','ak_fb04bb66a04f8dee','2023-10-03 10:22: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=4663;

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


